Only give FDE encoding warnings if --eh-frame-hdr was specified.
[deliverable/binutils-gdb.git] / bfd / ChangeLog
index c310fea4c72517d9f769de40268722ed7db77680..c1bba0cac160406d9bd5300d64995ccbb42afe68 100644 (file)
@@ -1,3 +1,164 @@
+2019-12-05  Sandra Loosemore  <sandra@codesourcery.com>
+
+       Only give FDE encoding warnings if --eh-frame-hdr was specified.
+
+       * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Make
+       FDE encoding warning conditional.
+
+2019-12-05  Nick Clifton  <nickc@redhat.com>
+
+       PR 25029
+       * peXXigen.c (_bfd_XXi_swap_aouthdr_out): Ignore empty sections
+       when computing the sizes stored in the headers.
+
+2019-12-03  Alan Modra  <amodra@gmail.com>
+
+       PR 25230
+       * dwarf2.c (struct dwarf2_debug_file): Add line_table and
+       abbrev_offsets.
+       (struct abbrev_offset_entry): New.
+       (hash_abbrev, eq_abbrev, del_abbrev): New functions.
+       (read_abbrevs): Check whether we have already read abbrevs at
+       given offset, and add new offset/abbrev to hash table.
+       (decode_line_info): Keep line table at offset zero in file struct.
+       Return this for a cu reusing the same dir/file list.
+       (find_abstract_instance): Find cu for DW_FORM_GNU_ref_alt.
+       (_bfd_dwarf2_slurp_debug_info): Create offset/abbrev hash tables.
+       (_bfd_dwarf2_cleanup_debug_info): Adjust deletion of lines and
+       abbrevs.
+
+2019-12-03  Alan Modra  <amodra@gmail.com>
+
+       PR 25230
+       * dwarf2.c (struct dwarf2_debug_file): New struct.
+       (struct dwarf2_debug): Delete fields now in dwarf2_debug_file.
+       Add f, alt fields.
+       (struct comp_unit): Add file field.
+       (read_indirect_string, read_indirect_line_string): Adjust to suit.
+       (read_alt_indirect_string, read_alt_indirect_ref): Likewise.
+       (read_debug_ranges, find_abstract_instance, read_rangelist): Likewise.
+       (_bfd_dwarf2_stash_syms, place_sections): Likewise.
+       (stash_maybe_update_info_hash_tablse): Likewise.
+       (stash_verify_info_hash_table): Likewise.
+       (_bfd_dwarf2_slurp_debug_info): Likewise.
+       (_bfd_dwarf2_find_symbol_bias): Likewise.
+       (_bfd_dwarf2_find_nearest_line): Likewise.
+       (_bfd_dwarf2_cleanup_debug_info): Likewise.
+       (read_abbrevs): Add file param and adjust.  Update calls.
+       (stash_comp_unit): Likewise.
+       (decode_line_info): Delete stash param and adjust.  Update calls.
+       (comp_unit_find_nearest_line): Likewise.
+       (comp_unit_maybe_decode_line_info): Likewise.
+       (comp_unit_find_line): Likewise.
+       (parse_comp_unit): Add file and info_ptr param and adjust.  Update
+       calls.
+
+2019-12-03  Alan Modra  <amodra@gmail.com>
+
+       * dwarf2.c (read_indirect_string): Don't duplicate offset check
+       done in read_section.
+       (read_indirect_line_string): Likewise.
+       (read_alt_indirect_string): Likewise.
+       (read_alt_indirect_ref): Likewise.
+       (read_abbrevs): Likewise.  Free memory on all failure paths.
+       Use correct unsigned type for pointer difference comparison.
+
+2019-12-03  Alan Modra  <amodra@gmail.com>
+
+       * dwarf2.c (struct dwarf2_debug): Update comments.  Remove sec
+       and sec_info_ptr.
+       (_bfd_dwarf2_slurp_debug_info): Don't set sec or sec_info_ptr.
+       (stash_comp_unit): Likewise.
+       (read_alt_indirect_ref): Return NULL not FALSE.
+
+2019-12-03  Alan Modra  <amodra@gmail.com>
+
+       * dwarf2.c (_bfd_dwarf2_find_nearest_line): Correct function comment.
+
+2019-11-27  Alan Modra  <amodra@gmail.com>
+
+       PR 23652
+       * dwarf2.c (_bfd_dwarf2_stash_syms): Break out of loop on finding
+       matching section.
+       (_bfd_dwarf2_find_nearest_line): Return an int, with value 2 when
+       returning info from the symbol table.  Do the _bfd_elf_find_function
+       search also when !found.  Call _bfd_dwarf2_stash_syms regardless of
+       symbols.
+       * elf64-alpha.c (elf64_alpha_find_nearest_line): Accept dwarf2
+       result of 1 only.
+       * elfxx-mips.c (_bfd_mips_elf_find_nearest_line): Likewise.
+       * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
+       * libbfd.h: Regenerate.
+
+2019-11-27  Alan Modra  <amodra@gmail.com>
+
+       PR 23652
+       * dwarf2.c (_bfd_dwarf2_stash_syms): New function.
+       (_bfd_dwarf2_find_nearest_line): Use it here, passing syms to
+       _bfd_elf_find_function.  Call _bfd_elf_find_function in cases
+       where _bfd_elf_find_nearest_line would do so.
+       * elf.c (_bfd_elf_find_nearest_line): Omit _bfd_elf_find_function
+       for dwarf2.
+       * elfxx-mips.c (_bfd_mips_elf_find_nearest_line): Similarly.  Tidy.
+       * elf32-arm.c (elf32_arm_maybe_function_sym): New function.
+       (elf_backend_maybe_function_sym): Define.
+       (arm_elf_find_function, elf32_arm_find_nearest_line): Delete.
+       (bfd_elf32_find_nearest_line): Don't define.
+       * elfnn-aarch64.c (elfNN_aarch64_maybe_function_sym): New function.
+       (elf_backend_maybe_function_sym): Define.
+       (aarch64_elf_find_function, elfNN_aarch64_find_nearest_line): Delete.
+       (bfd_elfNN_find_nearest_line): Don't define.
+
+2019-11-27  Alan Modra  <amodra@gmail.com>
+
+       * elf32-sh.c (sh_reloc): Use a bfd_vma insn.
+       (sh_reloc <R_SH_IND12W>): Divide calculated relocation value
+       by two before applying to insn.  Correct overflow test.
+       * coff-sh.c (sh_reloc): Likewise.
+
+2019-11-26  Nick Clifton  <nickc@redhat.com>
+
+       * elf32-sh.c (sh_elf_reloc): Use a signed_vma when checking for a
+       negative relocated value.
+       * coff-sh.c (sh_reloc): Likewise.
+
+2019-11-25  Alan Modra  <amodra@gmail.com>
+
+       * archures.c (bfd_octets_per_byte): Tail call
+       bfd_arch_mach_octets_per_byte.
+       * coff-arm.c (OCTETS_PER_BYTE): Define.
+       (coff_arm_reloc): Introduce new "octets" temp.  Use OCTETS_PER_BYTE
+       with section.  Correct "addr".  Remove ATTRIBUTE_UNUSED.
+       * coff-i386.c (coff_i386_reloc): Similarly.
+       * coff-mips.c (mips_reflo_reloc): Similarly.
+       * coff-x86_64.c (coff_amd64_reloc): Similarly.
+       * elf32-msp430.c (OCTETS_PER_BYTE): Define.
+       (rl78_sym_diff_handler): Use OCTETS_PER_BYTE, with section.
+       * elf32-nds32.c (nds32_elf_get_relocated_section_contents): Similarly.
+       * elf32-ppc.c (ppc_elf_addr16_ha_reloc): Similarly.
+       * elf32-pru.c (pru_elf32_do_ldi32_relocate): Similarly.
+       * elf32-s12z.c (opru18_reloc): Similarly.
+       * elf32-sh.c (sh_elf_reloc): Similarly.
+       * elf32-spu.c (spu_elf_rel9): Similarly.
+       * elf32-xtensa.c (bfd_elf_xtensa_reloc): Similarly.
+       * elf64-ppc.c (ppc64_elf_ha_reloc, ppc64_elf_brtaken_reloc),
+       (ppc64_elf_toc64_reloc): Similarly.
+       * bfd.c (bfd_get_section_limit): Pass section to bfd_octets_per_byte.
+       * cofflink.c (_bfd_coff_link_input_bfd),
+       (_bfd_coff_reloc_link_order): Likewise.
+       * elf.c (_bfd_elf_section_offset): Likewise.
+       * elflink.c (resolve_section, bfd_elf_perform_complex_relocation),
+       (elf_link_input_bfd, elf_reloc_link_order, elf_fixup_link_order),
+       (bfd_elf_final_link): Likewise.
+       * elf.c (_bfd_elf_make_section_from_shdr): Don't strncmp twice
+       to set SEC_ELF_OCTETS.
+       * reloc.c (bfd_perform_relocation): Tidy SEC_ELF_OCTETS special case.
+       (bfd_install_relocation): Likewise.
+       (_bfd_final_link_relocate): Don't recalculate octets.
+       * syms.c (_bfd_stab_section_find_nearest_line): Introduc new
+       "octets" temp.
+       * bfd-in2.h: Regenerate.
+
 2019-11-25  Christian Eggers  <ceggers@gmx.de>
 
        * section.c (struct bfd_section): New flag SEC_ELF_OCTETS.
This page took 0.026587 seconds and 4 git commands to generate.