elfloader example compile error

Discussion in 'Wii U - Hacking & Backup Loaders' started by hugofestA, Feb 28, 2016.

  1. hugofestA
    OP

    hugofestA Advanced Member

    Newcomer
    52
    7
    Feb 10, 2016
    Hungary
    mast:3rw0rld
    Hi! Me again.
    If I try to compile the example elfloader(no modifications) make gives me these errors:
    Code:
    
    src/elfloader.c: In function 'load_elf_image':
    
    src/elfloader.c:82:11: error: called object is not a function or function pointer
    
    memcpy ((void *) phdrs[i].p_paddr, (const void *) image, phdrs[i].p_filesz);
    
    ^
    
    src/loader.c: In function 'write_data':
    
    src/loader.c:119:8: error: called object is not a function or function pointer
    
    memcpy((void*)0xF5800000+(*filepos), buffer, insize);
    
    ^
    
    src/loader.c: In function 'myMemThread':
    
    src/loader.c:152:8: error: called object is not a function or function pointer
    
    memcpy(buf,leaddr,64);
    
    ^
    
    src/loader.c:156:8: error: called object is not a function or function pointer
    
    memcpy(ptr+1, "boot.elf", 9);
    
    ^
    
    src/loader.c: In function 'ropstart':
    
    src/loader.c:223:5: error: called object is not a function or function pointer
    
    rop();
    
    ^
    
    src/loader.c: In function 'dorop':
    
    src/loader.c:234:8: error: called object is not a function or function pointer
    
    memcpy((void *)BUFFER_ADDR, (void *)BUFFER_ADDR + 0x800, 0x600);
    
    ^
    
    make: *** [main550] Error 1
    
    
    please help!
     
  2. NexoCube

    NexoCube stop using piracy :(

    Member
    1,184
    587
    Nov 3, 2015
    France
    Stack Pointer
    Stop posting, you can't search by yourself ? Duh, you're freaking annoying.
     
    Voxel likes this.