diff options
author | Alan Modra <amodra@gmail.com> | 2023-08-04 15:09:53 +0930 |
---|---|---|
committer | Andreas K. Hüttel <dilfridge@gentoo.org> | 2023-08-04 12:51:46 +0200 |
commit | 80b6c4d0d218a94c767ddc0befe85d1866116684 (patch) | |
tree | be47b36e6fb6b195e807f3e085b75145919c2f76 /sim/d10v | |
parent | [GOLD] powerpc DT_RELACOUNT (diff) | |
download | binutils-gdb-gentoo/binutils-2.40.tar.gz binutils-gdb-gentoo/binutils-2.40.tar.bz2 binutils-gdb-gentoo/binutils-2.40.zip |
PR30697, ppc32 mix of local-dynamic and global-dynamic TLSgentoo/binutils-2.40-7gentoo/binutils-2.40
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)
(cherry picked from commit 391fd4d9ee5d2b78244cbcd57fc405738359b70b)
Diffstat (limited to 'sim/d10v')
0 files changed, 0 insertions, 0 deletions