Use bfd_get_filename throughout ld
authorAlan Modra <amodra@gmail.com>
Tue, 19 May 2020 03:27:15 +0000 (12:57 +0930)
committerAlan Modra <amodra@gmail.com>
Tue, 19 May 2020 03:27:15 +0000 (12:57 +0930)
commit607b483327fdfc75fb193870b3c4e7445ce3f64d
tree184200d9b5f0b36628520554c4d28476137fe650
parent69f57659c37106c4407a801d89eed4b3e2243074
Use bfd_get_filename throughout ld

* emultempl/beos.em (sort_by_file_name): Use bfd_get_filename
rather than accessing bfd->filename directly.
* emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Likewise.
* emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise.
* emultempl/spuelf.em (embedded_spu_file): Likewise.
* ldlang.c (input_statement_is_archive_path, wild_sort),
(check_excluded_libs): Likewise.
* ldmain.c (add_archive_element): Likewise.
* ldmisc.c (vfinfo): Likewise.
* pe-dll.c (auto_export, generate_edata, pe_create_import_fixup),
(pe_dll_generate_implib, pe_process_import_defs): Likewise.
* plugin.c (plugin_object_p): Likewise.
ld/ChangeLog
ld/emultempl/beos.em
ld/emultempl/pe.em
ld/emultempl/pep.em
ld/emultempl/spuelf.em
ld/ldlang.c
ld/ldmain.c
ld/ldmisc.c
ld/pe-dll.c
ld/plugin.c