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-04-14 14:54:30 +0200
committerGitHub <noreply@github.com>2021-04-14 14:54:30 +0200
commit6f217d78da0a49b3f3cf99443cfa95a9a6507303 (patch)
tree8d790b143339b5b910594dd919754622b0885d40 /src/include/elfloader.h
parent0d38b1cd91d4265042396d3d1dbacac2e662ba00 (diff)
parentcdf71c4cbc8c07510708cb7396cd1035300f587f (diff)
downloadbox64-6f217d78da0a49b3f3cf99443cfa95a9a6507303.tar.gz
box64-6f217d78da0a49b3f3cf99443cfa95a9a6507303.zip
Merge pull request #10 from rajdakin/warnFixRefactor
Warnings and fixes
Diffstat (limited to 'src/include/elfloader.h')
-rwxr-xr-xsrc/include/elfloader.h5
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_