summaryrefslogtreecommitdiffstats
path: root/lib/libssl/ssl_lib.c
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2020-07-14 16:48:13 +0000
committerkettenis <kettenis@openbsd.org>2020-07-14 16:48:13 +0000
commit874055c7f02823920709838a1b984071d59cc88d (patch)
tree39bd5d19eb3aac1ddd25063263eef8849443f77f /lib/libssl/ssl_lib.c
parentgetopt(3) returns an int so don't use a char to store its return value. (diff)
downloadwireguard-openbsd-874055c7f02823920709838a1b984071d59cc88d.tar.xz
wireguard-openbsd-874055c7f02823920709838a1b984071d59cc88d.zip
Fix TIB/TCB on powerpc64. Some bright sould decided that the TCB should
be 8 bytes in the 64-bit ABI just like in the 32-bit ABI. But that means there is no "spare" word in the TCB that we can use to store a pointer to our struct pthread. So we have to treat powerpc64 special. Also recognize that the thread pointer points 0x7000 bytes after the TCB. Since the TCB is 8 bytes this means that TCB_OFFSET should be 0x7008. Pointed out by guenther@; ok deraadt@
Diffstat (limited to 'lib/libssl/ssl_lib.c')
0 files changed, 0 insertions, 0 deletions