Tools question

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Ayende Rahien

Tools question

Post 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?
Ayende Rahien

Re:Tools question

Post 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?
Post Reply