I'm trying to set up a working environment for assembling a bootloader and compiling and linking a simple kernel according to this page: enter link description here
So far everything went well, however I can't seem to work around this linker error:
C:\Users\----\Desktop\>ld -T linker.ld -o kernel.bin --oformat binary loader.o kernel.o
ld: cannot perform PE operations on non PE output file 'kernel.bin'.
The ld manual pages are in my opinion far too cryptic, and don't give any answers to this particular error message.
(I'm using Windows 7 64 bit)