about summary refs log tree commit diff stats
path: root/src/include/elfloader.h
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2023-07-09 12:38:48 +0200
committerptitSeb <sebastien.chev@gmail.com>2023-07-09 12:38:48 +0200
commitdabbca767f9de4fc4cf68252037de3061592eae2 (patch)
treebfc1dadad814a82a155c0c374097177b94154beb /src/include/elfloader.h
parentca9bc1361943575724eb5152798aa208ed5eed6c (diff)
downloadbox64-dabbca767f9de4fc4cf68252037de3061592eae2.tar.gz
box64-dabbca767f9de4fc4cf68252037de3061592eae2.zip
[ELFLOADER] Added a check if lib version is compatible with what the elf loading it wants (helps Linux games on Steam)
Diffstat (limited to 'src/include/elfloader.h')
-rwxr-xr-xsrc/include/elfloader.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/include/elfloader.h b/src/include/elfloader.h
index d5b54145..ca8839df 100755
--- a/src/include/elfloader.h
+++ b/src/include/elfloader.h
@@ -25,6 +25,7 @@ int CalcLoadAddr(elfheader_t* head);
 int AllocElfMemory(box64context_t* context, elfheader_t* head, int mainbin);
 void FreeElfMemory(elfheader_t* head);
 int LoadElfMemory(FILE* f, box64context_t* context, elfheader_t* head);
+int isElfHasNeededVer(elfheader_t* head, const char* libname, elfheader_t* verneeded);
 int ReloadElfMemory(FILE* f, box64context_t* context, elfheader_t* head);
 int RelocateElf(lib_t *maplib, lib_t* local_maplib, int bindnow, elfheader_t* head);
 int RelocateElfPlt(lib_t *maplib, lib_t* local_maplib, int bindnow, elfheader_t* head);
@@ -64,6 +65,8 @@ const char* GetParentSymbolVersion(elfheader_t* h, int index);
 const char* VersionedName(const char* name, int ver, const char* vername);
 int SameVersionedSymbol(const char* name1, int ver1, const char* vername1, const char* name2, int ver2, const char* vername2);
 int GetVersionIndice(elfheader_t* h, const char* vername);
+int GetNeededVersionCnt(elfheader_t* h, const char* libname);
+const char* GetNeededVersionString(elfheader_t* h, const char* libname, int idx);
 
 kh_mapsymbols_t* GetMapSymbols(elfheader_t* h);
 kh_mapsymbols_t* GetWeakSymbols(elfheader_t* h);