about summary refs log tree commit diff stats
path: root/src/include/elfloader.h
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2021-07-12 13:41:05 +0200
committerptitSeb <sebastien.chev@gmail.com>2021-07-12 13:41:05 +0200
commit6d7c0f75e74f16fe3f63199a589c4828c1ab1f55 (patch)
tree87af2d6248424e9081b32b7698a964ea731b3d08 /src/include/elfloader.h
parent81a7eca5ef17a9805a3e894046f2148e0974eeda (diff)
downloadbox64-6d7c0f75e74f16fe3f63199a589c4828c1ab1f55.tar.gz
box64-6d7c0f75e74f16fe3f63199a589c4828c1ab1f55.zip
Handling of flag RTLD_NOW in dlopen
Diffstat (limited to 'src/include/elfloader.h')
-rwxr-xr-xsrc/include/elfloader.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/include/elfloader.h b/src/include/elfloader.h
index df745aa2..afef7981 100755
--- a/src/include/elfloader.h
+++ b/src/include/elfloader.h
@@ -24,13 +24,13 @@ 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 ReloadElfMemory(FILE* f, box64context_t* context, elfheader_t* head);
-int RelocateElf(lib_t *maplib, lib_t* local_maplib, elfheader_t* head);
-int RelocateElfPlt(lib_t *maplib, lib_t* local_maplib, 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);
 void CalcStack(elfheader_t* h, uint64_t* stacksz, size_t* stackalign);
 uintptr_t GetEntryPoint(lib_t* maplib, elfheader_t* h);
 uintptr_t GetLastByte(elfheader_t* h);
 void AddSymbols(lib_t *maplib, kh_mapsymbols_t* mapsymbols, kh_mapsymbols_t* weaksymbols, kh_mapsymbols_t* localsymbols, elfheader_t* h);
-int LoadNeededLibs(elfheader_t* h, lib_t *maplib, needed_libs_t* neededlibs, library_t *deplib, int local, box64context_t *box64, x64emu_t* emu);
+int LoadNeededLibs(elfheader_t* h, lib_t *maplib, needed_libs_t* neededlibs, library_t *deplib, int local, int bindnow, box64context_t *box64, x64emu_t* emu);
 uintptr_t GetElfInit(elfheader_t* h);
 uintptr_t GetElfFini(elfheader_t* h);
 void RunElfInit(elfheader_t* h, x64emu_t *emu);