Open QU35T-code opened 8 months ago
Here is what's raised when making (ARM64 arch as well)
rm -f loader.exe exe2h.exe exe2h loader32.exe loader64.exe donut.o hash.o encrypt.o format.o clib.o hash encrypt donut hash.exe encrypt.exe donut.exe lib/libdonut.a lib/libdonut.so
gcc -Wunused-function -Wall -fpack-struct=8 -DDONUT_EXE -I include donut.c hash.c encrypt.c format.c loader/clib.c lib/aplib64.a -odonut
format.c: In function ‘uuid_template’:
format.c:242:18: warning: pointer ‘p’ used after ‘realloc’ [-Wuse-after-free]
242 | memcpy(p + len, uuid_null, rem);
| ~~^~~~~
format.c:241:15: note: call to ‘realloc’ here
241 | pic = realloc(pic, len+rem);
| ^~~~~~~~~~~~~~~~~~~~~
/usr/bin/ld: lib/aplib64.a(elfstubs.o): Relocations in generic ELF (EM: 62)
/usr/bin/ld: lib/aplib64.a: error adding symbols: file in wrong format
collect2: error: ld returned 1 exit status
make: *** [Makefile:2: donut] Error 1
Donut-shellcode is not supported for arm64.