From 9880a488ac919316f07a8ce5e8da546fb9029cf6 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Sun, 16 Apr 2023 09:32:54 +0200 Subject: Another fix for dlopen/dlclose sequence (should be ok now, at last) --- src/box64context.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/box64context.c') diff --git a/src/box64context.c b/src/box64context.c index f6ca346a..1fd4588a 100755 --- a/src/box64context.c +++ b/src/box64context.c @@ -359,12 +359,12 @@ void RemoveElfHeader(box64context_t* ctx, elfheader_t* head) { if(GetTLSBase(head)) { // should remove the tls info int tlsbase = GetTLSBase(head); - if(tlsbase == -ctx->tlssize) { + /*if(tlsbase == -ctx->tlssize) { // not really correct, but will do for now ctx->tlssize -= GetTLSSize(head); if(!(++ctx->sel_serial)) ++ctx->sel_serial; - } + }*/ } for(int i=0; ielfsize; ++i) if(ctx->elfs[i] == head) { -- cgit 1.4.1