X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=AcessNative%2Fld-acess_src%2Fcommon.h;h=0bdc40f247af7cd30556986bda41fff22f2481d1;hb=c01cd6b0f42fa4cd400c5d9493c8b7ec92e72c5b;hp=9f67e9c63d67e3df582612ab9f363073f957109b;hpb=5840e1515195ccea72f945b03239b79dcf220c16;p=tpg%2Facess2.git diff --git a/AcessNative/ld-acess_src/common.h b/AcessNative/ld-acess_src/common.h index 9f67e9c6..0bdc40f2 100644 --- a/AcessNative/ld-acess_src/common.h +++ b/AcessNative/ld-acess_src/common.h @@ -8,16 +8,16 @@ #include #include -extern int Binary_GetSymbol(const char *SymbolName, uintptr_t *Value, size_t *Size); +extern int Binary_GetSymbol(const char *SymbolName, uintptr_t *Value, size_t *Size, void *IgnoreBase); extern void *Binary_LoadLibrary(const char *Path); extern void *Binary_Load(const char *Path, uintptr_t *EntryPoint); extern void Binary_SetReadyToUse(void *Base); // HACKS - So this can share the usermode elf.c -static inline int GetSymbol(const char *sym, void **val, size_t *sz) +static inline int GetSymbol(const char *sym, void **val, size_t *sz, void *IgnoreBase) { uintptr_t rv; - if( !Binary_GetSymbol(sym, &rv, sz) ) + if( !Binary_GetSymbol(sym, &rv, sz, IgnoreBase) ) return 0; *val = (void*)rv; return 1;