diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2023-07-15 16:57:57 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2023-07-15 16:57:57 +0200 |
| commit | 0b3097cd0b15eedd3e33ae2331f32fc261ee1231 (patch) | |
| tree | 3f2034d75b595670e68971d0c9dc125000960da4 /src/box64context.c | |
| parent | c7e0ba82b4a586fed8f4d45acd0c774ddf0f777b (diff) | |
| download | box64-0b3097cd0b15eedd3e33ae2331f32fc261ee1231.tar.gz box64-0b3097cd0b15eedd3e33ae2331f32fc261ee1231.zip | |
[ELFLOADER] Reworked R_X86_64_COPY and R_X86_64_GLOB_DAT handling, improving c++ program compatibility
Diffstat (limited to 'src/box64context.c')
| -rwxr-xr-x | src/box64context.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/box64context.c b/src/box64context.c index 5c85f3fa..234657ca 100755 --- a/src/box64context.c +++ b/src/box64context.c @@ -259,6 +259,8 @@ box64context_t *NewBox64Context(int argc) context->segtls[4].present = 1; context->segtls[4].is32bits = 1; + context->globdata = NewMapSymbols(); + initAllHelpers(context); return context; @@ -353,6 +355,8 @@ void FreeBox64Context(box64context_t** context) if(ctx->emu_sig) FreeX64Emu(&ctx->emu_sig); + FreeMapSymbols(&ctx->globdata); + finiAllHelpers(ctx); #ifdef DYNAREC |