diff options
author | Alan Modra <amodra@gmail.com> | 2019-09-18 16:25:19 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2019-09-18 23:07:31 +0930 |
commit | e6f7f6d14f7e1acba0cf41726616a270e7d3c121 (patch) | |
tree | 746d1bc8b1493f816181195a8d9ffaf3f4e1fa8e /gdb | |
parent | 2b44a6a237320a390284b1a8237a6bed67d5401f (diff) | |
download | gdb-e6f7f6d14f7e1acba0cf41726616a270e7d3c121.zip gdb-e6f7f6d14f7e1acba0cf41726616a270e7d3c121.tar.gz gdb-e6f7f6d14f7e1acba0cf41726616a270e7d3c121.tar.bz2 |
bfd_asymbol_* macros
The main point of this patch is to give bfd_get_section a better name,
bfd_asymbol_section.
bfd/
* bfd-in.h (bfd_asymbol_section): Rename from bfd_get_section.
(bfd_get_output_section): Delete.
(bfd_asymbol_base): Delete.
(bfd_asymbol_section, bfd_asymbol_value, bfd_asymbol_name),
(bfd_asymbol_bfd, bfd_asymbol_flavour): Tidy.
(bfd_set_asymbol_name): New macro.
* bfd-in2.h: Regenerate.
* aout-cris.c: Update throughout to use bfd_asymbol_section.
* aoutx.h: Likewise.
* cofflink.c: Likewise.
* dwarf2.c: Likewise.
* ecoff.c: Likewise.
* elf.c: Likewise.
* elf32-arm.c: Likewise.
* elf32-mips.c: Likewise.
* elf32-score.c: Likewise.
* elf32-score7.c: Likewise.
* elfn32-mips.c: Likewise.
* elfnn-aarch64.c: Likewise.
* elfxx-mips.c: Likewise.
* linker.c: Likewise.
* pdp11.c: Likewise.
* elf64-mmix.c (mmix_elf_reloc): Expand bfd_get_output_section.
binutils/
* nm.c: Update bfd_get_section to bfd_asymbol_section throughout.
* objcopy.c: Likewise.
* objdump.c: Likewise.
* rdcoff.c: Likewise.
* objcopy.c (create_new_symbol): Use bfd_set_asymbol_name.
(filter_symbols): Likewise.
gas/
* symbols.c (S_IS_LOCAL): Update bfd_get_section to
bfd_asymbol_section.
gdb/
* arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
to bfd_asymbol_section.
ld/
* ldcref.c (check_reloc_refs): Update bfd_get_section to
bfd_asymbol_section.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/arm-tdep.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5e0e37b..421b26a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2019-09-18 Alan Modra <amodra@gmail.com> + * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section + to bfd_asymbol_section. + +2019-09-18 Alan Modra <amodra@gmail.com> + * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target. * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise. * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise. diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c index 0650485..5c494c8 100644 --- a/gdb/arm-tdep.c +++ b/gdb/arm-tdep.c @@ -8575,7 +8575,7 @@ arm_record_special_symbol (struct gdbarch *gdbarch, struct objfile *objfile, data = arm_objfile_data_key.emplace (objfile, objfile->obfd->section_count); arm_mapping_symbol_vec &map - = data->section_maps[bfd_get_section (sym)->index]; + = data->section_maps[bfd_asymbol_section (sym)->index]; new_map_sym.value = sym->value; new_map_sym.type = name[1]; |