about summary refs log tree commit diff stats
path: root/src/box64context.c
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2023-04-16 09:32:54 +0200
committerptitSeb <sebastien.chev@gmail.com>2023-04-16 09:32:54 +0200
commit9880a488ac919316f07a8ce5e8da546fb9029cf6 (patch)
tree4f08812f2f68d56c62ccdaf954a8c21a60b24876 /src/box64context.c
parentf59675e9bf438cfca082c5d35bc07ca19762195b (diff)
downloadbox64-9880a488ac919316f07a8ce5e8da546fb9029cf6.tar.gz
box64-9880a488ac919316f07a8ce5e8da546fb9029cf6.zip
Another fix for dlopen/dlclose sequence (should be ok now, at last)
Diffstat (limited to 'src/box64context.c')
-rwxr-xr-xsrc/box64context.c4
1 files changed, 2 insertions, 2 deletions
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; i<ctx->elfsize; ++i)
         if(ctx->elfs[i] == head) {