• Alan Modra's avatar
    bfd_asymbol_* macros · e6f7f6d1
    Alan Modra authored
    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.
    e6f7f6d1
objcopy.c 161 KB