Page 1 of 1

Tools question

Posted: Sat Oct 19, 2002 8:15 am
by Ayende Rahien
I'm trying to build the sample kernel in http://www.washingdishes.freeuk.com/grubtut.html.
I'm building this with DJGPP on WinXP.
I'm having trouble because the ld that I got with DJGPP doesn't support elf format (version 2.3)
I tried downloading Cygwin and doing it from there, but I get "ld: PE operation on non PE file" or some such when I try to link.
I would rather not use Cygwin, so can you tell me where I can get a linker that can handle elf?

Re:Tools question

Posted: Sat Oct 19, 2002 8:55 am
by Ayende Rahien
I got GNU ld version 2.13.90 20021005 but I still get this error, here is what I do, (the source if from the page above).

Kernel>nasmw -o start.c -f elf start.asm

Kernel>gcc -o kernel.o -c kernel.c -elf

Kernel>ld -T kernel.ls --oformat=elf32-i386 start.o kernel.o -o kernel
ld: PE operations on non PE file.

What am I doing wrong?