From 2acc729523db8b13918e9bd46d4a9d9e635e7bb3 Mon Sep 17 00:00:00 2001 From: "John Hodge (sonata)" Date: Sun, 11 Nov 2012 11:51:20 +0800 Subject: [PATCH] AcessNative - Compile fixes after elf linking changes --- AcessNative/ld-acess_src/common.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/AcessNative/ld-acess_src/common.h b/AcessNative/ld-acess_src/common.h index 0d1dee88..63db8612 100644 --- a/AcessNative/ld-acess_src/common.h +++ b/AcessNative/ld-acess_src/common.h @@ -14,12 +14,13 @@ 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 void *GetSymbol(const char*sym, size_t*sz) +static inline int GetSymbol(const char *sym, void **val, size_t *sz) { uintptr_t rv; if( !Binary_GetSymbol(sym, &rv, sz) ) - return NULL; - return (void*)rv; + return 0; + *val = (void*)rv; + return 1; } static inline void *LoadLibrary(const char *Name, const char *SearchPath, char **envp) { @@ -30,6 +31,11 @@ static inline void AddLoaded(const char *Path, void *Base) Binary_SetReadyToUse(Base); } +static inline int SysSetMemFlags(uintptr_t Addr, unsigned int flags, unsigned int mask) +{ + return 0; +} + extern int AllocateMemory(uintptr_t VirtAddr, size_t ByteCount); extern uintptr_t FindFreeRange(size_t ByteCount, int MaxBits); -- 2.20.1