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:04:46 +0930 |
commit | a648fe307354235f2460e004c164f99e4ad297f6 (patch) | |
tree | 23bc574c90f6ca6cf8e444d83dae2adacf899e02 /sim/v850/interp.c | |
parent | 87cb95ba8c4d86de23b6ba694a126995a17c5fcd (diff) | |
download | gdb-binutils-2_39-branch.zip gdb-binutils-2_39-branch.tar.gz gdb-binutils-2_39-branch.tar.bz2 |
PR30697, ppc32 mix of local-dynamic and global-dynamic TLSbinutils-2_39-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/v850/interp.c')
0 files changed, 0 insertions, 0 deletions