]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r342671:
authorJustin Hibbits <jhibbits@FreeBSD.org>
Sun, 20 Jan 2019 03:58:21 +0000 (03:58 +0000)
committerJustin Hibbits <jhibbits@FreeBSD.org>
Sun, 20 Jan 2019 03:58:21 +0000 (03:58 +0000)
commit1d1e7cda765a89d6ceaf809041cd8666788d90af
tree64b8d12e3bbcf0ca159bace6b0d53b210a69eaa7
parenta1b136518fbf20e8e56a03173bf0c22c28ae6360
MFC r342671:

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
libexec/rtld-elf/powerpc64/reloc.c