X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=AcessNative%2Fld-acess_src%2Fcommon.h;h=0d1dee886faf58c8aa37136d9c3526018477368c;hb=a4d8188f730bcc25cd4a6f4799ac7d65eb707cf2;hp=59be119f56421c3369666ee72b9167e5e39e1b4f;hpb=b8b25ae01e13c655608fb6705574e5218b1a519f;p=tpg%2Facess2.git diff --git a/AcessNative/ld-acess_src/common.h b/AcessNative/ld-acess_src/common.h index 59be119f..0d1dee88 100644 --- a/AcessNative/ld-acess_src/common.h +++ b/AcessNative/ld-acess_src/common.h @@ -8,7 +8,7 @@ #include #include -extern int Binary_GetSymbol(const char *SymbolName, uintptr_t *Value); +extern int Binary_GetSymbol(const char *SymbolName, uintptr_t *Value, size_t *Size); extern void *Binary_LoadLibrary(const char *Path); extern void *Binary_Load(const char *Path, uintptr_t *EntryPoint); extern void Binary_SetReadyToUse(void *Base); @@ -17,7 +17,7 @@ extern void Binary_SetReadyToUse(void *Base); static inline void *GetSymbol(const char*sym, size_t*sz) { uintptr_t rv; - if( Binary_GetSymbol(sym, &rv) ) + if( !Binary_GetSymbol(sym, &rv, sz) ) return NULL; return (void*)rv; } @@ -49,7 +49,7 @@ typedef struct sBinFmt { char *Name; void *(*Load)(int fd); uintptr_t (*Relocate)(void *base); - int (*GetSymbol)(void*,char*,uintptr_t*); + int (*GetSymbol)(void*,char*,uintptr_t*,size_t*); } tBinFmt; #endif