linker bfd.h tidy
[deliverable/binutils-gdb.git] / bfd / ChangeLog
index 08605c3a80a8984e6b6dfbdbc32a0067eefb5bbb..43544743ce3b0cfcf1cf22eeada7dd86777b2ee5 100644 (file)
@@ -1,3 +1,360 @@
+2019-09-23  Alan Modra  <amodra@gmail.com>
+
+       * bfd-in.h (bfd_symbol, bfd_section_already_linked),
+       (bfd_elf_version_tree): Delete forward declarations.
+       Move other forward decls and remaining elf function decl later.
+       (bfd_section_already_linked_table_init),
+       (bfd_section_already_linked_table_free),
+       (_bfd_handle_already_linked, _bfd_nearby_section),
+       (_bfd_fix_excluded_sec_syms): Move to bfdlink.h.
+
+2019-09-23  Alan Modra  <amodra@gmail.com>
+
+       * bfd-in.h: Move ecoff function declarations..
+       * ecoff-bfd.h: ..to here, new file.
+       * ecoff.c: Include ecoff-bfd.h.
+       * ecofflink.c: Likewise.
+       * elf64-alpha.c: Likewise.
+       * elfxx-mips.c: Likewise.
+       * bfd-in2.h: Regenerate.
+
+2019-09-23  Alan Modra  <amodra@gmail.com>
+
+       * bfd-in.h (enum notice_asneeded_action): Move to bfdlink.h.
+       Move most other elf declarations..
+       * elf-bfd.h: ..to here.
+       * bfd-in2.h: Regenerate.
+
+2019-09-23  Alan Modra  <amodra@gmail.com>
+
+       * bfd-in.h: Move m68k function declaration..
+       * cpu-m68k.h: ..to here, new file..
+       * elf32-m68k.h: ..and here, new file.
+       * elf32-m68k.c: Include cpu-m68k.h and elf32-m68k.h.
+       * bfd-in2.h: Regenerate.
+
+2019-09-23  Alan Modra  <amodra@gmail.com>
+
+       * bfd-in.h: Move bfin function declaration..
+       * elf32-bfin.h: ..to here, new file.
+       * elf32-bfin.c: Include elf32-bfin.h.
+       * bfd-in2.h: Regenerate.
+
+2019-09-23  Alan Modra  <amodra@gmail.com>
+
+       * bfd-in.h: Move cr16 function declaration..
+       * elf32-cr16.h: ..to here, new file.
+       * elf32-cr16.c: Include elf32-cr16.h.
+       * bfd-in2.h: Regenerate.
+
+2019-09-23  Alan Modra  <amodra@gmail.com>
+
+       * bfd-in.h (bfd_sunos_get_needed_list),
+       (bfd_sunos_record_link_assignment),
+       (bfd_sunos_size_dynamic_sections),
+       (bfd_i386linux_size_dynamic_sections),
+       (bfd_sparclinux_size_dynamic_sections): Delete obsolete decls.
+       * bfd-in2.h: Regenerate.
+
+2019-09-23  Alan Modra  <amodra@gmail.com>
+
+       * bfd-in.h: Move xcoff function declarations..
+       * xcofflink.h: ..to here, new file.
+       * xcofflink.c: Include xcofflink.h.
+       * coff-rs6000.c (bfd_xcoff_ar_archive_set_magic): Delete unused func.
+       * bfd-in2.h: Regenerate.
+
+2019-09-23  Alan Modra  <amodra@gmail.com>
+
+       * bfd-in.h: Delete coff forward refs and move coff declaration..
+       * coff-bfd.h: ..to here.
+       * bfd-in2.h: Regenerate.
+
+2019-09-23  Alan Modra  <amodra@gmail.com>
+
+       * bfd-in.h: Move arm declaraions..
+       * cpu-arm.h: ..to here, new file..
+       * coff-arm.h: ..and here, new file..
+       * elf32-arm.h: ..and here, new file.
+       * cpu-arm.c: Include cpu-arm.h.
+       * coff-arm.c: Include cpu-arm.h and coff-arm.h.
+       * elf32-arm.c: Include cpu-arm.h and elf32-arm.h.
+       * pe-arm.c: Move function rename defines later.
+       * pe-arm-wince.c: Likewise and include sysdep.h and bfd.h early.
+       * bfd-in2.h: Regenerate.
+
+2019-09-23  Alan Modra  <amodra@gmail.com>
+
+       * bfd-in.h: Move tic6x function declaration..
+       * elf32-tic6x.h: ..to here.
+       * bfd-in2.h: Regenerate.
+
+2019-09-23  Alan Modra  <amodra@gmail.com>
+
+       * bfd-in.h: Move aarch64 declarations and defines..
+       * cpu-aarch64.h: ..to here, new file..
+       * elfxx-aarch64.h: ..and here.
+       * cpu-aarch64.c: Include cpu-aarch64.h.
+       * elfnn-aarch64.c: Likewise.
+       * bfd-in2.h: Regenerate.
+
+2019-09-23  Alan Modra  <amodra@gmail.com>
+
+       * bfd-in.h: Delete ticoff function declarations.
+       * coff-tic54x.c (bfd_ticoff_set_section_load_page),
+       (bfd_ticoff_get_section_load_page): Make static.
+       * bfd-in2.h: Regenerate.
+
+2019-09-23  Alan Modra  <amodra@gmail.com>
+
+       * bfd-in.h: Move h8300 function declaration to..
+       * cpu-h8300.h: ..here, new file.
+       * cpu-h8300.c: Include cpu-h8300.h.
+       * elf32-h8300.c: Likewise.
+       * bfd-in2.h: Regenerate.
+
+2019-09-23  Alan Modra  <amodra@gmail.com>
+
+       * bfd-in.h: Move ia64 function declarations..
+       * elfxx-ia64.h: ..to here.
+       * bfd-in2.h: Regenerate.
+
+2019-09-23  Alan Modra  <amodra@gmail.com>
+
+       * bfd-in.h: Move v850 function declarations..
+       * elf32-v850.h: ..to here, new file.
+       * elf32-v850.c: Include elf32-v850.h.
+       * bfd-in2.h: Regenerate.
+
+2019-09-23  Alan Modra  <amodra@gmail.com>
+
+       * bfd-in.h: Move mips function declaration to..
+       * elfxx-mips.h: ..here.
+       * bfd-in2.h: Regenerate.
+
+2019-09-23  Alan Modra  <amodra@gmail.com>
+
+       * bfd-in.h: Move csky function declarations to..
+       * elf32-csky.h: ..here, new file.
+       * elf32-csky.c: Include elf32-csky.h.
+       * bfd-in2.h: Regenerate.
+
+2019-09-20  Nelson Chu <nelson.chu@sifive.com>
+
+       * elfnn-riscv.c (riscv_pcgp_hi_reloc): Add new field undefined_weak.
+       (riscv_record_pcgp_hi_reloc): New parameter undefined_weak.
+       Set undefined_weak field from it.
+       (relax_func_t): New parameter undefined_weak.
+       (_bfd_riscv_relax_call): New ignored parameter undefined_weak.
+       (_bfd_riscv_relax_tls_le): Likewise.
+       (_bfd_riscv_relax_align): Likewise.
+       (_bfd_riscv_relax_delete): Likewise.
+       (_bfd_riscv_relax_lui): New parameter undefined_weak.  If true,
+       allow relaxing.  For LO12* relocs, set rs1 to x0 when undefined_weak.
+       (_bfd_riscv_relax_pc): New parameter undefined_weak.  For LO12* relocs,
+       set undefined_weak from hi_reloc.  If true, allow relaxing.  For LO12*
+       relocs, set rs1 to x0 when undefined_weak and change to non-pcrel
+       reloc.
+       (_bfd_riscv_relax_section): New local undefined_weak.  Set for
+       undef weak relocs that can be relaxed.  Pass to relax_func call.
+
+2019-09-20  Alan Modra  <amodra@gmail.com>
+
+       * bfd-in.h (bfd_section_name, bfd_section_size, bfd_section_vma),
+       (bfd_section_lma, bfd_section_alignment, bfd_section_flags),
+       (bfd_section_userdata, bfd_is_com_section, discarded_section),
+       (bfd_get_section_limit_octets, bfd_get_section_limit): Delete macros.
+       * bfd.c (bfd_get_section_limit_octets, bfd_get_section_limit),
+       (bfd_section_list_remove, bfd_section_list_append),
+       (bfd_section_list_prepend, bfd_section_list_insert_after),
+       (bfd_section_list_insert_before, bfd_section_removed_from_list):
+       New inline functions.
+       * section.c (bfd_is_und_section, bfd_is_abs_section),
+       (bfd_is_ind_section, bfd_is_const_section, bfd_section_list_remove),
+       (bfd_section_list_append, bfd_section_list_prepend),
+       (bfd_section_list_insert_after, bfd_section_list_insert_before),
+       (bfd_section_removed_from_list): Delete macros.
+       (bfd_section_name, bfd_section_size, bfd_section_vma),
+       (bfd_section_lma, bfd_section_alignment, bfd_section_flags),
+       (bfd_section_userdata, bfd_is_com_section, bfd_is_und_section),
+       (bfd_is_abs_section, bfd_is_ind_section, bfd_is_const_section),
+       (discarded_section): New inline functions.
+       * bfd-in2.h: Regenerate.
+
+2019-09-20  Alan Modra  <amodra@gmail.com>
+
+       * bfd-in.h (bfd_asymbol_section, bfd_asymbol_value, bfd_asymbol_name),
+       (bfd_asymbol_bfd, bfd_asymbol_flavour, bfd_set_asymbol_name): Delete.
+       * bfd.c (bfd_asymbol_section, bfd_asymbol_value, bfd_asymbol_name),
+       (bfd_asymbol_bfd, bfd_set_asymbol_name): New inline functions.
+       * targets.c (bfd_asymbol_flavour): Likewise.
+       * bfd-in2.h: Regenerate.
+
+2019-09-20  Alan Modra  <amodra@gmail.com>
+
+       * archive.c (bfd_generic_archive_p): Use bfd_set_thin_archive.
+       * bfd-in.h (bfd_get_filename, bfd_get_cacheable, bfd_get_format),
+       (bfd_get_target, bfd_get_flavour, bfd_family_coff, bfd_big_endian),
+       (bfd_little_endian, bfd_header_big_endian, bfd_header_little_endian),
+       (bfd_get_file_flags, bfd_applicable_file_flags),
+       (bfd_applicable_section_flags, bfd_has_map, bfd_is_thin_archive),
+       (bfd_valid_reloc_types, bfd_usrdata, bfd_get_start_address),
+       (bfd_get_symcount, bfd_get_outsymbols, bfd_count_sections),
+       (bfd_get_dynamic_symcount, bfd_get_symbol_leading_char): Delete.
+       * bfd/bfd.c (bfd_get_filename, bfd_get_cacheable, bfd_get_format),
+       (bfd_get_file_flags, bfd_get_start_address, bfd_get_symcount),
+       (bfd_get_dynamic_symcount, bfd_get_outsymbols, bfd_count_sections),
+       (bfd_has_map, bfd_is_thin_archive, bfd_set_thin_archive),
+       (bfd_usrdata, bfd_set_usrdata): New inline functions.
+       * targets.c (bfd_get_target, bfd_get_flavour),
+       (bfd_applicable_file_flags, bfd_family_coff, bfd_big_endian),
+       (bfd_little_endian, bfd_header_big_endian),
+       (bfd_header_little_endian, bfd_applicable_section_flags),
+       (bfd_get_symbol_leading_char): New inline functions.
+       * bfd-in2.h: Regenerate.
+
+2019-09-20  Alan Modra  <amodra@gmail.com>
+
+       * elf64-ppc.c (ppc64_glibc_dynamic_reloc): New function.
+       (ppc64_elf_relocate_section): Warn if emitting unsupported dynamic
+       relocations.
+
+2019-09-18  Alan Modra  <amodra@gmail.com>
+
+       * bfd-in.h (bfd_get_section_name, bfd_get_section_vma),
+       (bfd_get_section_lma, bfd_get_section_alignment),
+       (bfd_get_section_size, bfd_get_section_flags),
+       (bfd_get_section_userdata): Delete.
+       (bfd_section_name, bfd_section_size, bfd_section_vma),
+       (bfd_section_lma, bfd_section_alignment): Lose bfd parameter.
+       (bfd_section_flags, bfd_section_userdata): New.
+       (bfd_is_com_section): Rename parameter.
+       * section.c (bfd_set_section_userdata, bfd_set_section_vma),
+       (bfd_set_section_alignment, bfd_set_section_flags, bfd_rename_section),
+       (bfd_set_section_size): Delete bfd parameter, rename section parameter.
+       (bfd_set_section_lma): New.
+       * bfd-in2.h: Regenerate.
+       * mach-o.c (bfd_mach_o_init_section_from_mach_o): Delete bfd param,
+       update callers.
+       * aoutx.h, * bfd.c, * coff-alpha.c, * coff-arm.c, * coff-mips.c,
+       * coff64-rs6000.c, * coffcode.h, * coffgen.c, * cofflink.c,
+       * compress.c, * ecoff.c, * elf-eh-frame.c, * elf-hppa.h,
+       * elf-ifunc.c, * elf-m10200.c, * elf-m10300.c, * elf-properties.c,
+       * elf-s390-common.c, * elf-vxworks.c, * elf.c, * elf32-arc.c,
+       * elf32-arm.c, * elf32-avr.c, * elf32-bfin.c, * elf32-cr16.c,
+       * elf32-cr16c.c, * elf32-cris.c, * elf32-crx.c, * elf32-csky.c,
+       * elf32-d10v.c, * elf32-epiphany.c, * elf32-fr30.c, * elf32-frv.c,
+       * elf32-ft32.c, * elf32-h8300.c, * elf32-hppa.c, * elf32-i386.c,
+       * elf32-ip2k.c, * elf32-iq2000.c, * elf32-lm32.c, * elf32-m32c.c,
+       * elf32-m32r.c, * elf32-m68hc1x.c, * elf32-m68k.c, * elf32-mcore.c,
+       * elf32-mep.c, * elf32-metag.c, * elf32-microblaze.c,
+       * elf32-moxie.c, * elf32-msp430.c, * elf32-mt.c, * elf32-nds32.c,
+       * elf32-nios2.c, * elf32-or1k.c, * elf32-ppc.c, * elf32-pru.c,
+       * elf32-rl78.c, * elf32-rx.c, * elf32-s390.c, * elf32-score.c,
+       * elf32-score7.c, * elf32-sh.c, * elf32-spu.c, * elf32-tic6x.c,
+       * elf32-tilepro.c, * elf32-v850.c, * elf32-vax.c, * elf32-visium.c,
+       * elf32-xstormy16.c, * elf32-xtensa.c, * elf64-alpha.c,
+       * elf64-bpf.c, * elf64-hppa.c, * elf64-ia64-vms.c, * elf64-mmix.c,
+       * elf64-ppc.c, * elf64-s390.c, * elf64-sparc.c, * elf64-x86-64.c,
+       * elflink.c, * elfnn-aarch64.c, * elfnn-ia64.c, * elfnn-riscv.c,
+       * elfxx-aarch64.c, * elfxx-mips.c, * elfxx-sparc.c,
+       * elfxx-tilegx.c, * elfxx-x86.c, * i386msdos.c, * linker.c,
+       * mach-o.c, * mmo.c, * opncls.c, * pdp11.c, * pei-x86_64.c,
+       * peicode.h, * reloc.c, * section.c, * syms.c, * vms-alpha.c,
+       * xcofflink.c: Update throughout for bfd section macro and function
+       changes.
+
+2019-09-18  Alan Modra  <amodra@gmail.com>
+
+       * 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): Part expand bfd_get_output_section.
+
+2019-09-18  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * Makefile.in: Re-generate.
+       * configure: Re-generate.
+       * doc/Makefile.in: Re-generate.
+
+2019-09-18  Alan Modra  <amodra@gmail.com>
+
+       * aoutx.h (slurp_symbol_table): Don't set symcount using bfd_get
+       macros.
+       * pdp11.c (slurp_symbol_table): Likewise.
+       * som.c (som_slurp_symbol_table): Likewise.
+       * coff-ppc.c (ppc_bfd_coff_final_link): Likewise.
+       * coffcode.h (coff_slurp_symbol_table): Likewise.
+       * cofflink.c (_bfd_coff_final_link): Likewise.
+       * ecoff.c (ecoff_slurp_symbolic_header): Likewise.
+       (_bfd_ecoff_slurp_symbolic_info): Likewise.
+       (_bfd_ecoff_slurp_symbol_table): Likewise.
+       (_bfd_ecoff_bfd_final_link): Likewise.
+       * elf.c (_bfd_elf_canonicalize_symtab): Likewise.
+       * elflink.c (elf_link_output_symstrtab): Likewise.
+       (bfd_elf_final_link): Likewise.
+       * peicode.h (pe_ILF_build_a_bfd): Likewise.
+       * xcofflink.c (_bfd_xcoff_bfd_final_link): Likewise.
+       * aoutx.h (some_aout_object_p, slurp_symbol_table): Don't set
+       start_address or symcount using bfd_get macros.
+       * coffgen.c (coff_real_object_p): Likewise.
+       * pdp11.c (some_aout_object_p, slurp_symbol_table): Likewise.
+       * som.c (som_object_setup, som_slurp_symbol_table): Likewise.
+       * elfcore.h (elf_core_file_p): Don't set start_address using
+       bfd_get macro.
+       * elf.c (_bfd_elf_canonicalize_dynamic_symtab): Don't set dynsymcount
+       using bfd_get macro.
+       * bfd.c (bfd_set_file_flags): Don't set flags using bfd_get macro.
+       * linker.c (bfd_generic_link_read_symbols): Don't set outsymbols
+       or symcount using bfd_get macros.
+       (_bfd_generic_final_link, generic_add_output_symbol): Likewise.
+       * syms.c (bfd_set_symtab): Likewise.
+       * vms-alpha.c (alpha_vms_bfd_final_link): Likewise.
+       * archive.c (do_slurp_bsd_armap): Don't set has_armap using
+       bfd_has_map macro.
+       (do_slurp_coff_armap, bfd_slurp_armap): Likewise.
+       * archive64.c (_bfd_archive_64_bit_slurp_armap): Likewise.
+       * coff-rs6000.c (_bfd_xcoff_slurp_armap): Likewise.
+       * coff64-rs6000.c (xcoff64_slurp_armap): Likewise.
+       * ecoff.c (_bfd_ecoff_slurp_armap): Likewise.
+       * som.c (som_slurp_armap): Likewise.
+
+2019-09-18  Alan Modra  <amodra@gmail.com>
+
+       * archures.c (bfd_get_arch): Make param const.
+       (bfd_get_mach, bfd_arch_bits_per_byte): Likewise.
+       (bfd_arch_bits_per_address, bfd_octets_per_byte): Likewise.
+       * bfd-in2.h: Regenerate.
+
+2019-09-18  Alan Modra  <amodra@gmail.com>
+
+       * bfd-in.h (carsym.name): Make const.
+       * reloc.c (struct reloc_howto_struct.name): Likewise.
+       * targets.c (bfd_target.name): Likewise.!
+       * bfd.c (bfd_get_sign_extend_vma): Make variable const.
+       * som.c (som_bfd_fill_in_ar_symbols): Use an intermediary variable
+       when setting carsym.name.
+       * bfd-in2.h: Regenerate.
+
 2019-09-18  Alan Modra  <amodra@gmail.com>
 
        * mach-o.c (bfd_mach_o_fat_member_init): Likewise.  Replace
This page took 0.027057 seconds and 4 git commands to generate.