target elf32-i386 not found
Posted: Thu May 01, 2003 11:00 pm
I am trying to complie my 'os' so that i can boot it from grub, i am using djgpp, nasm etc. The problem is when i try to link the compiled assembly file and the C file. I use the following commands (in dos shell):
nasm -f elf -o start.o start.asm
gcc -c -o main.o main.c
ld -T linker.ld -o myos.bin main.o start.o
The linker script is tryin to output in elf32-i386 format, but ld dosent seem to like this, i have read that you need to get source code to edit for the ld program!!? there must be an easier way!? has no one already done this?
thanks in advance for any help, i would really like to get my os booted, it would be a good start!!
nasm -f elf -o start.o start.asm
gcc -c -o main.o main.c
ld -T linker.ld -o myos.bin main.o start.o
The linker script is tryin to output in elf32-i386 format, but ld dosent seem to like this, i have read that you need to get source code to edit for the ld program!!? there must be an easier way!? has no one already done this?
thanks in advance for any help, i would really like to get my os booted, it would be a good start!!