From 1f53e7d00c375efb32e2e468f91a42668653d5f0 Mon Sep 17 00:00:00 2001 From: rofl0r Date: Fri, 13 Jan 2017 10:28:46 +0000 Subject: fix crashes in x32 __tls_get_addr x32 has another gratuitous difference to all other archs: it passes an array of 64bit values to __tls_get_addr(). usually it is an array of size_t. --- arch/x32/pthread_arch.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'arch') diff --git a/arch/x32/pthread_arch.h b/arch/x32/pthread_arch.h index ecb0bbfb..267ad073 100644 --- a/arch/x32/pthread_arch.h +++ b/arch/x32/pthread_arch.h @@ -10,3 +10,5 @@ static inline struct pthread *__pthread_self() #define MC_PC gregs[REG_RIP] #define CANARY canary2 + +#define tls_mod_off_t unsigned long long -- cgit v1.2.1