I am trying to generate a binary of the type elf_i386.
When I try and use
I want to run this code on the metal to try and understand basic operating system design. Will the
EDIT: I ran a helloworld with the ELF format of elf_i386_fbsd and it seems to work inside QEMU.
When I try and use
ld
link it, I get an unrecognised emulation mode error:
Code:
$ ld -T link.ld -melf_i386 loader.o -o kernel.elf
ld -T link.ld -melf_i386 loader.o -o kernel.elf
ld: unrecognised emulation mode: elf_i386
Supported emulations: elf_x86_64_fbsd elf_i386_fbsd
$
I want to run this code on the metal to try and understand basic operating system design. Will the
i386_fbsd
format work?EDIT: I ran a helloworld with the ELF format of elf_i386_fbsd and it seems to work inside QEMU.