diff options
Diffstat (limited to 'src/wrapped')
| -rwxr-xr-x | src/wrapped/wrappedlibc.c | 16 | ||||
| -rwxr-xr-x | src/wrapped/wrappedlibdl.c | 2 |
2 files changed, 13 insertions, 5 deletions
diff --git a/src/wrapped/wrappedlibc.c b/src/wrapped/wrappedlibc.c index 690fa66f..8f8f3881 100755 --- a/src/wrapped/wrappedlibc.c +++ b/src/wrapped/wrappedlibc.c @@ -2964,10 +2964,18 @@ EXPORT char my___libc_single_threaded = 0; my___progname = my_program_invocation_short_name = \ strrchr(box64->argv[0], '/') + 1; \ getMy(lib); \ - setNeededLibs(lib, 3, \ - "ld-linux-x86-64.so.2", \ - "libpthread.so.0", \ - "librt.so.1"); + if(box64_isglibc234) \ + setNeededLibs(lib, 5, \ + "ld-linux-x86-64.so.2", \ + "libpthread.so.0", \ + "libdl.so.2", \ + "libutil.so.1", \ + "librt.so.1"); \ + else \ + setNeededLibs(lib, 3, \ + "ld-linux-x86-64.so.2", \ + "libpthread.so.0", \ + "librt.so.1"); #define CUSTOM_FINI \ freeMy(); diff --git a/src/wrapped/wrappedlibdl.c b/src/wrapped/wrappedlibdl.c index 3a6d505d..4cd70df4 100755 --- a/src/wrapped/wrappedlibdl.c +++ b/src/wrapped/wrappedlibdl.c @@ -474,7 +474,7 @@ int my_dlinfo(x64emu_t* emu, void* handle, int request, void* info) } #define CUSTOM_INIT\ - setNeededLibs(lib, 1, "libc.so.6"); + if(!box64_isglibc234) setNeededLibs(lib, 1, "libc.so.6"); // define all standard library functions |