Fix an illegal memory access when creating DLLs.
authorAlan Modra <amodra@gmail.com>
Thu, 12 May 2022 11:55:20 +0000 (12:55 +0100)
committerNick Clifton <nickc@redhat.com>
Thu, 12 May 2022 11:55:20 +0000 (12:55 +0100)
commit678dc756a5741d278be2e14630bc10d2fb31a22a
treee4409e744d978b976af1efb29a52556d25de8f09
parent73a5cb257a21ad38c85932b7be4a903404d91899
Fix an illegal memory access when creating DLLs.

PR 29006
* pe-dll.c (dll_name): Delete, replacing with..
(dll_filename): ..this, moved earlier in file.
(generate_edata): Delete parameters.  Don't set up dll_name here..
(pe_process_import_defs): ..instead set up dll_filename and
dll_symname here before returning.
(dll_symname_len): Delete write-only variable.
(pe_dll_generate_implib): Don't set up dll_symname here.
ld/ChangeLog
ld/pe-dll.c