aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
6 daysLoongArch: ld:Report an error when seeing an unrecognized relocationbinutils-2_40-branchLulu Cai1-2/+7
If we generate an object file using an assembler with the new relocations added, and then linking those files with an older linker, the link will still complete and the linked file will be generated. In this case we should report an error instead of continuing the linking process. (cherry picked from commit 5966e2eb3fed61ebe5c091a074b368b9238a68c1)
6 daysLoongArch: Enable gas sort relocsJinyang He1-0/+2
The md_pre_output_hook creating fixup is asynchronous, causing relocs may be out of order in .eh_frame. Define GAS_SORT_RELOCS so that reorder relocs when write_relocs. Reported-by: Rui Ueyama <rui314@gmail.com> (cherry picked from commit 7c93730fe50c22129e751d8479e64bc970b75aac)
2024-08-01libctf: fix ref leak of names of newly-inserted non-root-visible typesNick Alcock1-4/+4
A bug in ctf_dtd_delete led to refs in the string table to the names of non-root-visible types not being removed when the DTD was. This seems harmless, but actually it would lead to a write down a pointer into freed memory if such a type was ctf_rollback()ed over and then the dict was serialized (updating all the refs as the strtab was serialized in turn). Bug introduced in commit fe4c2d55634c700ba527ac4183e05c66e9f93c62 ("libctf: create: non-root-visible types should not appear in name tables") which is included in binutils 2.35. libctf/ * ctf-create.c (ctf_dtd_delete): Remove refs for all types with names, not just root-visible ones.
2023-08-04PR30697, ppc32 mix of local-dynamic and global-dynamic TLSAlan Modra4-9/+37
This fixes miscounting of dynamic relocations on GOT entries when a) there are both local-dynamic and global-dynamic tls accesss for a given symbol, and b) the symbol is global with non-default visibility, and c) the __tls_get_addr calls aren't optimised away. PR 30697 bfd/ * elf32-ppc.c (allocate_dynrelocs): Correct local-dynamic reloc count. ld/ * testsuite/ld-powerpc/tls32ldgd.d, * testsuite/ld-powerpc/tls32ldgd.s: New test. * testsuite/ld-powerpc/powerpc.exp: Run it. (cherry picked from commit ae33771224660dac25e64c3f70943a17bfab7681)
2023-07-03Automatic date update in version.inGDB Administrator1-1/+1
2023-07-02Automatic date update in version.inGDB Administrator1-1/+1
2023-07-01Automatic date update in version.inGDB Administrator1-1/+1
2023-06-30Automatic date update in version.inGDB Administrator1-1/+1
2023-06-29Automatic date update in version.inGDB Administrator1-1/+1
2023-06-28Automatic date update in version.inGDB Administrator1-1/+1
2023-06-27Automatic date update in version.inGDB Administrator1-1/+1
2023-06-26Automatic date update in version.inGDB Administrator1-1/+1
2023-06-25Automatic date update in version.inGDB Administrator1-1/+1
2023-06-24Automatic date update in version.inGDB Administrator1-1/+1
2023-06-23[GOLD] powerpc DT_RELACOUNTAlan Modra1-2/+7
DT_RELACOUNT was calculated incorrectly, and relative relocs not sorted as they should be to the start of .rela.dyn, due to adding one particular class of dynamic reloc using the wrong "add" method. * powerpc.cc (Target_powerpc::Scan::global): Add relative dyn relocs for ADDR64 and similar using add_global_relative. (cherry picked from commit 027614abf11de9e79a335df4e1f9a788b7ab0063)
2023-06-23Automatic date update in version.inGDB Administrator1-1/+1
2023-06-22Automatic date update in version.inGDB Administrator1-1/+1
2023-06-21PR30536, ppc64el gold linker produces unusable clang-16 binaryAlan Modra1-1/+9
In commit 0961e631575b, the fix for PR30217, make_lplt_section and make_brlt_section were changed to use rela_dyn_ rather than their own separate dynamic reloc sections. This fails miserably whenever brlt_ is needed for long branches, due to needing to iterate sizing and thus reset brlt_ sizes. PR 30536 PR 30217 * powerpc.cc (Target_powerpc::make_brlt_section): Don't use rela_dyn_. (cherry picked from commit dc808a2ebab337b5517add4c1aad298cf836c239)
2023-06-21Automatic date update in version.inGDB Administrator1-1/+1
2023-06-20Automatic date update in version.inGDB Administrator1-1/+1
2023-06-19Automatic date update in version.inGDB Administrator1-1/+1
2023-06-18Automatic date update in version.inGDB Administrator1-1/+1
2023-06-17Automatic date update in version.inGDB Administrator1-1/+1
2023-06-16Automatic date update in version.inGDB Administrator1-1/+1
2023-06-15Automatic date update in version.inGDB Administrator1-1/+1
2023-06-14Automatic date update in version.inGDB Administrator1-1/+1
2023-06-13Automatic date update in version.inGDB Administrator1-1/+1
2023-06-12Automatic date update in version.inGDB Administrator1-1/+1
2023-06-11Automatic date update in version.inGDB Administrator1-1/+1
2023-06-10Automatic date update in version.inGDB Administrator1-1/+1
2023-06-09Automatic date update in version.inGDB Administrator1-1/+1
2023-06-08Automatic date update in version.inGDB Administrator1-1/+1
2023-06-07Automatic date update in version.inGDB Administrator1-1/+1
2023-06-06Automatic date update in version.inGDB Administrator1-1/+1
2023-06-05Automatic date update in version.inGDB Administrator1-1/+1
2023-06-04Automatic date update in version.inGDB Administrator1-1/+1
2023-06-03Automatic date update in version.inGDB Administrator1-1/+1
2023-06-02Automatic date update in version.inGDB Administrator1-1/+1
2023-06-01Automatic date update in version.inGDB Administrator1-1/+1
2023-05-31Automatic date update in version.inGDB Administrator1-1/+1
2023-05-30Automatic date update in version.inGDB Administrator1-1/+1
2023-05-29Automatic date update in version.inGDB Administrator1-1/+1
2023-05-28Automatic date update in version.inGDB Administrator1-1/+1
2023-05-27Automatic date update in version.inGDB Administrator1-1/+1
2023-05-26Automatic date update in version.inGDB Administrator1-1/+1
2023-05-25Automatic date update in version.inGDB Administrator1-1/+1
2023-05-24Automatic date update in version.inGDB Administrator1-1/+1
2023-05-23Updated Swedish translation for the opcodes directoryNick Clifton2-238/+255
2023-05-23Automatic date update in version.inGDB Administrator1-1/+1
2023-05-22Automatic date update in version.inGDB Administrator1-1/+1