From 27b3a3f33c90fc0daaf0ca8708c806b2a71b1625 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Sun, 4 Jul 2021 22:58:06 +0200 Subject: Improved TLS handling (for #17, but probably help many other programs) --- src/wrapped/wrappedldlinux.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/wrapped/wrappedldlinux.c') diff --git a/src/wrapped/wrappedldlinux.c b/src/wrapped/wrappedldlinux.c index eaea93d8..e8c56bc0 100755 --- a/src/wrapped/wrappedldlinux.c +++ b/src/wrapped/wrappedldlinux.c @@ -23,7 +23,8 @@ typedef struct my_tls_s { EXPORT void* my___tls_get_addr(x64emu_t* emu, void* p) { my_tls_t *t = (my_tls_t*)p; - return GetDTatOffset(emu->context, t->i, t->o); + void* ret = GetDTatOffset(emu->context, t->i, t->o); + return ret; } // don't try to load the actual ld-linux (because name is variable), just use box64 itself, as it's linked to ld-linux -- cgit 1.4.1