]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
This commit reverts 338930. The approach was wrong.
authorAndreas Tobler <andreast@FreeBSD.org>
Mon, 1 Oct 2018 18:46:35 +0000 (18:46 +0000)
committerAndreas Tobler <andreast@FreeBSD.org>
Mon, 1 Oct 2018 18:46:35 +0000 (18:46 +0000)
commit953cba365fa4d5267d30fcb8221d6e9acfdec4ac
tree3ebe4128715f63a1e9e01edd9ac642f2f87ee78c
parent7c65532627e28f6ad5d09f49d08508368616944f
This commit reverts 338930. The approach was wrong.

Fix the issue with subtracting the TLS_TCB_SIZE too when we are trying to get
the 'where' in the R_PPC_TPREL32 case. At allocation time we added an offset
and the TLS_TCB_SIZE. This has to be subtracted as well.

Now all the issues reported are fixed. Tests were done on G4 and G5 PowerMac's.
Additionally I ran the tls tests from the gcc test suite and made sure the
results are as good as pre 338486.

Thanks to tuexen for reporting the malfunction and for patient testing.
Also testing thanks goes to jhibbits.

Reported by: tuexen
Discussed with: jhibbits, nwhitehorn
Approved by: re (gjb)
Pointyhat to: andreast
libexec/rtld-elf/powerpc/reloc.c
libexec/rtld-elf/powerpc/rtld_machdep.h