Page 1 of 1
PE message from ld?
Posted: Thu Dec 12, 2002 12:00 am
by mercury
I try: Q:\finalOS>ld -Ttext 0xFF800000 --oformat binary kernelc2.o kernelasm2.o -o kernel.bin
I get: ld: PE operations on non PE file.
Can anybody tell me what that means, and why?
RE:PE message from ld?
Posted: Fri Dec 13, 2002 12:00 am
by Brill
PE is a windows file format.
By the sounds of it, you're creating a windows file format or putting pe stuff into the file without compiling as the pe format. And that's why it's complaining. Don't ask what constitutes pe stuff though.
.
Brill.
RE:PE message from ld?
Posted: Fri Dec 13, 2002 12:00 am
by mercury
lol ok thanx. I think I got that part fixed, however, now I need to practice calling interrupts. For some reason all my computer does is reset when I try. Is that because I don't have interrupts enabled properly? I'm not up to date with x86 assembly programing. I want my Atari
RE:PE message from ld?
Posted: Wed Apr 23, 2003 11:00 pm
by CKr
How exactly did you fix your problem?
RE:PE message from ld?
Posted: Thu Apr 24, 2003 11:00 pm
by df
i did this topic to death on the mega-tokyo.com message board.
basically you need to rebuild binutils to support elf and pe.
when linking and creating elf output, i had to add the switch "-mi386bsd" this fixed all my errors up and produces a nice workable elf kernel
you can try reading
http://www.mega-tokyo.com/forum/index.p ... eadid=2489
and some info in
http://www.mega-tokyo.com/forum/index.p ... eadid=2371
RE:PE message from ld?
Posted: Wed Apr 30, 2003 11:00 pm
by Hondo
I also had that problem... I downloaded the latest version of ld and it worked fine.