]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
rtld-elf: Fix powerpc64 TLS handling, matching powerpc's fix
authorjhibbits <jhibbits@FreeBSD.org>
Tue, 1 Jan 2019 20:12:58 +0000 (20:12 +0000)
committerjhibbits <jhibbits@FreeBSD.org>
Tue, 1 Jan 2019 20:12:58 +0000 (20:12 +0000)
commitd6cbcdd4c0d4a66010993787304e08102f898970
treeaf1ec25e3fe6fa89405f975705e124c1468b4232
parent7263d0bea2c295671a9549a4690f1ffb208e29e0
rtld-elf: Fix powerpc64 TLS handling, matching powerpc's fix

We need to subtract the TLS_TCB_SIZE to get to the real data pointer, since
r13 points to the end of the TCB structure.  Prior to this, devel/protobuf-c
port broke with recent update to devel/protobuf, which exposed this issue.

Submitted by: andreast
Reported by: Piotr Kubaj
MFC after: 1 week
libexec/rtld-elf/powerpc64/reloc.c