X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=bfd%2FChangeLog;h=602e0a2ead386d4a4eb8f0aacefdbb857a3f7d1a;hb=ffd9e4d0225d45d1603d09e06151c388589e063f;hp=fe595c348820b2fe4ddef7c5a720266350e08c26;hpb=5f9aecea0dfd9e8b0a728c332e8ddb105bae6054;p=deliverable%2Fbinutils-gdb.git diff --git a/bfd/ChangeLog b/bfd/ChangeLog index fe595c3488..602e0a2ead 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,428 @@ +2018-11-29 H.J. Lu + + PR ld/23929 + * elf-properties.c (_bfd_elf_link_setup_gnu_properties): Don't + merge .note.gnu.property section in IR inputs. + +2018-11-27 Thomas Preud'homme + + * cpu-arm.c (processors): Add processors known to GAS but missing here + and reindent. + (bfd_arm_update_notes): Add comment explaining why the list of + architectures in the switch should not be updated. + (architectures): Likewise. + +2018-11-27 Maciej W. Rozycki + + * elfxx-mips.c (_bfd_mips_elf_check_relocs) + + : Also accept an + absolute symbol in PIC code. + +2018-11-27 Maciej W. Rozycki + + * elfxx-mips.c (_bfd_mips_elf_check_relocs) + : Use `info->callbacks->einfo' + rather than `_bfd_error_handler' to report refused relocations + in PIC code and continue processing. Fix error message: `can + not' -> `cannot'. + +2018-11-27 H.J. Lu + + PR binutils/23919 + * compress.c (bfd_is_section_compressed_with_header): Initialize + *uncompressed_align_pow_p to 0. + +2018-11-27 Tamar Christina + + PR ld/23904 + * elfnn-aarch64.c (_bfd_aarch64_adrp_p): Use existing constants. + (_bfd_aarch64_erratum_843419_branch_to_stub): Use _bfd_aarch64_adrp_p. + (struct erratum_835769_branch_to_stub_clear_data): New. + (_bfd_aarch64_erratum_843419_clear_stub): New. + (clear_erratum_843419_entry): New. + (elfNN_aarch64_tls_relax): Use it. + (elfNN_aarch64_relocate_section): Pass input_section. + (aarch64_map_one_stub): Handle branch type none as valid. + +2018-11-27 Mark Wielaard + + PR binutils/23919 + * bfd.c (bfd_update_compression_header): Explicitly set alignment. + (bfd_check_compression_header): Add uncompressed_alignment_power + argument. Check ch_addralign is a power of 2. + * bfd-in2.h: Regenerated. + * compress.c (bfd_compress_section_contents): Get and set + orig_uncompressed_alignment_pow if section is decompressed. + (bfd_is_section_compressed_with_header): Add and get + uncompressed_align_pow_p argument. + (bfd_is_section_compressed): Add uncompressed_align_power argument + to bfd_is_section_compressed_with_header call. + (bfd_init_section_decompress_status): Get and set + uncompressed_alignment_power. + * elf.c (_bfd_elf_make_section_from_shdr): Add + uncompressed_align_power argument to + bfd_is_section_compressed_with_header call. + +2018-11-21 Jozef Lawrynowicz + + * elf32-msp430.c (elf32_msp430_merge_mspabi_attributes): Do not + error when .MSP430.attributes section is missing from objects + created by LTO. + +2018-11-13 Jim Wilson + + * elfnn-riscv.c (riscv_float_abi_string): New. + (_bfd_riscv_elf_merge_private_bfd_data): Use it for error message. + +2018-11-09 Bernhard M. Wiedemann + + * peXXigen.c (_bfd_XXi_only_swap_filehdr_out): Correct comment + concerning timestamp insertion. + +2018-11-09 Cupertino Miranda + + * arc-got.h (arc_got_entry_type_for_reloc): Changed to + correct static TLS relocs. + * elf32-arc.c (elf_arc_check_relocs): Introduced warning to + TLS relocs which require -fPIC. + (arc_create_forced_local_got_entries_for_tls): Created. + Traverses list of GOT entries to be resolved statically + when needed. + (elf_arc_finish_dynamic_sections): Changed. Calls + arc_create_forced_local_got_entries_for_tls for each known + possibly GOT symbol. + +2018-11-09 rhn + + PR 23699 + * ihex.c (ihex_write_object_contents): Check for sign extended + addresses that cannot be supported in the ihex format. + +2018-11-09 Claudiu Zissulescu + + * arc-got.h (arc_get_local_got_ents): Revamp it; use + elf_local_got_ents to store the local got list. + (get_got_entry_list_for_symbo): Restructure it. + * elf32-arc.c (elf_arc_relocate_section): Correct the call to + get_got_entry_list_for_symbol. + +2018-11-07 Nick Clifton + + * po/fr.po: Updated French translation. + * po/pt.po: Updated Portuguese translation. + +2018-11-06 Roman Bolshakov + Saagar Jha + + * mach-o.h: Add new enums for BFD_MACH_O_PLATFORM_MACOS, + BFD_MACH_O_PLATFORM_IOS, BFD_MACH_O_PLATFORM_TVOS, + BFD_MACH_O_PLATFORM_WATCHOS, BFD_MACH_O_PLATFORM_BRIDGEOS, + BFD_MACH_O_TOOL_CLANG, BFD_MACH_O_TOOL_SWIFT, BFD_MACH_O_TOOL_LD. + (struct bfd_mach_o_note_command): New. + (struct bfd_mach_o_build_version_tool): New. + (struct bfd_mach_o_build_version_command): New. + (bfd_mach_o_read_version_min): Don't split version into + a few fields. Rename reserved to sdk. + * mach-o.c (bfd_mach_o_read_version_min): Don't split version into a + few fields. Rename reserved to sdk. + (bfd_mach_o_read_command): Handle LC_VERSION_MIN_TVOS, LC_NOTE, + LC_BUILD_VERSION. + (bfd_mach_o_read_note): New. + (bfd_mach_o_read_build_version): New. + +2018-11-07 Yoshinori Sato + + * config.bfd: Add rx-*-linux. + * congigure.ac: Likewise. + * elf32-rx.c (rx_linux_object_p): New function. + (TARGET_LITTLE_SYM, TARGET_LITTLE_NAME) + (elf_backend_object_p, elf32_bed): Define rx-*-linux. + * targets.c: Add rx_elf32_linux_le_vec. + * configure: Regenerate. + +2018-11-06 Romain Margheriti + + PR 23742 + * mach-o.c (bfd_mach_o_read_command): Accept and ignore + BFD_MACH_O_LC_LINKER_OPTIONS and BFD_MACH_O_LC_BUILD_VERSION + commands. + +2018-11-02 Alan Modra + + PR 23850 + * elf.c (bfd_section_from_shdr): Treat SHF_ALLOC SHT_REL* sections + in an executable or shared library as normal sections. + +2018-10-31 Renlin Li + + * elfnn-aarch64.c (elfNN_aarch64_check_relocs): Don't create got + section for Local Exec TLS model. + +2018-10-24 H.J. Lu + + PR ld/23818 + * elflink.c (_bfd_elf_link_assign_sym_version): Hide symbols + defined in discarded input sections. + +2018-10-24 Alan Modra + + * elf32-arm.c (elf32_arm_size_stubs): Ignore as-needed libs that + were not needed. + +2018-10-23 Alan Modra + + PR 23806 + * merge.c (_bfd_add_merge_section): Don't attempt to merge + sections with ridiculously large alignments. + +2018-10-23 Alan Modra + + PR 23805 + * elflink.c (elf_link_input_bfd): Don't segfault on finding + STT_TLS symbols without any TLS sections. Instead, change the + symbol type to STT_NOTYPE. + +2018-10-23 Alan Modra + + PR 23804 + * merge.c (_bfd_add_merge_section): Don't attempt to merge + sections where size is not a multiple of entsize. + +2018-10-20 Alan Modra + + PR 23788 + * elf.c (section_match): Don't require a size match for SHT_SYMTAB + or SHT_STRTAB. + +2018-10-17 Alan Modra + + PR 23653 + * elflink.c (_bfd_elf_link_create_dynstrtab): Match elf_object_id + too when choosing dynobj. + +2018-10-16 Alan Modra + + * peXXigen.c (_bfd_XX_bfd_copy_private_bfd_data_common): Simplify + PE_DEBUG_DATA size checks. + +2018-10-16 Alan Modra + + PR 23781 + * peXXigen.c (_bfd_XX_bfd_copy_private_bfd_data_common): Free data + before returning. + +2018-10-16 Alan Modra + + PR 23534 + * init.c (bfd_init): Return an unsigned int. + bfd-in2.h: Regenerate. + +2018-10-15 Alan Modra + + PR 23534 + * init.c (BFD_INIT_MAGIC): Define. + (bfd_init): Return BFD_INIT_MAGIC. + bfd-in2.h: Regenerate. + +2018-10-13 Alan Modra + + PR 23770 + PR 23425 + * reloc.c (_bfd_clear_contents): Replace "location" param with + "buf" and "off". Bounds check "off". Return status. + * cofflink.c (_bfd_coff_generic_relocate_section): Update + _bfd_clear_contents call. + * elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): Likewise. + * elf32-arc.c (elf_arc_relocate_section): Likewise. + * elf32-i386.c (elf_i386_relocate_section): Likewise. + * elf32-metag.c (metag_final_link_relocate): Likewise. + * elf32-nds32.c (nds32_elf_get_relocated_section_contents): Likewise. + * elf32-ppc.c (ppc_elf_relocate_section): Likewise. + * elf32-visium.c (visium_elf_relocate_section): Likewise. + * elf64-ppc.c (ppc64_elf_relocate_section): Likewise. + * elf64-x86-64.c *(elf_x86_64_relocate_section): Likewise. + * libbfd-in.h (_bfd_clear_contents): Update prototype. + * libbfd.h: Regenerate. + +2018-10-09 Egeyar Bagcioglu + + * elflink.c (elf_link_output_extsym): Do not place symbols into a + discarded .dynsym. + +2018-10-08 H.J. Lu + + PR ld/23428 + * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Don't + add GNU_PROPERTY_X86_FEATURE_2_NEEDED to force program header + in non-code PT_LOAD segment. + +2018-10-08 Alan Modra + + * elf-nacl.c (nacl_modify_segment_map): Cope with header PT_LOAD + lacking sections. + * elf.c (_bfd_elf_map_sections_to_segments): Assume file and + program headers are required when info->load_phdrs. Reorganize + code handling program headers. Generate a mapping without + sections just for file and program headers when -z separate-code + would indicate they should be on a different page to the first + section. + +2018-10-08 Alan Modra + + * elf.c (assign_file_positions_for_load_sections): Set p_vaddr + from m->p_vaddr_offset for segments without sections. Invert + sign of p_vaddr_offset. + (rewrite_elf_program_header, copy_elf_program_header): Save + old segment p_vaddr to p_vaddr_offset. Invert sign of + p_vaddr_offset. + +2018-10-08 Alan Modra + + * elf.c (get_program_header_size): Don't count PT_INTERP if + .interp is empty. + (_bfd_elf_map_sections_to_segments): Don't create PT_INTERP if + .interp is empty. + +2018-10-08 Alan Modra + + * elf32-spu.c (spu_elf_modify_segment_map): Don't insert + overlays before segment containing headers. + +2018-10-08 Alan Modra + + * elf.c (make_mapping): Cope with zero size array at end of + struct elf_segment_map. + (_bfd_elf_map_sections_to_segments): Likewise. + (rewrite_elf_program_header, copy_elf_program_header): Likewise. + (_bfd_elf_map_sections_to_segments): Rename phdr_index to hdr_index. + +2018-10-05 Alan Modra + + * elf32-spu.c (spu_elf_create_sections): Make .note.spu_name + SHT_NOTE. + +2018-10-05 Richard Henderson + + * bfd-in2.h: Regenerated. + * elf32-or1k.c: (or1k_elf_howto_table): Fix formatting for + R_OR1K_PLT26, Add R_OR1K_PCREL_PG21, R_OR1K_GOT_PG21, + R_OR1K_TLS_GD_PG21, R_OR1K_TLS_LDM_PG21, R_OR1K_TLS_IE_PG21, + R_OR1K_LO13, R_OR1K_GOT_LO13, R_OR1K_TLS_GD_LO13, R_OR1K_TLS_LDM_LO13, + R_OR1K_TLS_IE_LO13, R_OR1K_SLO13, R_OR1K_PLTA26. + (or1k_reloc_map): Add BFD_RELOC_OR1K_PCREL_PG21, + BFD_RELOC_OR1K_GOT_PG21, BFD_RELOC_OR1K_TLS_GD_PG21, + BFD_RELOC_OR1K_TLS_LDM_PG21, BFD_RELOC_OR1K_TLS_IE_PG21, + BFD_RELOC_OR1K_LO13, BFD_RELOC_OR1K_GOT_LO13, + BFD_RELOC_OR1K_TLS_GD_LO13, BFD_RELOC_OR1K_TLS_GD_LO13, + BFD_RELOC_OR1K_TLS_LDM_LO13, BFD_RELOC_OR1K_TLS_IE_LO13, + BFD_RELOC_OR1K_SLO13, BFD_RELOC_OR1K_PLTA26. + (elf_or1k_link_hash_table): Add field saw_plta. + (or1k_final_link_relocate): Add value calculations for new relocations. + (or1k_elf_relocate_section): Add section relocations for new + relocations. + (or1k_write_plt_entry): New function. + (or1k_elf_finish_dynamic_sections): Add support for PLTA relocations + using new l.adrp instruction. Cleanup PLT relocation code generation. + * libbfd.h: Regenerated. + * reloc.c: Add BFD_RELOC_OR1K_PCREL_PG21, BFD_RELOC_OR1K_LO13, + BFD_RELOC_OR1K_SLO13, BFD_RELOC_OR1K_GOT_PG21, BFD_RELOC_OR1K_GOT_LO13, + BFD_RELOC_OR1K_PLTA26, BFD_RELOC_OR1K_TLS_GD_PG21, + BFD_RELOC_OR1K_TLS_GD_LO13, BFD_RELOC_OR1K_TLS_LDM_PG21, + BFD_RELOC_OR1K_TLS_LDM_LO13, BFD_RELOC_OR1K_TLS_IE_PG21, + BFD_RELOC_OR1K_TLS_IE_LO13. + +2018-10-05 Richard Henderson + + * elf32-or1k.c (or1k_elf_relocate_section): Add error for unknown + relocations. Add error for non zero addend with plt and got + relocations. Add error for got and plt references against dynamic, non + local, symbols. Add error when linking non shared liraries with + flag_pic. + +2018-10-05 Richard Henderson + Stafford Horne + + * bfd-in2.h: Regenerated. + * elf32-or1k.c (N_ONES): New macro. + (or1k_elf_howto_table): Fix R_OR1K_PLT26 to complain on overflow. + Add definitions for R_OR1K_TLS_TPOFF, R_OR1K_TLS_DTPOFF, + R_OR1K_TLS_DTPMOD, R_OR1K_AHI16, R_OR1K_GOTOFF_AHI16, + R_OR1K_TLS_IE_AHI16, R_OR1K_TLS_LE_AHI16, R_OR1K_SLO16, + R_OR1K_GOTOFF_SLO16, R_OR1K_TLS_LE_SLO16. + (or1k_reloc_map): Add entries for BFD_RELOC_HI16_S, + BFD_RELOC_LO16_GOTOFF, BFD_RELOC_HI16_GOTOFF, BFD_RELOC_HI16_S_GOTOFF, + BFD_RELOC_OR1K_TLS_IE_AHI16, BFD_RELOC_OR1K_TLS_LE_AHI16, + BFD_RELOC_OR1K_SLO16, BFD_RELOC_OR1K_GOTOFF_SLO16, + BFD_RELOC_OR1K_TLS_LE_SLO16. + (or1k_reloc_type_lookup): Change search loop to start ad index 0 and + also check results before returning. + (or1k_reloc_name_lookup): Simplify loop to use R_OR1K_max as index + limit. + (or1k_final_link_relocate): New function. + (or1k_elf_relocate_section): Add support for new AHI and SLO + relocations. Use or1k_final_link_relocate instead of generic + _bfd_final_link_relocate. + (or1k_elf_check_relocs): Add support for new AHI and SLO relocations. + * reloc.c: Add new enums for BFD_RELOC_OR1K_SLO16, + BFD_RELOC_OR1K_GOTOFF_SLO16, BFD_RELOC_OR1K_TLS_IE_AHI16, + BFD_RELOC_OR1K_TLS_IE_AHI16, BFD_RELOC_OR1K_TLS_LE_AHI16, + BFD_RELOC_OR1K_TLS_LE_SLO16. Remove unused BFD_RELOC_OR1K_GOTOFF_HI16 + and BFD_RELOC_OR1K_GOTOFF_LO16. + * libbfd.h: Regenerated. + +2018-10-04 Jim Wilson + + * elfnn-riscv.c (riscv_elf_size_dynamic_sections): In dynobj->sections + loop, handle htab->sdyntdata section. + +2018-10-04 Jose E. Marchesi + + * elf64-sparc.c (elf64_sparc_output_arch_syms): Do notcorrect the + impact of STT_REGISTER symbols in the dynsym sh_info here... + * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_sections): ...but + do it here. + +2018-10-03 H.J. Lu + + PR ld/23658 + * elf.c (get_program_header_size): Put all adjacent SHT_NOTE + sections with the same section alignment into a single PT_NOTE + segment. Check SHT_NOTE section type instead of section name. + (_bfd_elf_map_sections_to_segments): Likewise. + +2018-10-03 Millan Wolff + + PR 23715 + * dwarf2.c (find_abstract_instance): Allow recursive invocations + of find_abstract_instance to override the name variable. + +2018-10-03 Nick Clifton + + * po/pt.po: Updated Portuguese translation. + +2018-10-01 Cupertino Miranda + + * arc-got.h (relocate_fix_got_relocs_for_got_info): Changed. Take TLS + section alignment in consideration for this relocation. Fixed TCB_SIZE + offset size to include section alignment. + (get_got_entry_list_for_symbol): Changed. + * elf32-arc.c (FINAL_SECTSTART): Added this formula macro. + (ARC_TLS_DTPOFF) Updated reloc to use new created macro instead. + (arc_special_overflow_checks): Fixed TCB_SIZE offsize to include + section alignment. + (elf_arc_check_relocs): Changed. + (elf_arc_finish_dynamic_symbol) Return FALSE in case arc_htab is NULL. + (struct elf_arc_link_hash_entry): Moved and changed. + (elf_arc_link_hash_newfunc): Changed. + (arc_elf_link_hash_table_create): Removed old initializations. + (elf_arc_relocate_section, elf_arc_finish_dynamic_symbol): Changed. + +2018-09-28 H.J. Lu + + * elf-properties.c (_bfd_elf_link_setup_gnu_properties): Use + elfclass instead of bed->s->elfclass. + 2018-09-27 Jim Wilson * elfnn-riscv.c (riscv_init_pcgp_relocs): Add explanatory comment. @@ -239,7 +664,7 @@ to calculate header and padding size. Use filepos of the first section otherwise. -018-08-31 H.J. Lu +2018-08-31 H.J. Lu PR ld/23600 * archures.c (bfd_arch_get_compatible): Allow an IR object with