diff options
author | Alan Modra <amodra@gmail.com> | 2023-08-04 15:09:53 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2023-08-04 18:03:16 +0930 |
commit | 391fd4d9ee5d2b78244cbcd57fc405738359b70b (patch) | |
tree | e1e3bdd8cb0f9ee7f14e2ee1acd1fc3fa42a435d /sim | |
parent | 99d0971e801a0a92412cccbf8bce80da26a646b5 (diff) | |
download | fsf-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