aboutsummaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2023-08-04 15:09:53 +0930
committerAlan Modra <amodra@gmail.com>2023-08-04 18:03:16 +0930
commit391fd4d9ee5d2b78244cbcd57fc405738359b70b (patch)
treee1e3bdd8cb0f9ee7f14e2ee1acd1fc3fa42a435d /sim
parent99d0971e801a0a92412cccbf8bce80da26a646b5 (diff)
downloadfsf-binutils-gdb-binutils-2_40-branch.zip
fsf-binutils-gdb-binutils-2_40-branch.tar.gz
fsf-binutils-gdb-binutils-2_40-branch.tar.bz2
PR30697, ppc32 mix of local-dynamic and global-dynamic TLSbinutils-2_40-branch
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)
Diffstat (limited to 'sim')
0 files changed, 0 insertions, 0 deletions