X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=AcessNative%2Fld-acess_src%2Fbinary.c;h=fa2af0c4eba0c1a6053ff089d318763184894493;hb=43c4f4db78b98e0427a04dc4b281359580591915;hp=08ae6e9e0956598b960c11db7382c53759a12955;hpb=b4e2712f6a0849de53207ad50a38c9f468f22651;p=tpg%2Facess2.git diff --git a/AcessNative/ld-acess_src/binary.c b/AcessNative/ld-acess_src/binary.c index 08ae6e9e..fa2af0c4 100644 --- a/AcessNative/ld-acess_src/binary.c +++ b/AcessNative/ld-acess_src/binary.c @@ -1,12 +1,13 @@ /* * AcessNative */ +#define DEBUG 1 #include "common.h" #include #include #include -#define LIBRARY_PATH "$$$$../Usermode/Output/x86/Libs" +#define LIBRARY_PATH "$$$$../Usermode/Output/x86_64/Libs" // === TYPES === typedef struct sBinary { @@ -169,12 +170,12 @@ void *Binary_Load(const char *Filename, uintptr_t *EntryPoint) } #if DEBUG - printf("fmt->Load(%i)...\n", fd); + printf("fmt->Load(0x%x)...\n", fd); #endif ret = fmt->Load(fd); acess_close(fd); #if DEBUG - printf("fmt->Load(%p): %p\n", fd, ret); + printf("fmt->Load(0x%x): %p\n", fd, ret); #endif if( !ret ) { return NULL; @@ -251,6 +252,7 @@ int Binary_GetSymbol(const char *SymbolName, uintptr_t *Value, size_t *Size) } //printf("Binary_GetSymbol: RETURN 0, not found\n"); + printf("--- ERROR: Unable to find symbol '%s'\n", SymbolName); return 0; }