diff options
author | Alan Modra <amodra@gmail.com> | 2020-05-19 12:57:15 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2020-05-19 12:57:15 +0930 |
commit | 607b483327fdfc75fb193870b3c4e7445ce3f64d (patch) | |
tree | 184200d9b5f0b36628520554c4d28476137fe650 /ld/ldmain.c | |
parent | 69f57659c37106c4407a801d89eed4b3e2243074 (diff) | |
download | gdb-607b483327fdfc75fb193870b3c4e7445ce3f64d.zip gdb-607b483327fdfc75fb193870b3c4e7445ce3f64d.tar.gz gdb-607b483327fdfc75fb193870b3c4e7445ce3f64d.tar.bz2 |
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.
Diffstat (limited to 'ld/ldmain.c')
-rw-r--r-- | ld/ldmain.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ld/ldmain.c b/ld/ldmain.c index 54d3ee3..04a3f7a 100644 --- a/ld/ldmain.c +++ b/ld/ldmain.c @@ -815,8 +815,8 @@ add_archive_element (struct bfd_link_info *info, input = (lang_input_statement_type *) xcalloc (1, sizeof (lang_input_statement_type)); input->header.type = lang_input_statement_enum; - input->filename = abfd->filename; - input->local_sym_name = abfd->filename; + input->filename = bfd_get_filename (abfd); + input->local_sym_name = bfd_get_filename (abfd); input->the_bfd = abfd; parent = bfd_usrdata (abfd->my_archive); |