X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=KernelLand%2FKernel%2Fbin%2Felf.c;h=b0d96cace9a1ec72728a326fbdccc24b59f099b2;hb=8dcc3e209d0d728565a18c8dca2b0ba220b74a6f;hp=41e09820fb5f4c78e2f466e6d93951d44842cb52;hpb=700d4228ad14b3a7406eefc9a58735748c254d42;p=tpg%2Facess2.git diff --git a/KernelLand/Kernel/bin/elf.c b/KernelLand/Kernel/bin/elf.c index 41e09820..b0d96cac 100644 --- a/KernelLand/Kernel/bin/elf.c +++ b/KernelLand/Kernel/bin/elf.c @@ -12,7 +12,7 @@ void *GetSymbol(const char *Name, size_t *Size); void *GetSymbol(const char *Name, size_t *Size) { Uint val; Binary_GetSymbol(Name, &val); if(Size)*Size=0; return (void*)val; }; #define AddLoaded(a,b) do{}while(0) -#define LoadLibrary(a,b,c) 0 +#define LoadLibrary(a,b,c) (Log_Debug("ELF", "Module requested lib '%s'",a),0) #include "../../../Usermode/Libraries/ld-acess.so_src/elf.c" #define DEBUG_WARN 1 @@ -50,7 +50,7 @@ tBinary *Elf_Load(int fp) switch(hdr.e_ident[4]) // EI_CLASS { case ELFCLASS32: - return Elf_Load32(fp, (Elf32_Ehdr*)&hdr); + return Elf_Load32(fp, (void*)&hdr); case ELFCLASS64: return Elf_Load64(fp, &hdr); default: