diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2023-01-29 10:18:32 +0100 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2023-01-29 10:18:32 +0100 |
| commit | 727f8b1d9bec96ed2aa4706c94c8b21c8a39d7b9 (patch) | |
| tree | 29105d0683f2b25aeab170fc90cbfb9736183050 /src | |
| parent | 35f2bcf29686b9445627de671289a7df55c9f027 (diff) | |
| download | box64-727f8b1d9bec96ed2aa4706c94c8b21c8a39d7b9.tar.gz box64-727f8b1d9bec96ed2aa4706c94c8b21c8a39d7b9.zip | |
dlopen with RTLD_NOLOAD flags should inc refcount if lib is present
Diffstat (limited to 'src')
| -rwxr-xr-x | src/wrapped/wrappedlibdl.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/wrapped/wrappedlibdl.c b/src/wrapped/wrappedlibdl.c index f47f15ed..f1518acd 100755 --- a/src/wrapped/wrappedlibdl.c +++ b/src/wrapped/wrappedlibdl.c @@ -113,8 +113,6 @@ void* my_dlopen(x64emu_t* emu, void *filename, int flag) printf_dlsym(LOG_DEBUG, " => not present anymore\n"); return NULL; // don't re-open in RTLD_NOLOAD mode } - printf_dlsym(LOG_DEBUG, "dlopen: Recycling %s/%p count=%ld not inc (dlopened=%ld, elf_index=%d)\n", rfilename, (void*)(i+1), dl->count[i], dl->dlopened[i], GetElfIndex(dl->libs[i])); - return (void*)(i+1); } IncRefCount(dl->libs[i], emu); dl->count[i] = dl->count[i]+1; |