bfd_asymbol_* macros
authorAlan Modra <amodra@gmail.com>
Wed, 18 Sep 2019 06:55:19 +0000 (16:25 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 18 Sep 2019 13:37:31 +0000 (23:07 +0930)
commite6f7f6d14f7e1acba0cf41726616a270e7d3c121
tree746d1bc8b1493f816181195a8d9ffaf3f4e1fa8e
parent2b44a6a237320a390284b1a8237a6bed67d5401f
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.
30 files changed:
bfd/ChangeLog
bfd/aout-cris.c
bfd/aoutx.h
bfd/bfd-in.h
bfd/bfd-in2.h
bfd/cofflink.c
bfd/dwarf2.c
bfd/ecoff.c
bfd/elf.c
bfd/elf32-arm.c
bfd/elf32-mips.c
bfd/elf32-score.c
bfd/elf32-score7.c
bfd/elf64-mmix.c
bfd/elfn32-mips.c
bfd/elfnn-aarch64.c
bfd/elfxx-mips.c
bfd/linker.c
bfd/pdp11.c
binutils/ChangeLog
binutils/nm.c
binutils/objcopy.c
binutils/objdump.c
binutils/rdcoff.c
gas/ChangeLog
gas/symbols.c
gdb/ChangeLog
gdb/arm-tdep.c
ld/ChangeLog
ld/ldcref.c