Open robindegen opened 2 years ago
Looks like starting from ld version 2.36.1 you need to pass the -r flag to make it output a relocatable object.
- wsl ld -m elf_i386 -nostdlib -T ld/loader.ld debug/obj/*.o -o debug/elf/loader.elf
+ wsl ld -r -m elf_i386 -nostdlib -T ld/loader.ld debug/obj/*.o -o debug/elf/loader.elf
I'm not sure if this is just because of changes in the new versions, but i'm getting the following:
ld: cannot use executable file 'debug/elf/loader.elf' as input to a link
If I run file on it it says: