diff options
| author | rajdakin <rajdakin@gmail.com> | 2021-04-12 00:53:14 +0200 |
|---|---|---|
| committer | rajdakin <rajdakin@gmail.com> | 2021-04-14 13:11:51 +0200 |
| commit | 48d61351061dcf1ee3148c67d208f20bdf22a3b8 (patch) | |
| tree | 9859835d868d88cd8e151e0efd8308ac93581190 /src/include/elfloader.h | |
| parent | 0d38b1cd91d4265042396d3d1dbacac2e662ba00 (diff) | |
| download | box64-48d61351061dcf1ee3148c67d208f20bdf22a3b8.tar.gz box64-48d61351061dcf1ee3148c67d208f20bdf22a3b8.zip | |
First pass
Diffstat (limited to 'src/include/elfloader.h')
| -rwxr-xr-x | src/include/elfloader.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/include/elfloader.h b/src/include/elfloader.h index a46d9b05..aef5ae35 100755 --- a/src/include/elfloader.h +++ b/src/include/elfloader.h @@ -26,7 +26,7 @@ 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); -void CalcStack(elfheader_t* h, uint32_t* stacksz, int* stackalign); +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); @@ -41,7 +41,7 @@ void* GetElfDelta(elfheader_t* h); uint32_t GetBaseSize(elfheader_t* h); int IsAddressInElfSpace(elfheader_t* h, uintptr_t addr); elfheader_t* FindElfAddress(box64context_t *context, uintptr_t addr); -const char* FindNearestSymbolName(elfheader_t* h, void* p, uintptr_t* start, uint32_t* sz); +const char* FindNearestSymbolName(elfheader_t* h, void* p, uintptr_t* start, uint64_t* sz); int32_t GetTLSBase(elfheader_t* h); uint32_t GetTLSSize(elfheader_t* h); void* GetTLSPointer(box64context_t* context, elfheader_t* h); @@ -55,5 +55,4 @@ void CreateMemorymapFile(box64context_t* context, int fd); int ElfCheckIfUseTCMallocMinimal(elfheader_t* h); // return 1 if tcmalloc is used - #endif //__ELF_LOADER_H_ |