diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2022-11-01 10:37:44 +0100 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2022-11-01 10:37:44 +0100 |
| commit | 24cc0c8422f4917fc8d0d03044d930ee91163674 (patch) | |
| tree | aa36455ad4889d1d1a72cc7fd27e256d7e375c64 /src/include | |
| parent | 8459ea0d31a851e847318273233c9a8b2b079eae (diff) | |
| download | box64-24cc0c8422f4917fc8d0d03044d930ee91163674.tar.gz box64-24cc0c8422f4917fc8d0d03044d930ee91163674.zip | |
Detect when program is linked with glibc 2.34+ to workaround the default libc libs to load
Diffstat (limited to 'src/include')
| -rwxr-xr-x | src/include/debug.h | 1 | ||||
| -rwxr-xr-x | src/include/elfloader.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/include/debug.h b/src/include/debug.h index 7c14a6ee..43a3e2ad 100755 --- a/src/include/debug.h +++ b/src/include/debug.h @@ -48,6 +48,7 @@ extern int box64_nogtk; // disabling the use of wrapped gtk extern int box64_novulkan; // disabling the use of wrapped vulkan extern int box64_showsegv; // show sigv, even if a signal handler is present extern int box64_showbt; // show a backtrace if a signal is caught +extern int box64_isglibc234; // is the program linked with glibc 2.34+ extern uintptr_t fmod_smc_start, fmod_smc_end; // to handle libfmod (from Unreal) SMC (self modifying code) extern uint32_t default_gs; extern int jit_gdb; // launch gdb when a segfault is trapped diff --git a/src/include/elfloader.h b/src/include/elfloader.h index 579c98bd..891a62ac 100755 --- a/src/include/elfloader.h +++ b/src/include/elfloader.h @@ -62,6 +62,7 @@ const char* GetSymbolVersion(elfheader_t* h, int version); const char* GetParentSymbolVersion(elfheader_t* h, int index); const char* VersionnedName(const char* name, int ver, const char* vername); int SameVersionnedSymbol(const char* name1, int ver1, const char* vername1, const char* name2, int ver2, const char* vername2); +int GetVersionIndice(elfheader_t* h, const char* vername); kh_mapsymbols_t* GetMapSymbols(elfheader_t* h); kh_mapsymbols_t* GetWeakSymbols(elfheader_t* h); |