I've run into so many errors and tried so many different things, it's not even funny.
The most reasonable thing I've tried:
Code: Select all
nasm.exe jump.asm -f elf32 -o jump.o
gcc.exe -c -m32 -Wall -Wextra -Werror -nostdlib -fno-builtin -nostartfiles -nodefaultlibs kernel.c -o kernel.o
ld.exe -m elf_i386 -s -r --oformat binary --entry jump jump.o kernel.o -o kernel.bin
Code: Select all
Assembler messages:
Fatal error: selected target format 'pe-i386' unknown
Code: Select all
C:\dev\Perl\c\bin\ld.exe: unrecognised emulation mode: elf_i386
Supported emulations: i386pep
Thanks,