aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
2021-05-03PR27755, powerpc-ld infinite loopAlan Modra2-1/+6
PR 27755 * elf32-ppc.c (ppc_elf_inline_plt): Do increment rel in loop. (cherry picked from commit 337d0bf887a3ed6b6b2123fecfec0736640edcaf)
2021-03-22DWARF: Check version >= 3 for DW_FORM_ref_addrH.J. Lu2-1/+7
Check version >= 3, instead of version == 3 || version == 4, for DW_FORM_ref_addr. bfd/ PR ld/27587 * dwarf2.c (read_attribute_value): Check version >= 3 for DW_FORM_ref_addr. (cherry picked from commit 51f6e7a9f4210aed0f8156c1d2e348de6f96f37d)
2021-01-30Reset development to trueNick Clifton2-1/+5
2021-01-30GNU Binutils 2.35.2 Releasebinutils-2_35_2Nick Clifton5-147/+167
2021-01-30PR27259, SHF_LINK_ORDER self-linkAlan Modra2-8/+24
This stops ld from endless looping on SHF_LINK_ORDER sh_link loops. bfd/ PR 27259 * elflink.c (_bfd_elf_gc_mark_extra_sections): Use linker_mark to prevent endless looping of linked-to sections. ld/ PR 27259 * ldelf.c (ldelf_before_place_orphans): Use linker_mark to prevent endless looping of linked-to sections. (cherry picked from commit def97fb945a98544938087eff3111e16ce58da6d)
2021-01-28R_PPC64_GOT_LO_DS and R_PPC64_GOT_HA sanity checkAlan Modra2-2/+8
The previous sanity check allowed a ld on the HA reloc and addis on the LO_DS. * elf64-ppc.c (ppc64_elf_relocate_section): Tighten sanity check on R_PPC64_GOT_LO_DS and R_PPC64_GOT_HA instructions. (cherry picked from commit fba8689ad3b72a3e895ebd41485d747dba5da811)
2021-01-28PR26489, ASAN: ppc64_elf_size_stubs elf64-ppc.c:13389Alan Modra2-3/+8
Stub sections are inserted after sec_info is sized, so have higher ids. Test flags that will exclude stub sections before looking at the sec_info array. PR 26489 * elf64-ppc.c (ppc64_elf_size_stubs): Test code_sec->has_toc_reloc and code_sec->makes_toc_func_call before sec_info[code_sec->id]. (cherry picked from commit 918dc783deadc206691dcc20bf8aa6c807c10244)
2021-01-28PR26492, ASAN: ppc64_elf_before_check_relocs elf64-ppc.c:4337Alan Modra2-2/+8
PR 26492 * elf64-ppc.c (ppc_hash_table): Test is_elf_hash_table before accessing elf_hash_table_id. (cherry picked from commit 573eb292ee79dc78207cedadaa8acbb1922ab699)
2021-01-28PR26483, ASAN: ppc_elf_link_params elf32-ppc.c:2314Alan Modra2-2/+11
PR 26483 * elf32-ppc.c (ppc_elf_hash_table): Test is_elf_hash_table before accessing elf_hash_table_id. (cherry picked from commit a8d549c006a2135b86186d14ab5d0d5fdb702b2f)
2021-01-24DWARF-5: Ignore empty range in DWARF-5 line number tablesH.J. Lu2-3/+6
The DWARF5 spec does indeed explicitly say: "A bounded range entry whose beginning and ending address offsets are equal (including zero) indicates an empty range and may be ignored." Since arange_add already ignores empty ranges, remove the whole check which is equivalent to the check plus explicit continue. PR binutils/27231 * dwarf2.c (read_rnglists): Ignore empty range when parsing line number tables. (cherry picked from commit 940d0202fd472b09d370fb483bf5a8ae99c9c830)
2021-01-23DWARF-5: Fix parsing DWARF-5 line number tablesH.J. Lu2-0/+8
Advance rngs_ptr when parsing DW_RLE_offset_pair, which was missing in commit c3757b583d2448a5996e83e374fb96ac7938da35 Author: Mark Wielaard <mark@klomp.org> Date: Tue Aug 25 15:33:00 2020 +0100 Fix the linker's handling of DWARF-5 line number tables. PR binutils/27231 * dwarf2.c (read_rnglists): Advance rngs_ptr after _bfd_safe_read_leb128 when parsing DW_RLE_offset_pair. (cherry picked from commit 18454c151f5824564130ba626bd90e9de30444ef)
2021-01-10Automatic date update in version.inGDB Administrator1-1/+1
2021-01-09Automatic date update in version.inGDB Administrator1-1/+1
2021-01-08Automatic date update in version.inGDB Administrator1-1/+1
2021-01-07Automatic date update in version.inGDB Administrator1-1/+1
2021-01-06Automatic date update in version.inGDB Administrator1-1/+1
2021-01-05Automatic date update in version.inGDB Administrator1-1/+1
2021-01-04Automatic date update in version.inGDB Administrator1-1/+1
2021-01-03Automatic date update in version.inGDB Administrator1-1/+1
2021-01-02Automatic date update in version.inGDB Administrator1-1/+1
2021-01-01Automatic date update in version.inGDB Administrator1-1/+1
2021-01-01elf: Keep only one '@' for undefined versioned symbolsH.J. Lu2-1/+30
The symbol string table in the .symtab section is optional and cosmetic. Keep only one '@' for undefined versioned symbols, which are defined in shared objects, in the symbol string table. Update "nm -D" to display only one '@' for undefined versioned symbols. bfd/ PR ld/26382 * elflink.c (elf_link_output_symstrtab): Keep only one '@' for versioned symbols, which are defined in shared objects, in symbol string table. binutils/ PR ld/26382 * nm.c (print_symname): Display only one '@' for undefined versioned symbols. * doc/binutils.texi: Update nm version information. ld/ PR ld/26382 * testsuite/ld-elf/pr26302.nd: Updated. * testsuite/ld-elf/pr26302.rd: New file. * testsuite/ld-elf/shared.exp: Add a test for readelf -sW. (cherry picked from commit 3f2e9699234ca31d083bc93ea6e03903f10baeaf)
2020-12-31Automatic date update in version.inGDB Administrator1-1/+1
2020-12-30Automatic date update in version.inGDB Administrator1-1/+1
2020-12-29Automatic date update in version.inGDB Administrator1-1/+1
2020-12-28Automatic date update in version.inGDB Administrator1-1/+1
2020-12-27Automatic date update in version.inGDB Administrator1-1/+1
2020-12-26Automatic date update in version.inGDB Administrator1-1/+1
2020-12-25Automatic date update in version.inGDB Administrator1-1/+1
2020-12-24Automatic date update in version.inGDB Administrator1-1/+1
2020-12-23Automatic date update in version.inGDB Administrator1-1/+1
2020-12-22Automatic date update in version.inGDB Administrator1-1/+1
2020-12-21Automatic date update in version.inGDB Administrator1-1/+1
2020-12-20Automatic date update in version.inGDB Administrator1-1/+1
2020-12-19Automatic date update in version.inGDB Administrator1-1/+1
2020-12-18Automatic date update in version.inGDB Administrator1-1/+1
2020-12-17Automatic date update in version.inGDB Administrator1-1/+1
2020-12-16Automatic date update in version.inGDB Administrator1-1/+1
2020-12-15Automatic date update in version.inGDB Administrator1-1/+1
2020-12-14Automatic date update in version.inGDB Administrator1-1/+1
2020-12-13Automatic date update in version.inGDB Administrator1-1/+1
2020-12-12Automatic date update in version.inGDB Administrator1-1/+1
2020-12-11Automatic date update in version.inGDB Administrator1-1/+1
2020-12-10Automatic date update in version.inGDB Administrator1-1/+1
2020-12-09Automatic date update in version.inGDB Administrator1-1/+1
2020-12-08Automatic date update in version.inGDB Administrator1-1/+1
2020-12-07Automatic date update in version.inGDB Administrator1-1/+1
2020-12-06Automatic date update in version.inGDB Administrator1-1/+1
2020-12-04x86-64: Convert load to mov only for GOTPCRELX relocationsH.J. Lu2-1/+7
Since converting load to mov needs to rewrite the REX byte and we don't know if there is a REX byte with GOTPCREL relocation, do it only for GOTPCRELX relocations. bfd/ PR ld/27016 * elf64-x86-64.c (elf_x86_64_convert_load_reloc): Convert load to mov only for GOTPCRELX relocations. ld/ PR ld/27016 * testsuite/ld-x86-64/x86-64.exp: Run pr27016a and pr27016b. * testsuite/ld-x86-64/pr27016a.d: New file. * testsuite/ld-x86-64/pr27016a.s: Likewise. * testsuite/ld-x86-64/pr27016b.d: Likewise. * testsuite/ld-x86-64/pr27016b.s: Likewise. (cherry picked from commit 7e45e7a9ab38ee904ca62ed9934e933fdb1d6e9c)
2020-12-05Automatic date update in version.inGDB Administrator1-1/+1