Fix multiple problems with DLL generation.
authorMartin Storsj <martin@martin.st>
Tue, 11 Jan 2022 15:43:59 +0000 (15:43 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 11 Jan 2022 15:43:59 +0000 (15:43 +0000)
commitc4a8df19ba0a82aa8dea88d9f72ed9e63cb1fa84
treeb173da05b0a8815f2f3ca4fd6e046beea7950371
parentd02f2788c34418483927d16db7e98a8a18fd508e
Fix multiple problems with DLL generation.

ld * pe-dll.c (make_head): Prefix the symbol name with the dll name.
(make_tail, make_one, make_singleton_name_thunk): Likewise.
(make_import_fixup_entry, make_runtime_pseudo_reloc): Likewise.
(pe_create_runtime_relocator_reference): Likewise.
(pe_dll_generate_implib): Set dll_symname_len.
(pe_process_import_defs): Likewise.

binutils
* dlltool.c (main): If a prefix has not been provided, attempt to
use a deterministic one based upon the dll name.
binutils/ChangeLog
binutils/dlltool.c
ld/ChangeLog
ld/pe-dll.c