elf_backend_init_file_header
[deliverable/binutils-gdb.git] / bfd / ChangeLog
index 254ebcb2cd540ca20945a546daf666f94c0b416b..1a9e64f3f359fb70533433641da0fd5ab7905116 100644 (file)
+2019-11-18  Alan Modra  <amodra@gmail.com>
+
+       * elf-bfd.h (struct elf_backend_data <elf_backend_init_file_header>):
+       Rename from elf_backend_post_process_headers.
+       (_bfd_elf_post_process_headers): Delete.
+       (_bfd_elf_init_file_header): Declare.
+       * elf.c (_bfd_elf_compute_section_file_positions): Call new function
+       in place of prep_headers and elf_backend_post_process_headers.
+       (_bfd_elf_init_file_header): Renamed from prep_headers with
+       updated args and made global.  Delete dead code.
+       (_bfd_elf_post_process_headers): Delete.
+       * elf32-arm.c (elf32_arm_init_file_header): Rename from
+       elf32_arm_post_process_headers and call _bfd_elf_init_file_header.
+       Return status.
+       (elf_backend_init_file_header): Define.
+       (elf_backend_post_process_headers): Don't define.
+       * elf32-i386.c (elf_i386_fbsd_init_file_header): Similarly.
+       * elf32-m68hc1x.c (elf32_m68hc11_init_file_header): Similarly.
+       * elf32-metag.c (elf_metag_init_file_header): Similarly.
+       * elf32-spu.c (spu_elf_init_file_header
+       * elf32-visium.c (visium_elf_init_file_header
+       * elf64-alpha.c (elf64_alpha_fbsd_init_file_header
+       * elf64-hppa.c (elf64_hppa_init_file_header
+       * elf64-ia64-vms.c (elf64_vms_init_file_header
+       * elfnn-aarch64.c (elfNN_aarch64_init_file_header
+       * elfnn-ia64.c (elfNN_hpux_init_file_header
+       * elfxx-mips.c (_bfd_mips_init_file_header
+       * elfxx-mips.h (_bfd_mips_post_process_headers): Delete.
+       (_bfd_mips_init_file_header): Declare.
+       (elf_backend_post_process_headers): Delete.
+       (elf_backend_init_file_header): Define.
+       * elfxx-target.h (elf_backend_post_process_headers): Delete.
+       (elf_backend_init_file_header): Define and use.
+       * elf32-m68hc12.c (elf_backend_init_file_header): Define.
+       (elf_backend_post_process_headers): Don't define.
+       * elf32-m68hc1x.h (elf32_m68hc11_post_process_headers): Delete.
+       (elf32_m68hc11_init_file_header): Declare.
+       * elf32-ppc.c (elf_backend_post_process_headers): Remove
+       unnecessary undef.
+
+2019-11-18  Alan Modra  <amodra@gmail.com>
+
+       * elf-bfd.h (struct elf_backend_data <elf_backend_modify_headers>):
+       Rename from elf_backend_modify_program_headers.
+       (_bfd_elf_modify_headers): Declare.
+       * elf.c (assign_file_positions_except_relocs): Set
+       elf_program_header_size.  Always call elf_backend_modify_headers.
+       Extract code modifying file header..
+       (_bfd_elf_modify_headers): ..to here.  New function.
+       * elf32-arm.c (elf_backend_modify_headers): Renamed from
+       elf_backend_modify_program_headers.
+       * elf32-i386.c: Similarly.
+       * elf64-x86-64.c: Similarly.
+       * elfxx-target.h: Similarly.  Default elf_backend_modify_headers
+       to _bfd_elf_modify_headers.
+       * elf-nacl.h (nacl_modify_headers): Rename from
+       nacl_modify_program_headers.
+       * elf-nacl.c (nacl_modify_headers): Rename from
+       nacl_modify_program_headers and call _bfd_elf_modify_headers.
+       * elf32-rx.c (elf32_rx_modify_headers): Similarly.
+       * elf32-spu.c (spu_elf_modify_headers): Similarly.
+       * elfnn-ia64.c (elfNN_ia64_modify_headers): Similarly.
+       * elf32-sh.c (elf_backend_modify_program_headers): Don't undef.
+
+2019-11-18  Alan Modra  <amodra@gmail.com>
+
+       PR 25196
+       * bfd.c (bfd_error_type): Add bfd_error_sorry.
+       (bfd_errmsgs): Likewise.
+       * elf.c (rewrite_elf_program_header): Don't abort on confused
+       lma/alignment.  Replace bfd_error_bad_value with bfd_error_sorry.
+       (_bfd_elf_validate_reloc): Use bfd_error_sorry.
+       (_bfd_elf_final_write_processing): Likewise.
+       * bfd-in2.h: Regenerate.
+
+2019-11-12  Jim Wilson  <jimw@sifive.com>
+
+       PR 25181
+       * elfnn-riscv.c (_bfd_riscv_relax_call): Always add max_alignment to
+       foff.  If sym_sec->output_section and sec->output_section are the same
+       and not *ABS* then set max_alignment to that section's alignment.
+
+2019-11-07  Alan Modra  <amodra@gmail.com>
+
+       * cpu-cr16c.c: Delete.
+       * elf32-cr16c.c: Delete.
+       * Makefile.am,
+       * archures.c,
+       * config.bfd,
+       * configure.ac,
+       * reloc.c,
+       * targets.c: Remove cr16c support.
+       * Makefile.in,
+       * bfd-in2.h,
+       * configure,
+       * libbfd.h,
+       * po/SRC-POTFILES.in: Regenerate.
+
+2019-11-05  Tim Rühsen  <tim.ruehsen@gmx.de>
+
+       * doc/chew.c (add_to_definition): Use correct type when
+       calculating size of array reallocation.
+       (nextword): Always initialise the word return parameter.
+       (compile): Check return value of nextword().
+
+2019-10-30  Keith Seitz  <keiths@redhat.com>
+
+       * elf-bfd.h (elf_backend_data) <elf_backend_core_find_build_id>:
+       New field.
+       (_bfd_elf32_core_find_build_id, _bfd_elf64_core_find_build_id):
+       New functions.
+       (elf_read_notes): Add declaration.
+       * elf.c (elf_read_notes): Move elf-bfd.h.
+       (_bfd_elf_core_find_build_id): New function.
+       (bfd_section_from_phdr): Scan core file PT_LOAD segments for
+       build-id if none is known.
+       (elf_parse_notes): For core files, scan for notes.
+       * elfcore.h (elf_core_file_matches_executable_p): If both
+       BFDs have identical build-ids, then they match.
+       (_bfd_elf_core_find_build_id): New function.
+       * elfxx-target.h (elf_backend_core_find_build_id): Define.
+       (elfNN_bed): Add elf_backend_core_find_build_id.
+
+2019-10-29  Andrew Eikum  <aeikum@codeweavers.com>
+
+       * libcoff-in.h (struct pe_tdata): Add dos_message field.
+       * libcoff.h: Regenerate.
+       * peXXigen.c (_bfd_XXi_only_swap_filehdr_out): Copy the
+       dos_message field rather than initialising it.
+       (_bfd_XX_bfd_copy_private_bfd_data_common): Copy the dos_message
+       field.
+       * peicode.h (pe_mkobject): Initialise the dos_message field.
+       (pe_mkobject_hook): Copy the dos_message field.
+       (pe_bfd_object_p): Copy the dos_message field.
+
+2019-10-25  Alan Modra  <amodra@gmail.com>
+
+       PR 4499
+       * elf-nacl.c (nacl_modify_segment_map): Set no_sort_lma for all
+       PT_LOAD segments.
+       * elf32-spu.c (spu_elf_modify_segment_map): Likewise on overlay
+       PT_LOAD segments.
+       * elf.c (elf_sort_segments): New function.
+       (assign_file_positions_except_relocs): Use shortcuts to elfheader
+       and elf_tdata.  Seek to e_phoff not sizeof_ehdr to write program
+       headers.  Move PT_PHDR check..
+       (assign_file_positions_for_non_load_sections): ..and code setting
+       PT_PHDR p_vaddr and p_paddr, and code setting __ehdr_start value..
+       (assign_file_positions_for_load_sections): ..to here.  Sort
+       PT_LOAD headers.  Delete header_pad code.  Use actual number of
+       headers rather than allocated in calculating size for program
+       headers.  Don't assume program headers follow ELF file header.
+       Simplify pt_load_count code.  Only set "off" for PT_LOAD or
+       PT_NOTE in cores.
+       (rewrite_elf_program_header): Set p_vaddr_offset for segments
+       that include file and program headers.
+       (copy_elf_program_header): Likewise, replacing header_size code.
+
+2019-10-21  Alan Modra  <amodra@gmail.com>
+
+       PR 452
+       * archive.c (normalize): Return file unchanged when
+       BFD_ARCHIVE_FULL_PATH.
+       (_bfd_construct_extended_name_table): Pass abfd, the output
+       bfd, to normalize.
+       (_bfd_archive_bsd44_construct_extended_name_table): Likewise.
+       * bfd.c (struct bfd): Make flags a full flagword.
+       (BFD_ARCHIVE_FULL_PATH): Define.
+       * bfd-in2.h: Regenerate.
+
+2019-10-20  John David Anglin  <danglin@gcc.gnu.org>
+
+       * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Provide 8-byte
+       minimum alignment for .plt section.
+
+2019-10-19  John David Anglin  <danglin@gcc.gnu.org>
+
+       * elf32-hppa.c: Revise import stub sequences.
+       (LONG_BRANCH_STUB_SIZE): Define.
+       (LONG_BRANCH_SHARED_STUB_SIZE): Define.
+       (IMPORT_STUB_SIZE): Define.
+       (IMPORT_SHARED_STUB_SIZE): Define.
+       (EXPORT_STUB_SIZE): Define.
+       (plt_stub): Revise to not use register %r22.
+       (LDO_R1_R22): Define.
+       (LDW_R22_R21): Define.
+       (LDW_R22_R19): Define.
+       (hppa_build_one_stub): Update stub generation and use new defines.
+       (hppa_size_one_stub): Likewise.
+
+2019-10-17  Nelson Chu  <nelson.chu@sifive.com>
+
+       * elfnn-riscv.c (riscv_elf_relocate_section): Report the error message
+       that user should recompile their code with `fPIC` when linking non-pic
+       code into shared library.
+
+       * elfnn-riscv.c (riscv_elf_relocate_section): Use asprintf to extend
+       the error message if needed, and then store the result into the
+       `msg_buf`.  Finally, remember to free the unused `msg_buf`.  All error
+       message for the dangerous relocation should be set before we call the
+       callback function.  If we miss the error message since linker runs out
+       of memory, we should set the default error message for the error.
+
+2019-10-16  Alan Modra  <amodra@gmail.com>
+
+       PR 13616
+       * cpu-powerpc.c (bfd_arch_ppc_nop_fill): New function, use it
+       for all ppc arch info.
+       * linker.c (default_data_link_order): Pass info->big_endian to
+       arch_info->fill function.
+
+2019-10-15  Alan Modra  <amodra@gmail.com>
+
+       * elf32-m68hc1x.c (reloc_warning): Add printf attribute.
+       (elf32_m68hc11_relocate_section): Don't use a variable for format
+       strings.  Delete some unnecessary xgettext:c-format comments.
+
+2019-10-15  Alan Modra  <amodra@gmail.com>
+
+       PR 24955
+       * elf32-arm.c (set_cmse_veneer_addr_from_implib): Use bfd_malloc
+       rather than xmalloc.
+       * elf32-m68hc1x.c (reloc_warning): New function.
+       (elf32_m68hc11_relocate_section): Use it here.  Cast bfd_vma values
+       corresponding to %lx in format strings.
+       * elf32-nds32.c (nds32_insertion_sort): Use a stack temporary.
+
+2019-10-15  Alan Modra  <amodra@gmail.com>
+
+       PR 25100
+       * elf64-ppc.c (sfpr_define): Delete dead code that triggered a warning.
+
+2019-10-15  Alan Modra  <amodra@gmail.com>
+
+       * bfd.c (bfd_check_compression_header): Check for powers of two
+       with x == (x & -x).
+
+2019-10-14  Alan Modra  <amodra@gmail.com>
+
+       * syms.c (struct indexentry): Add idx field.
+       (cmpindexentry): Final sort on idx.
+       (_bfd_stab_section_find_nearest_line): Set idx.
+
+2019-10-14  Alan Modra  <amodra@gmail.com>
+
+       * dwarf2.c (struct lookup_funcinfo): Add idx field.
+       (compare_lookup_funcinfos): Perform final sort on idx.
+       (build_lookup_funcinfo_table): Set idx.
+       (compare_sequences): Perform final sort on num_lines.
+       (build_line_info_table): Set num_lines and line_info_lookup earlier.
+       (sort_line_sequences): Set num_lines for sort.
+
+2019-10-14  Alan Modra  <amodra@gmail.com>
+
+       * elflink.c (elf_sort_symbol): Sort on type and name as well.
+       (elf_link_add_object_symbols): Style fix.
+
+2019-10-14  Alan Modra  <amodra@gmail.com>
+
+       * elf.c (_bfd_elf_map_sections_to_segments): Init target_index
+       for sections about to be sorted.
+       (assign_file_positions_for_load_sections): Likewise.
+       (elf_sort_sections): Don't bother optimising both TOEND case.
+       * elflink.c (bfd_elf_final_link): Reset target_index.
+
+2019-10-14  Alan Modra  <amodra@gmail.com>
+
+       * elflink.c (elf_get_linked_section_vma): Delete.
+       (compare_link_order): Use elf_linked_to_section and sort by lma,
+       size, and id.
+       (elf_fixup_link_order): Use size_t variables where appropriate.
+       Make use of elf_linked_to_section.  Formatting.  Properly align
+       sections.
+
+2019-10-14  Alan Modra  <amodra@gmail.com>
+
+       * elf-strtab.c (strrevcmp): Comment.
+       * merge.c (strrevcmp): Likewise.
+       * elf64-ppc.c (compare_symbols): Correct final pointer comparison.
+       Comment on why comparing pointers ensures a stable sort.
+       * elflink.c (struct elf_symbol): Add void* to union.
+       (elf_sort_elf_symbol): Ensure a stable sort with pointer comparison.
+       (elf_sym_name_compare): Likewise.
+       (bfd_elf_match_symbols_in_sections): Style fix.
+       (elf_link_sort_cmp1): Comment.
+
+2019-10-14  Alan Modra  <amodra@gmail.com>
+
+       PR 24955
+       * elflink.c (elf_output_implib): Don't use xmalloc.  Don't ignore
+       return value of bfd_alloc2.
+       * peXXigen.c (_bfd_XXi_write_codeview_record): Don't use xmalloc.
+       * pef.c (bfd_pef_print_symbol): Likewise.  Don't ignore return
+       value of bfd_get_section_contents.
+       * som.c (som_write_space_strings): Don't use xmalloc.
+       (som_write_symbol_strings): Likewise.
+
+2019-10-11  Max Filippov  <jcmvbkbc@gmail.com>
+
+       * dwarf2.c (stash_maybe_enable_info_hash_tables): Only set
+       stash->info_hash_status = STASH_INFO_HASH_ON when
+       stash_maybe_update_info_hash_tables succeeds.
+
+2019-10-09  Alan Modra  <amodra@gmail.com>
+
+       PR 25070
+       * dwarf2.c (_bfd_dwarf2_slurp_debug_info): Catch overflow of
+       total_size calculation.
+
+2019-10-08  Alan Modra  <amodra@gmail.com>
+
+       PR 25078
+       * dwarf2.c (find_abstract_instance): Delete orig_info_ptr, add
+       recur_count.  Error on recur_count reaching 100 rather than
+       info_ptr matching orig_info_ptr.  Adjust calls.
+
+2019-10-07  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
+
+       * elf32-msp430.c (elf32_msp430_merge_mspabi_attributes): Rename to..
+       (elf32_msp430_merge_msp430_attributes): Add support for merging
+       the GNU object attribute for data region.
+
+2019-10-07  Alan Modra  <amodra@gmail.com>
+
+       * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Do allocate
+       space for local got non-tls relocs when PIE.
+
+2019-10-07  Alan Modra  <amodra@gmail.com>
+
+       * elflink.c (elf_fixup_link_order): Don't attempt to find
+       an elf_section for linker created bfd sections.
+
+2019-10-07  Alan Modra  <amodra@gmail.com>
+
+       * elf32-ppc.c (ppc_elf_tls_optimize): Don't process R_PPC_TLSLD
+       with non-local symbol.  Don't double count __tls_get_addr calls
+       with marker relocs.
+       * elf64-ppc.c (ppc64_elf_tls_optimize): Likewise.
+
+2019-10-07  Alan Modra  <amodra@gmail.com>
+
+       * elf32-ppc.c (nomark_tls_get_addr): Rename from has_tls_get_addr_call
+       throughout.
+       * elf64-ppc.c (nomark_tls_get_addr): Likewise.
+
+2019-10-04  Alan Modra  <amodra@gmail.com>
+
+       * elf64-ppc.c (ppc64_elf_check_relocs): Move initialisation of vars.
+       (ppc64_elf_tls_optimize): Correct is_local condition.
+       (allocate_got): Don't reserve dynamic relocations for any of the
+       tls got relocs in PIEs when the symbol is local.
+       (allocate_dynrelocs): Correct validity test for local sym using
+       tlsld_got slot.
+       (ppc64_elf_size_dynamic_sections): Don't reserve dynamic relocations
+       for any of the tls got relocs in PIEs.
+       (ppc64_elf_layout_multitoc): Likewise.
+       (ppc64_elf_relocate_section): Correct validity test for local sym
+       using tlsld_got slot.  Don't emit dynamic relocations for any of
+       the tls got relocs in PIEs when the symbol is local.
+       * elf32-ppc.c (ppc_elf_tls_optimize): Correct is_local condition.
+       (got_relocs_needed): Delete.
+       (allocate_dynrelocs): Correct validity test for local sym using
+       tlsld_got slot.  Don't reserve dynamic relocations for any of the
+       tls got relocs in PIEs when the symbol is local.
+       (ppc_elf_size_dynamic_sections): Don't reserve dynamic relocations
+       for any of the tls got relocs in PIEs.
+       (ppc_elf_relocate_section): Correct validity test for local sym
+       using tlsld_got slot.  Don't emit dynamic relocations for any of
+       the tls got relocs in PIEs when the symbol is local.
+
+2019-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
+
+       PR ld/22263
+       PR ld/25056
+       * elf32-arm.c (elf32_arm_tls_transition): Use bfd_link_dll instead of
+       bfd_link_pic for TLS checks.
+       (elf32_arm_final_link_relocate): Likewise.
+       (allocate_dynrelocs_for_symbol): Likewise.
+
+2019-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
+
+       PR ld/25062
+       * elf32-arm.c (elf32_arm_final_link_relocate): Sign extend data.
+
+2019-09-30  Nick Alcock  <nick.alcock@oracle.com>
+
+       * elf-bfd.h (bfd_section_is_ctf): New inline function.
+       * elf.c (special_sections_c): Add ".ctf".
+       (assign_file_positions_for_non_load_sections): Note that
+       compressed debugging sections etc are not assigned here.  Treat
+       CTF sections like SEC_ELF_COMPRESS sections when is_linker_output:
+       sh_offset -1.
+       (assign_file_positions_except_relocs): Likewise.
+       (find_section_in_list): Note that debugging and CTF sections, as
+       well as reloc sections, are assigned later.
+       (_bfd_elf_assign_file_positions_for_non_load): CTF sections get
+       their size and contents updated.
+       (_bfd_elf_set_section_contents): Skip CTF sections: unlike
+       compressed sections, they have no uncompressed content to copy at
+       this stage.
+       * elflink.c (elf_link_swap_symbols_out): Call the examine_strtab
+       callback right before the strtab is written out.
+       (bfd_elf_final_link): Don't cache the section contents of CTF
+       sections: they are not populated yet.  Call the emit_ctf callback
+       right at the end, after all the symbols and strings are flushed
+       out.
+
+2019-07-13  Nick Alcock  <nick.alcock@oracle.com>
+
+       * elf-strtab.c (_bfd_elf_strtab_len): New.
+       (_bfd_elf_strtab_str): Likewise.
+       * bfd-elf.h: Declare them.
+
+2019-07-13  Nick Alcock  <nick.alcock@oracle.com>
+
+       * elf-bfd.h (bfd_elf_get_str_section): Add.
+       * elf.c (bfd_elf_get_str_section): No longer static.
+
+2019-09-26  Alan Modra  <amodra@gmail.com>
+
+       PR 24262
+       * Makefile.am (AM_CPPFLAGS): Add -DLIBDIR.
+       * plugin.c (load_plugin): Search both ${libdir}/bfd-plugins and
+       ${bindir}/../lib/bfd-plugins if different.
+       * Makefile.in: Regenerate.
+
+2019-09-23  Alan Modra  <amodra@gmail.com>
+
+       * elf64-ppc.c (ppc64_elf_check_relocs): Use bfd_link_executable
+       in choosing between different actions for shared library and
+       non-shared library cases.  Delete ELIMINATE_COPY_RELOCS test.
+       (dec_dynrel_count): Likewise.  Account for ifunc special case.
+       (ppc64_elf_adjust_dynamic_symbol): Copy relocs are for executables,
+       not non-pic.
+       (allocate_dynrelocs): Comment fixes.  Delete ELIMINATE_COPY_RELOCS
+       test.
+
+2019-09-23  Alan Modra  <amodra@gmail.com>
+
+       * Makefile.am (SOURCE_HFILES): Add many missing .h files.
+       * Makefile.in: Regenerate.
+       * po/SRC-POTFILES.in: Regenerate.
+
+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
+       xstrdup and xmalloc with bfd_strdup and bfd_malloc.  Return an
+       error status.  Adjust calls.
+       * vms-lib.c (_bfd_vms_lib_get_module): Test mhd->id earlier.
+       Close bfd on failure.  Replace xstrdup/bfd_alloc use with
+       bfd_malloc.  Use bfd_set_filename.
+
+2019-09-18  Alan Modra  <amodra@gmail.com>
+
+       * elf64-ppc.c (must_be_dyn_reloc): Return 0 for TOC16 relocs.
+       (ppc64_elf_check_relocs): Support dynamic/copy relocs for TOC16.
+       (ppc64_elf_adjust_dynamic_symbol): Don't keep dynamic reloc when
+       needs_copy even if all relocs are in rw sections.
+       (dec_dynrel_count): Handle TOC16 relocs.
+       (ppc64_elf_relocate_section): Support dynamic relocs for TOC16.
+       (ppc64_elf_finish_dynamic_symbol): Adjust to handle needs_copy
+       semantic change.
+
+2019-09-16  Phil Blundell  <pb@pbcl.net>
+
+       * version.m4: Set version to 2.33.50.
+       * Makefile.in, configure, doc/Makefile.in: Regenerated.
+
+2019-09-11  Tom Tromey  <tom@tromey.com>
+
+       * opncls.c (bfd_set_filename): New function.
+       * bfd-in2.h: Regenerate.
+
+2019-09-11  Alan Modra  <amodra@gmail.com>
+
+       * targets.c (struct bfd_target): Add _bfd_group_name.
+       (BFD_JUMP_TABLE): Likewise.
+       * coffgen.c (bfd_coff_group_name): New function.
+       * elf.c (bfd_elf_group_name): New function.
+       * linker.c (_bfd_nolink_bfd_group_name): New function.
+       * section.c (bfd_generic_group_name): New function.
+       * elf-bfd.h (bfd_elf_group_name): Declare.
+       * libbfd-in.h (_bfd_nolink_bfd_group_name): Declare.
+       * libcoff-in.h (bfd_coff_group_name): Declare.
+       * aout-target.h (MY_bfd_group_name): Define.
+       * aout-tic30.c (MY_bfd_group_name): Define.
+       * bfd.c (bfd_group_name): Define.
+       * binary.c (binary_bfd_group_name): Define.
+       * coff-alpha.c (_bfd_ecoff_bfd_group_name): Define.
+       * coff-mips.c (_bfd_ecoff_bfd_group_name): Define.
+       * coff-rs6000.c (_bfd_xcoff_bfd_group_name): Define.
+       * coffcode.h (coff_bfd_group_name): Define.
+       * elfxx-target.h (bfd_elfNN_bfd_group_name): Define.
+       * i386msdos.c (msdos_bfd_group_name): Define.
+       * ihex.c (ihex_bfd_group_name): Define.
+       * mach-o-target.c (bfd_mach_o_bfd_group_name): Define.
+       * mmo.c (mmo_bfd_group_name): Define.
+       * pef.c (bfd_pef_bfd_group_name): Define.
+       * plugin.c (bfd_plugin_bfd_group_name): Define.
+       * ppcboot.c (ppcboot_bfd_group_name): Define.
+       * som.c (som_bfd_group_name): Define.
+       * srec.c (srec_bfd_group_name): Define.
+       * tekhex.c (tekhex_bfd_group_name): Define.
+       * verilog.c (verilog_bfd_group_name): Define.
+       * vms-alpha.c (vms_bfd_group_name, alpha_vms_bfd_group_name): Define.
+       * xsym.c (bfd_sym_bfd_group_name): Define.
+       * coff64-rs6000.c (rs6000_xcoff64_vec): Init new field.
+       (rs6000_xcoff64_aix_vec): Likewise.
+       * bfd-in2.h: Regenerate.
+       * libbfd.h: Regenerate.
+       * libcoff.h: Regenerate.
+
+2019-09-10  Nick Clifton  <nickc@redhat.com>
+
+       PR 24907
+       * archures.c (bfd_arch_info_type): Add max_reloc_offset_into_insn
+       field.
+       (bfd_default_arch_struct): Initialise the new field.
+       * bfd-in2.h: Regenerate.
+       * cpu-aarch64.c: Initialise the new field.
+       * cpu-alpha.c: Likewise.
+       * cpu-arc.c: Likewise.
+       * cpu-arm.c: Likewise.
+       * cpu-avr.c: Likewise.
+       * cpu-bfin.c: Likewise.
+       * cpu-bpf.c: Likewise.
+       * cpu-cr16.c: Likewise.
+       * cpu-cr16c.c: Likewise.
+       * cpu-cris.c: Likewise.
+       * cpu-crx.c: Likewise.
+       * cpu-csky.c: Likewise.
+       * cpu-d10v.c: Likewise.
+       * cpu-d30v.c: Likewise.
+       * cpu-dlx.c: Likewise.
+       * cpu-epiphany.c: Likewise.
+       * cpu-fr30.c: Likewise.
+       * cpu-frv.c: Likewise.
+       * cpu-ft32.c: Likewise.
+       * cpu-h8300.c: Likewise.
+       * cpu-hppa.c: Likewise.
+       * cpu-i386.c: Likewise.
+       * cpu-ia64.c: Likewise.
+       * cpu-iamcu.c: Likewise.
+       * cpu-ip2k.c: Likewise.
+       * cpu-iq2000.c: Likewise.
+       * cpu-k1om.c: Likewise.
+       * cpu-l1om.c: Likewise.
+       * cpu-lm32.c: Likewise.
+       * cpu-m10200.c: Likewise.
+       * cpu-m10300.c: Likewise.
+       * cpu-m32c.c: Likewise.
+       * cpu-m32r.c: Likewise.
+       * cpu-m68hc11.c: Likewise.
+       * cpu-m68hc12.c: Likewise.
+       * cpu-m68k.c: Likewise.
+       * cpu-m9s12x.c: Likewise.
+       * cpu-m9s12xg.c: Likewise.
+       * cpu-mcore.c: Likewise.
+       * cpu-mep.c: Likewise.
+       * cpu-metag.c: Likewise.
+       * cpu-microblaze.c: Likewise.
+       * cpu-mips.c: Likewise.
+       * cpu-mmix.c: Likewise.
+       * cpu-moxie.c: Likewise.
+       * cpu-msp430.c: Likewise.
+       * cpu-mt.c: Likewise.
+       * cpu-nds32.c: Likewise.
+       * cpu-nfp.c: Likewise.
+       * cpu-nios2.c: Likewise.
+       * cpu-ns32k.c: Likewise.
+       * cpu-or1k.c: Likewise.
+       * cpu-pdp11.c: Likewise.
+       * cpu-pj.c: Likewise.
+       * cpu-plugin.c: Likewise.
+       * cpu-powerpc.c: Likewise.
+       * cpu-pru.c: Likewise.
+       * cpu-riscv.c: Likewise.
+       * cpu-rl78.c: Likewise.
+       * cpu-rs6000.c: Likewise.
+       * cpu-rx.c: Likewise.
+       * cpu-s12z.c: Likewise.
+       * cpu-s390.c: Likewise.
+       * cpu-score.c: Likewise.
+       * cpu-sh.c: Likewise.
+       * cpu-sparc.c: Likewise.
+       * cpu-spu.c: Likewise.
+       * cpu-tic30.c: Likewise.
+       * cpu-tic4x.c: Likewise.
+       * cpu-tic54x.c: Likewise.
+       * cpu-tic6x.c: Likewise.
+       * cpu-tic80.c: Likewise.
+       * cpu-tilegx.c: Likewise.
+       * cpu-tilepro.c: Likewise.
+       * cpu-v850.c: Likewise.
+       * cpu-v850_rh850.c: Likewise.
+       * cpu-vax.c: Likewise.
+       * cpu-visium.c: Likewise.
+       * cpu-wasm32.c: Likewise.
+       * cpu-xc16x.c: Likewise.
+       * cpu-xgate.c: Likewise.
+       * cpu-xstormy16.c: Likewise.
+       * cpu-xtensa.c: Likewise.
+       * cpu-z80.c: Likewise.
+       * cpu-z8k.c: Likewise.
+
+2019-09-09  Phil Blundell  <pb@pbcl.net>
+
+       binutils 2.33 branch created.
+
+2019-09-06  Alan Modra  <amodra@gmail.com>
+
+       * aout-target.h (object_p): Formatting.
+       * bfd-in.h (bfd_get_filename): Don't cast to char*.
+       * corefile.c (generic_core_file_matches_executable_p): Constify
+       variables and remove cast.
+       * bfd-in2.h: Regenerate.
+
+2019-09-05  Alan Modra  <amodra@gmail.com>
+
+       * elf64-ppc.c (ppc64_elf_check_relocs): Interpret an addend in
+       GOT_PCREL and PLT_PCREL relocs as affecting the value stored
+       in the GOT/PLT entry rather than affecting the offset to that
+       GOI/PLT entry.
+       (ppc64_elf_edit_toc, ppc64_elf_relocate_section): Likewise.
+
+2019-09-05  Alan Modra  <amodra@gmail.com>
+
+       * elf64-ppc.c (xlate_pcrel_opt): Handle prefix loads and stores
+       in second instruction.
+       (ppc64_elf_relocate_section): Likewise.
+
+2019-09-05  Alan Modra  <amodra@gmail.com>
+
+       PR 24955
+       * libbfd-in.h (bfd_strdup): New inline function.
+       * archive.c (_bfd_get_elt_at_filepos): Use bfd_strdup.  Close
+       bfd on error.
+       * elfcode.h (_bfd_elf_bfd_from_remote_memory): Use bfd_strdup.
+       * opncls.c (bfd_fopen): Use bfd_strdup.  Close fd and stream
+       on error.
+       (bfd_openstreamr): Use bfd_strdup.
+       (bfd_openr_iovec, bfd_openw, bfd_create): Likewise.
+       * plugin.c (try_load_plugin): Use bfd_malloc.
+       * libbfd.h: Regenerate.
+
+2019-09-02  Alan Modra  <amodra@gmail.com>
+
+       PR 11983
+       * dwarf2.c (_bfd_dwarf2_slurp_debug_info): Free debug_filename
+       on success.  Tidy.
+       (read_alt_indirect_string): Likewise.
+       (read_alt_indirect_ref): Likewise.
+
+2019-08-31  Jim Wilson  <jimw@sifive.com>
+
+       PR 23825
+       * elfnn-riscv.c (riscv_elf_create_dynamic_sections): Add SEC_LOAD,
+       SEC_DATA, and SEC_HAS_CONTENTS to .tdata.dyn section.
+
+2019-08-30  Jim Wilson  <jimw@sifive.com>
+
+       * elfnn-riscv.c (riscv_elf_relocate_section): For unresolvable reloc
+       error, call bfd_set_error, set ret to FALSE, and goto out label.
+
+2019-08-30  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/24951
+       * archive.c (_bfd_get_elt_at_filepos): Copy BFD_COMPRESS,
+       BFD_DECOMPRESS and BFD_COMPRESS_GABI flags for thin archive.
+
+2019-08-29  Alan Modra  <amodra@gmail.com>
+
+       PR 24697
+       * elf32-ppc.c (ppc_elf_check_relocs): Call bad_shared_reloc
+       when !bfd_link_executable for R_PPC_EMB_SDA2I16 and
+       R_PPC_EMB_SDA2REL.  Don't call bad_shared_reloc for any other
+       reloc.
+
+2019-08-29  Alan Modra  <amodra@gmail.com>
+
+       * elf64-ppc.c (xlate_pcrel_opt): Add poff parameter.  Allow offset
+       on second insn, return it in poff.
+       (ppc64_elf_relocate_section): Add offset to paddi addend for
+       PCREL_OPT.
+
+2019-08-28  Jim Wilson  <jimw@sifive.com>
+
+       * elfnn-riscv.c (_bfd_riscv_relax_lui): Add check to exclude abs
+       section when setting max_alignment.  Update comment.
+       (_bfd_riscv_relax_pc): Likewise.
+
+2019-08-29  Alan Modra  <amodra@gmail.com>
+
+       PR 24891
+       * bfd.c (struct bfd): Add no_element_cache.
+       * archive.c (_bfd_get_elt_at_filepos): Don't add element to
+       archive cache when no_element_cache.
+       (bfd_generic_archive_p): Set no_element_cache when opening first
+       element to check format.  Close first element too.
+       (do_slurp_bsd_armap): Don't zero ardata->cache here.
+       * bfd-in2.h: Regenerate.
+
+2019-08-24  Alan Modra  <amodra@gmail.com>
+
+       * elf64-ppc.c (ppc64_elf_edit_toc): Exclude undefined weak
+       symbols from GOT optimisation.
+
+2019-08-23  Stafford Horne  <shorne@gmail.com>
+
+       * elf32-or1k.c (or1k_elf_finish_dynamic_symbol): Use correct value for
+       PLT GOT entries.
+
+2019-08-23  Nick Clifton  <nickc@redhat.com>
+
+       PR 24456
+       * elf.c (bfd_section_from_shdr): Issue an informative warning
+       message and continue processing other sections after encountering
+       a reloc section for a section which already has other relocs
+       associated with it.
+
+2019-08-23  Alan Modra  <amodra@gmail.com>
+
+       PR 24933
+       * elfxx-x86.c (_bfd_x86_elf_get_synthetic_symtab): Don't exit
+       on error without freeing plts[] contents.
+
+2019-08-22  Dennis Zhang  <dennis.zhang@arm.com>
+
+       * cpu-arm.c: New entries for Cortex-M35P, Cortex-A77, Cortex-A76AE.
+
+2019-08-22  Nick Clifton  <nickc@redhat.com>
+
+       PR 24922
+       * pei-x86_64.c (pex64_xdata_print_uwd_codes): Add checks before
+       reading data from extra records.
+
+2019-08-22  Tamar Christina  <tamar.christina@arm.com>
+
+       PR ld/24601
+       * elfnn-aarch64.c (aarch64_relocate): Handle weak TLS and undefined TLS.
+       Also Pass input_bfd to _bfd_aarch64_elf_resolve_relocation.
+       * elfxx-aarch64.c (_bfd_aarch64_elf_resolve_relocation): Use it.
+       * elfxx-aarch64.h (_bfd_aarch64_elf_resolve_relocation): Emit warning
+       for weak TLS.
+
+2019-08-22  Alan Modra  <amodra@gmail.com>
+
+       * elf32-arm.c (cmse_scan): Don't use ARM_GET_SYM_CMSE_SPCL,
+       instead recognize CMSE_PREFIX in symbol name.
+       (elf32_arm_gc_mark_extra_sections): Likewise.
+       (elf32_arm_filter_cmse_symbols): Don't test ARM_GET_SYM_CMSE_SPCL.
+       (elf32_arm_swap_symbol_in): Don't invoke ARM_SET_SYM_CMSE_SPCL.
+
+2019-08-20  Dennis Zhang  <dennis.zhang@arm.com>
+
+       * cpu-aarch64.c: New entries for Cortex-A34, Cortex-A65,
+        Cortex-A77, cortex-A65AE, and Cortex-A76AE.
+
+2019-08-20  Tamar Christina  <tamar.christina@arm.com>
+
+       * elf32-arm.c (elf32_thumb2_plt_entry, elf32_arm_plt_thumb_stub,
+       elf32_arm_stub_long_branch_v4t_thumb_thumb,
+       elf32_arm_stub_long_branch_v4t_thumb_arm,
+       elf32_arm_stub_short_branch_v4t_thumb_arm,
+       elf32_arm_stub_long_branch_v4t_thumb_arm_pic,
+       elf32_arm_stub_long_branch_v4t_thumb_thumb_pic,
+       elf32_arm_stub_long_branch_v4t_thumb_tls_pic): Change nop to branch to
+       previous instruction.
+
+2019-08-19  Tom Tromey  <tromey@adacore.com>
+
+       * dwarf2.c (_bfd_dwarf2_find_symbol_bias): Create hash table
+       holding symbols.
+
+2019-08-19  Alan Modra  <amodra@gmail.com>
+
+       * elf64-ppc.c (struct ppc64_elf_obj_tdata): Rename has_gotrel
+       to has_optrel.
+       (struct _ppc64_elf_section_data): Likewise.
+       (ppc64_elf_check_relocs): Set has_optrel for more relocs.
+       (ppc64_elf_edit_toc): Do ha/lo insn checks in GOT loop rather
+       than TOC loop.  Check PLT16 insns too.
+
+2019-08-16  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/24905
+       * elf64-x86-64.c (elf_x86_64_check_relocs): Move PIC check for
+       PC-relative relocations back to ...
+       (elf_x86_64_relocate_section): Here.
+
+2019-08-16  Martin Liska  <mliska@suse.cz>
+
+       PR ld/24912
+       * elflink.c: Report error only for not relocatable.
+       * linker.c (_bfd_generic_link_add_one_symbol): Do not handle
+       here lto_slim_object as it's handled in caller.
+
+2019-08-16  Alan Modra  <amodra@gmail.com>
+
+       * elf32-ppc.c (ppc_elf_relocate_section): Optimize unaligned relocs.
+
+2019-08-15  Jim Wilson  <jimw@sifive.com>
+
+       * elfnn-riscv.c (perform_relocation) <R_RISCV_RVC_LUI>: If
+       RISCV_CONST_HIGH_PART (value) is zero, then convert c.lui instruction
+       to c.li instruction, and use ENCODE_RVC_IMM to set value.
+
+2019-08-15  Tom Tromey  <tromey@adacore.com>
+
+       * dwarf2.c (scan_unit_for_symbols): Check for end of CU, not end
+       of section.
+
+2019-08-14  Alan Modra  <amodra@gmail.com>
+
+       PR 24623
+       * dwarf2.c (stash_comp_unit): New function, extracted from..
+       (_bfd_dwarf2_find_nearest_line): ..here.
+       (find_abstract_instance): Parse comp units and decode line info
+       as needed.
+
+2019-08-14  Alan Modra  <amodra@gmail.com>
+
+       * dwarf2.c (comp_unit_maybe_decode_line_info): Declare.
+       (comp_unit_find_nearest_line): Use it here..
+       (_bfd_dwarf2_find_symbol_bias): ..and here.
+
+2019-08-14  Alan Modra  <amodra@gmail.com>
+
+       * dwarf2.c (_bfd_dwarf2_find_nearest_line): Remove addr_size parameter.
+       * libbfd-in.h  (_bfd_dwarf2_find_nearest_line): Update prototype.
+       * coffgen.c (coff_find_nearest_line_with_names): Adjust
+       _bfd_dwarf2_find_nearest_line calls.
+       * elf.c (_bfd_elf_find_nearest_line, _bfd_elf_find_line): Likewise.
+       * elf32-arm.c (elf32_arm_find_nearest_line): Likewise.
+       * elf64-alpha.c (elf64_alpha_find_nearest_line): Likewise.
+       * elfnn-aarch64.c (elfNN_aarch64_find_nearest_line): Likewise.
+       * elfxx-mips.c (_bfd_mips_elf_find_nearest_line): Likewise.
+       * mach-o.c (bfd_mach_o_find_nearest_line): Likewise.
+       * libbfd.h: Regenerate.
+
+2019-08-09  Mihailo Stojanovic  <mihailo.stojanovic@rt-rk.com>
+
+       * elf-bfd.h (struct elf_backend_data): New members.
+       * elflink.c (_bfd_elf_link_create_dynamic_sections): Create
+       .gnu.hash section if necessary.
+       (struct collect_gnu_hash_codes): New member.
+       (elf_gnu_hash_process_symidx): New function name.
+       (elf_renumber_gnu_hash_syms): Ignore local and undefined
+       symbols. Record xlat location for every symbol which should have
+       a .MIPS.xhash entry.
+       (bfd_elf_size_dynamic_sections): Add DT_GNU_HASH dynamic tag to
+       dynamic section if necessary.
+       (GNU_HASH_SECTION_NAME): New define.
+       (bfd_elf_size_dynsym_hash_dynstr): Get .MIPS.xhash section.
+       Update the section size info.
+       * elfxx-mips.c (struct mips_elf_hash_sort_data): New members.
+       (struct mips_elf_link_hash_entry): New member.
+       (mips_elf_link_hash_newfunc): Initialize .MIPS.xhash translation
+       table location.
+       (mips_elf_sort_hash_table): Initialize the pointer to the
+       .MIPS.xhash section.
+       (mips_elf_sort_hash_table_f): Populate the .MIPS.xhash
+       translation table entry with the symbol dynindx.
+       (_bfd_mips_elf_section_from_shdr): Add SHT_MIPS_XHASH.
+       (_bfd_mips_elf_fake_sections): Initialize .MIPS.xhash section
+       info.
+       (_bfd_mips_elf_create_dynamic_sections): Create .MIPS.xhash
+       section.
+       (_bfd_mips_elf_size_dynamic_sections): Add DT_MIPS_XHASH tag to
+       dynamic section.
+       (_bfd_mips_elf_finish_synamic_sections): Add DT_MIPS_XHASH.
+       (_bfd_mips_elf_final_write_processing): Set .MIPS.xhash section
+       sh_link info.
+       (_bfd_mips_elf_get_target_dtag): Get DT_MIPS_XHASH tag.
+       (MIPS_LIBC_ABI_XHASH): New ABI version enum value.
+       (_bfd_mips_post_process_headers): Mark the ABI version as
+       MIPS_LIBC_ABI_XHASH if there exists a .MIPS.xhash section,
+       but not a .hash section.
+       (_bfd_mips_elf_record_xhash_symbol): New function. Record a
+       position in the translation table, associated with the hash
+       entry.
+       * elfxx-mips.h (literal_reloc_p): Define
+       elf_backend_record_xhash_symbol backend hook.
+       * elfxx-target.h: Initialize elf_backend_record_xhash_symbol
+       backend hook.
+
+2019-08-07  Jose E. Marchesi  <jose.marchesi@oracle.com>
+
+       * elf64-bpf.c (bpf_elf_relocate_section): New function.
+       (bpf_elf_insn_disp_reloc): Delete function.
+       (elf_backend_relocate_section): Define.
+
+2019-08-07  Alan Modra  <amodra@gmail.com>
+
+       PR 24644
+       * archive64.c (_bfd_archive_64_bit_slurp_armap): Properly check
+       for overflow in expressions involving nsymz.
+
+2019-08-01  Ilia Diachkov  <ilia.diachkov@optimitech.com>
+
+       * elfnn-riscv.c (_bfd_riscv_relax_lui): Set lui relax safety area to
+       two pages in relro presence.
+
+2019-08-01  Max Filippov  <jcmvbkbc@gmail.com>
+
+       * elf32-xtensa.c (insn_num_slots, get_rsr_lend_opcode)
+       (get_wsr_lbeg_opcode): New functions.
+       (check_loop_aligned): Detect relaxed loops and adjust loop_len
+       and insn_len for the first actual instruction of the loop.
+
+2019-07-30  Alan Modra  <amodra@gmail.com>
+
+       PR 24768
+       * bfd.c (struct bfd): Add lto_slim_object flag.
+       * bfd-in2.h: Regenerate.
+
+2019-07-29  Martin Liska  <mliska@suse.cz>
+
+       PR 24768
+       * archive.c (_bfd_compute_and_write_armap): Come up with
+       report_plugin_err variable.
+       * bfd-in2.h (struct bfd): Add lto_slim_object flag.
+       * elf.c (struct lto_section): New.
+       (_bfd_elf_make_section_from_shdr): Parse content of
+       .gnu_lto_.lto section.
+       * elflink.c: Report error for a missing LTO plugin.
+       * linker.c (_bfd_generic_link_add_one_symbol): Likewise.
+
+2019-07-28  Alan Modra  <amodra@gmail.com>
+
+       PR 24857
+       PR 24339
+       * elflink.c (elf_link_add_object_symbols): Report an informative
+       error on finding local symbols with index equal or greater than
+       symbol table sh_info.  Correct comment.  Allow such symbols in
+       dynamic objects.  Abort on NULL section for symbol.
+
+2019-07-26  Alan Modra  <amodra@gmail.com>
+
+       * elf-bfd.h (struct output_elf_obj_tdata): Delete "linker" field.
+       (elf_linker): Don't define.
+       * elflink.c (bfd_elf_final_link): Don't set elf_linker.
+
+2019-07-25  YunQiang Su  <syq@debian.org>
+
+       PR 24832
+       * elfxx-mips.c (mips_set_isa_flags): Default to MIPS 3 for 64-bit
+       mips inputs.
+
+2019-07-24  Claudiu Zissulescu  <claziss@synopsys.com>
+
+       * elf32-arc.c (bfd_get_32_me): Add a small description, fix
+       formating.
+       (reloc_type_to_name): Fix formating.
+       (arc_elf_object_p): Likewise.
+       (debug_arc_reloc): Likewise.
+       (arc_do_relocation): Likewise.
+
+2019-07-24  Claudiu Zissulescu  <claziss@synopsys.com>
+
+       * elf32-arc.c (bfd_get_32_me): New function.
+       (bfd_put_32_me): Likewise.
+       (arc_elf_relax_section): Likewise.
+       (bfd_elf32_bfd_relax_section): Define.
+
+2019-07-24  Alan Modra  <amodra@gmail.com>
+
+       * elf-bfd.h (struct elf_backend_data): Return bfd_boolean from
+       elf_backend_final_write_processing, don't pass linker arg.
+       (_bfd_elf_final_write_processing): Update prototype.
+       * elf.c (_bfd_elf_write_object_contents): Adjust call.
+       (_bfd_elf_final_write_processing): Return error on incompatible
+       OSABI and has_gnu_osabi.  Remove linker arg.
+       * elf-nacl.h (nacl_final_write_processing): Update prototype.
+       * elf-vxworks.h (elf_vxworks_final_write_processing): Likewise.
+       * elfxx-mips.h (_bfd_mips_final_write_processing): Likewise.
+       (_bfd_mips_elf_final_write_processing): Likewise.
+       * elf-hppa.h (elf_hppa_final_write_processing): Return status
+       and remove linker arg.
+       * elf-m10300.c (_bfd_mn10300_elf_final_write_processing): Likewise.
+       * elf-nacl.c (nacl_final_write_processing): Likewise.
+       * elf-vxworks.c (elf_vxworks_final_write_processing): Likewise.
+       * elf32-arc.c (arc_elf_final_write_processing): Likewise.
+       * elf32-arm.c (arm_final_write_processing): Likewise.
+       (elf32_arm_final_write_processing): Likewise.
+       (elf32_arm_nacl_final_write_processing): Likewise.
+       (elf32_arm_vxworks_final_write_processing): Likewise.
+       * elf32-avr.c (bfd_elf_avr_final_write_processing): Likewise.
+       * elf32-bfin.c (elf32_bfin_final_write_processing): Likewise.
+       * elf32-cr16.c (_bfd_cr16_elf_final_write_processing): Likewise.
+       * elf32-cris.c (cris_elf_final_write_processing): Likewise.
+       * elf32-h8300.c (elf32_h8_final_write_processing): Likewise.
+       * elf32-lm32.c (lm32_elf_final_write_processing): Likewise.
+       * elf32-m32r.c (m32r_elf_final_write_processing): Likewise.
+       * elf32-m68k.c (elf_m68k_final_write_processing): Likewise.
+       * elf32-mips.c (mips_vxworks_final_write_processing): Likewise.
+       * elf32-msp430.c (bfd_elf_msp430_final_write_processing): Likewise.
+       * elf32-nds32.c (nds32_elf_final_write_processing): Likewise.
+       * elf32-or1k.c (or1k_elf_final_write_processing): Likewise.
+       * elf32-pj.c (pj_elf_final_write_processing): Likewise.
+       * elf32-ppc.c (ppc_final_write_processing): Likewise.
+       (ppc_elf_final_write_processing): Likewise.
+       (ppc_elf_vxworks_final_write_processing): Likewise.
+       * elf32-sparc.c (sparc_final_write_processing): Likewise.
+       (elf32_sparc_final_write_processing): Likewise.
+       (elf32_sparc_vxworks_final_write_processing): Likewise.
+       * elf32-v850.c (v850_elf_final_write_processing): Likewise.
+       * elf32-xc16x.c (elf32_xc16x_final_write_processing): Likewise.
+       * elf32-xtensa.c (elf_xtensa_final_write_processing): Likewise.
+       * elf64-ia64-vms.c (elf64_vms_final_write_processing): Likewise.
+       * elfnn-ia64.c (elfNN_ia64_final_write_processing): Likewise.
+       * elfxx-mips.c (_bfd_mips_final_write_processing): Likewise.
+       (_bfd_mips_elf_final_write_processing): Likewise.
+
+2019-07-24  Alan Modra  <amodra@gmail.com>
+
+       * elf-vxworks.c (elf_vxworks_final_write_processing): Don't return
+       early.
+       * elf32-arc.c (arc_elf_final_write_processing): Likewise.
+       * elf32-xtensa.c (elf_xtensa_final_write_processing): Likewise.
+
+2019-07-24  Alan Modra  <amodra@gmail.com>
+
+       * elf32-visium.c (visium_elf_post_process_headers): Don't set
+       EI_OSABI header byte here.
+       (ELF_OSABI): Define.
+
+2019-07-23  Alan Modra  <amodra@gmail.com>
+
+       * elf-bfd.h (enum elf_gnu_osabi): Add elf_gnu_osabi_mbind.
+       * elf.c (_bfd_elf_make_section_from_shdr): Set elf_gnu_osabi_mbind.
+       (get_program_header_size): Formatting.  Only test SH_GNU_MBIND
+       when elf_gnu_osabi_mbind is set.
+       (_bfd_elf_map_sections_to_segments): Likewise.
+       (_bfd_elf_init_private_section_data): Likewise.
+       (_bfd_elf_final_write_processing): Update comment.
+       * elf64-hppa.c (elf64_hppa_special_sections): Move .tbss entry.
+       (elf_backend_special_sections): Define without .tbss for linux.
+
+2019-07-23  Alan Modra  <amodra@gmail.com>
+
+       * elf-bfd.h (enum elf_gnu_osabi): Rename from elf_gnu_symbols.
+       Remove none, any, all enums.
+       (struct elf_obj_tdata): Rename has_gnu_symbols field to has_gnu_osabi.
+       (_bfd_elf_final_write_processing): Declare.
+       * elf.c (_bfd_elf_write_object_contents): Unconditionally call
+       elf_backend_final_write_processing.
+       (_bfd_elf_post_process_headers): Move body of function to..
+       (_bfd_elf_final_write_processing): ..here, but set EI_OSABI byte
+       only when not already set.  Adjust for rename.
+       * elfxx-target.h (elf_backend_final_write_processing): Default to
+       _bfd_elf_final_write_processing.
+       * elf-hppa.h (elf_hppa_final_write_processing): Call
+       _bfd_elf_final_write_processing.
+       * elf-m10300.c (_bfd_mn10300_elf_final_write_processing): Likewise.
+       * elf-nacl.c (nacl_final_write_processing): Likewise.
+       * elf-vxworks.c (elf_vxworks_final_write_processing): Likewise.
+       * elf32-arc.c (arc_elf_final_write_processing): Likewise.
+       * elf32-avr.c (bfd_elf_avr_final_write_processing): Likewise.
+       * elf32-bfin.c (elf32_bfin_final_write_processing): Likewise.
+       * elf32-cr16.c (_bfd_cr16_elf_final_write_processing): Likewise.
+       * elf32-cris.c (cris_elf_final_write_processing): Likewise.
+       * elf32-h8300.c (elf32_h8_final_write_processing): Likewise.
+       * elf32-lm32.c (lm32_elf_final_write_processing): Likewise.
+       * elf32-m32r.c (m32r_elf_final_write_processing): Likewise.
+       * elf32-m68k.c (elf_m68k_final_write_processing): Likewise.
+       * elf32-msp430.c (bfd_elf_msp430_final_write_processing): Likewise.
+       * elf32-nds32.c (nds32_elf_final_write_processing): Likewise.
+       * elf32-or1k.c (or1k_elf_final_write_processing): Likewise.
+       * elf32-pj.c (pj_elf_final_write_processing): Likewise.
+       * elf32-v850.c (v850_elf_final_write_processing): Likewise.
+       * elf32-xc16x.c (elf32_xc16x_final_write_processing): Likewise.
+       * elf32-xtensa.c (elf_xtensa_final_write_processing): Likewise.
+       * elf64-ia64-vms.c (elf64_vms_final_write_processing): Likewise.
+       * elfnn-ia64.c (elfNN_ia64_final_write_processing): Likewise.
+       * elf32-arm.c (arm_final_write_processing): Split out from..
+       (elf32_arm_final_write_processing): ..here.  Call
+       _bfd_elf_final_write_processing.
+       (elf32_arm_nacl_final_write_processing): Adjust.
+       * elfxx-mips.c (_bfd_mips_final_write_processing): Split out from..
+       (_bfd_mips_elf_final_write_processing): ..here.  Call
+       _bfd_elf_final_write_processing.
+       * elfxx-mips.h (_bfd_mips_final_write_processing): Declare.
+       * elf32-mips.c (mips_vxworks_final_write_processing): Adjust.
+       * elf32-ppc.c (ppc_final_write_processing): Split out from..
+       (ppc_elf_final_write_processing): ..here.  Call
+       _bfd_elf_final_write_processing.
+       (ppc_elf_vxworks_final_write_processing): Adjust.
+       * elf32-sparc.c (sparc_final_write_processing): Split out from..
+       (elf32_sparc_final_write_processing): ..here.  Call
+       _bfd_elf_final_write_processing.
+       (elf32_sparc_vxworks_final_write_processing): Adjust.
+       * elf32-d10v.c (elf_backend_final_write_processing): Don't define.
+       * elf32-d30v.c (elf_backend_final_write_processing): Don't define.
+       * elf32-m68hc11.c (elf_backend_final_write_processing): Don't define.
+       * elf32-m68hc12.c (elf_backend_final_write_processing): Don't define.
+       * elf32-s12z.c (elf_backend_final_write_processing): Don't define.
+       * elf32-i386.c (elf_i386_check_relocs): Don't set has_gnu_symbols.
+       * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
+       * elflink.c (elf_link_add_object_symbols): Likewise.
+       (elf_link_output_symstrtab): Set has_gnu_osabi for symbols here
+       instead.
+
+2019-07-23  Omar Majid  <omajid@redhat.com>
+
+       * coffcode.h (coff_set_arch_mach_hook): Handle I386_APPLE_MAGIC,
+       I386_FREEBSD_MAGIC, I386_LINUX_MAGIC, I386_NETBSD_MAGIC,
+       AMD64_APPLE_MAGIC, AMD64_FREEBSD_MAGIC, AMD64_LINUX_MAGIC,
+       AMD64_NETBSD_MAGIC.
+       * peXXigen.c: Add comment about source of .NET magic numbers.
+
+2019-07-19  Alan Modra  <amodra@gmail.com>
+
+       * reloc.c (BFD_RELOC_PPC64_TPREL34, BFD_RELOC_PPC64_DTPREL34),
+       (BFD_RELOC_PPC64_GOT_TLSGD34, BFD_RELOC_PPC64_GOT_TLSLD34),
+       (BFD_RELOC_PPC64_GOT_TPREL34, BFD_RELOC_PPC64_GOT_DTPREL34),
+       (BFD_RELOC_PPC64_TLS_PCREL): New pcrel tls relocs.
+       * elf64-ppc.c (ppc64_elf_howto_raw): Add howtos for pcrel tls relocs.
+       (ppc64_elf_reloc_type_lookup): Translate pcrel tls relocs.
+       (must_be_dyn_reloc, dec_dynrel_count): Add R_PPC64_TPREL64.
+       (ppc64_elf_check_relocs): Support pcrel tls relocs.
+       (ppc64_elf_tls_optimize, ppc64_elf_relocate_section): Likewise.
+       * bfd-in2.h: Regenerate.
+       * libbfd.h: Regenerate.
+
+2019-07-18  Alan Modra  <amodra@gmail.com>
+
+       * elf64-ppc.c (ppc64_elf_relocate_section): Don't bother selecting
+       a TLS section symbol for edited relocs.  Tighten TLS symbol/reloc
+       match test.
+
+2019-07-18  Alan Modra  <amodra@gmail.com>
+
+       * elf64-ppc.c (TLS_EXPLICIT): Define as 256.
+       (ppc64_elf_check_relocs): Don't store TLS_EXPLICIT even if char
+       is more than 8 bits.
+       (ppc64_elf_tls_optimize): Likewise.  Make tls_set, tls_clear, and
+       tls_type vars unsigned int.
+       (ppc64_elf_relocate_section): Use r_type rather than TLS_EXPLICIT
+       to select r_type edit.
+
+2019-07-18  Alan Modra  <amodra@gmail.com>
+
+       * elf32-ppc.c (TLS_GDIE): Rename from TLS_TPRELGD throughout file.
+       Correct comment.
+       * elf64-ppc.c (TLS_GDIE): Likewise.
+
+2019-07-18  Alan Modra  <amodra@gmail.com>
+
+       * elf64-ppc.c (ppc64_elf_tls_optimize): Correct test for allowed
+       range of tp-relative offsets.
+
+2019-07-15  Alan Modra  <amodra@gmail.com>
+
+       * elflink.c (_bfd_elf_fix_symbol_flags): If the def for an
+       alias is no longer bfd_link_hash_defined, clear the alias.
+
+2019-07-13  Alan Modra  <amodra@gmail.com>
+
+       * elflink.c (_bfd_elf_omit_section_dynsym_default): Don't keep
+       tls_sec.
+       (_bfd_elf_init_1_index_section): Prefer not using TLS sections.
+       (_bfd_elf_init_2_index_sections): Likewise.
+       * elf64-ppc.c (ppc64_elf_relocate_section): When emitting dynamic
+       relocations for local TLS symbols, use STN_UNDEF as the relocation
+       symbol.
+       * elf32-ppc.c (ppc_elf_relocate_section): Likewise, and don't
+       leave TLS symbol value in the addend.
+
+2019-07-08  Alan Modra  <amodra@gmail.com>
+
+       PR 24785
+       * elf32-ppc.c (_bfd_elf_ppc_set_arch): Sanity check .PPC.EMB.apuinfo
+       size before reading first word.
+
+2019-07-02  Nick Clifton  <nickc@redhat.com>
+
+       PR 24717
+       * elf.c (is_debuginfo_file): New function.
+       (assign_file_positions_for_non_load_sections): Do not warn about
+       allocated sections outside of loadable segments if they are found
+       in a debuginfo file.
+       * elf-bfd.h (is_debuginfo_file): Prototype.
+
+2019-07-02  Nick Clifton  <nickc@redhat.com>
+
+       PR 24753
+       * compress.c (bfd_get_full_section_contents): Do not complain
+       about linker created sections that are larger than the file size.
+
+2019-07-02  Christophe Lyon  <christophe.lyon@linaro.org>
+
+       * bfd/elf32-arm.c (CMSE_STUB_NAME): New define.
+       (elf32_arm_get_stub_entry): Do not try to emit long-branch stubs
+       for CMSE stubs.
+       (arm_dedicated_stub_output_section_name): Use CMSE_STUB_NAME.
+
+2019-07-02  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
+
+       * elf32-arm.c (elf32_arm_gc_mark_extra_sections): Mark debug
+       sections when .text section contain secure entry functions
+       is marked.
+
+2019-07-01  Nick Clifton  <nickc@redhat.com>
+
+       PR 23839
+       * elf32-arm.c (elf32_arm_update_relocs): Do not include the
+       section VMA in the offset used to update exidx relocs.
+
+2019-06-28  Nick Clifton  <nickc@redhat.com>
+
+       PR 24708
+       * elf.c (_bfd_elf_slurp_version_tables): Check for an excessively
+       large version reference section.
+       * compress.c (bfd_get_full_section_contents): Check for an
+       uncompressed section whose size is larger than the file size.
+
+2019-06-28  Alan Modra  <amodra@gmail.com>
+
+       * format.c (bfd_check_format_matches): Don't match plugin target
+       if another target matches.  Expand comment.
+       * targets.c (_bfd_target_vector): Move plugin_vec after all other
+       non-corefile targets, outside !SELECT_VECS.
+       * config.bfd: Don't handle targ=plugin here.
+       * configure.ac: Don't add plugin to enable_targets or handle in
+       target loop setting selvecs and other target vars.
+       * configure: Regenerate.
+
+2019-06-26  Nick Clifton  <nickc@redhat.com>
+
+       PR 24703
+       * mach-o-arm.c (bfd_mach_o_arm_canonicalize_one_reloc): Add error
+       messages for failures.
+       * mach-o.c (bfd_mach_o_canonicalize_relocs): Set an bfd error code
+       if returning an error value.
+
+2019-06-25  Jan Beulich  <jbeulich@suse.com>
+
+       * elf-properties.c (elf_find_and_remove_property): Rename last
+       parameter. Mention it in comment.
+
+2019-06-24  Ilia Diachkov  <ilia.diachkov@optimitech.com>
+
+       * elfnn-riscv.c (_bfd_riscv_relax_lui): Delete early exit when
+       SEC_MERGE or SEC_CODE flags are set.
+       (_bfd_riscv_relax_section): New local symtype.  Set sym_sec and
+       symtype consistently.  Don't include sec_addr (sym_sec) in symval.
+       Add check for SEC_INFO_TYPE_MERGE and call _bfd_merged_section_offset.
+       Add sec_addr (sym_sec) after handling merge sections.
+
+2019-06-24  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/24721
+       * elf-properties.c (elf_merge_gnu_property_list): Remove the
+       property after reporting property removal.
+
+2019-06-23  Alan Modra  <amodra@gmail.com>
+
+       PR 24704
+       * elf64-ppc.c (R_PPC64_GOT16_DS): Don't set has_gotrel.
+       (ppc64_elf_edit_toc): Don't remove R_PPC64_GOT16_DS got entries.
+       Reduce range of offsets allowed for other GOT relocs.
+
+2019-06-23  Alan Modra  <amodra@gmail.com>
+
+       PR 24689
+       * elfcode.h (elf_object_p): Warning fix.
+
+2019-06-21  Alan Modra  <amodra@gmail.com>
+
+       PR 24689
+       * elfcode.h (elf_object_p): Check type of e_shstrndx section.
+
+2019-06-19  Alan Modra  <amodra@gmail.com>
+
+       PR 24697
+       * elf32-ppc.c (ppc_elf_relocate_section): Don't read insn for
+       R_PPC_EMB_RELSDA.  Mask low bit of R_PPC_EMB_SDA21 r_offset.
+
+2019-06-19  Alan Modra  <amodra@gmail.com>
+
+       * elf64-ppc.c (ppc64_elf_inline_plt): Correct st_other test for
+       functions that require r2 valid to use local entry.
+       (ppc64_elf_size_stubs, ppc64_elf_relocate_section): Likewise.
+
+2019-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
+
+       * elfnn-aarch64.c (elfNN_aarch64_allocate_local_dynrelocs): Remove.
+       (elfNN_aarch64_size_dynamic_sections): Remove loc_hash_table traversal
+       with elfNN_aarch64_allocate_local_dynrelocs.
+
+2019-06-14  Szabolcs Nagy  <szabolcs.nagy@arm.com>
+
+       * elfnn-aarch64.c: Enable MOVW_PREL relocs for ELF32.
+
+2019-06-14  Alan Modra  <amodra@gmail.com>
+
+       * Makefile.in: Regenerate.
+       * configure: Regenerate.
+
+2019-06-14  Alan Modra  <amodra@gmail.com>
+
+       * elf64-ppc.c: Fix comments involving paddi.
+
+2019-06-12  Adam Lackorzymski  <adam@os.inf.tu-dresden.de>
+
+       PR 24643
+       * elf32-arm.c (arm_elf_find_function): Fail if the symol table is
+       absent, or the bfd is not in the ELF formart.
+       * elfnn-aarch64.c (aarch64_elf_find_function): Likewise.
+
+2019-06-10  Christos Zoulas  <christos@zoulas.com>
+
+       PR 24650
+       * elf.c (elfcore_make_auxv_note_section): New function.
+       (elfcore_grok_note): Use it.
+       (elfcore_grok_freebsd_note): Likewise.
+       (elfcore_grok_openbsd_note): Likewise.
+       (elfcore_grok_netbsd_note): Likewise.  Plus add support for
+       NT_NETBSDCORE_AUXV notes.
+
+2019-06-06  Sudakshina Das  <sudi.das@arm.com>
+
+       * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties): Set
+       alignment of the new gnu property section.
+
+2019-06-06  Sudakshina Das  <sudi.das@arm.com>
+
+       * bfd-in.h: Change comment.
+       * bfd-in2.h: Regenerate.
+       * elfnn-aarch64.c (elfNN_aarch64_merge_gnu_properties): Update warning.
+       * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties):
+       Likwise.
+
+2019-05-28  Faraz Shahbazker  <fshahbazker@wavecomp.com>
+
+       * elfxx-mips.c (mips_elf_calculate_relocation) <R_MIPS_PCHI16>:
+       Remove overflow check.
+
+2019-05-28  Alan Modra  <amodra@gmail.com>
+
+       PR 24596
+       * cofflink.c (coff_link_check_archive_element): Don't assume
+       element is a coff object file after calling add_archive_element.
+
+2019-05-28  Alan Modra  <amodra@gmail.com>
+
+       PR 24596
+       * elf32-microblaze.c (microblaze_elf_finish_dynamic_sections): Don't
+       attempt to set sh_entsize for excluded PLT section.
+
+2019-05-28  Alan Modra  <amodra@gmail.com>
+
+       PR 24596
+       * elf64-alpha.c (elf64_alpha_relocate_section): Don't attempt
+       to emit R_ALPHA_GOTTPREL in PIEs, for which no space is
+       allocated in alpha_dynamic_entries_for_reloc.
+
+2019-05-28  Alan Modra  <amodra@gmail.com>
+
+       PR 24596
+       * elf32-lm32.c (lm32_elf_finish_dynamic_sections): Don't segfault
+       on NULL output_section.
+       * elflink.c (elf_final_link_free): Don't free -1 symshndxbuf.
+
+2019-05-28  Alan Modra  <amodra@gmail.com>
+
+       PR 24596
+       * elf32-m68k.c (elf_m68k_get_got_entry): Don't create a new
+       entry when MUST_FIND.  Abort when MUST_FIND not found.
+       (elf_m68k_get_bfd2got_entry): Likewise.
+       (elf_m68k_relocate_section): Remove now useless assert.
+
+2019-05-28  Alan Modra  <amodra@gmail.com>
+
+       PR 24596
+       * elf64-hppa.c (elf64_hppa_finalize_dynreloc): Get the output bfd
+       from bfd_link_info, not an output section owner.
+       (elf64_hppa_finish_dynamic_symbol, elf64_hppa_finalize_opd): Likewise.
+       (elf_hppa_final_link_relocate): Likewise.
+
 2019-05-28  Alan Modra  <amodra@gmail.com>
 
        PR 24596
This page took 0.046151 seconds and 4 git commands to generate.