Grub didn't kernel for "invalid or unsupported executab

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
flash
Member
Member
Posts: 29
Joined: Sun Feb 04, 2007 6:33 am

Grub didn't kernel for "invalid or unsupported executab

Post by flash »

Hi, my os developing environment is Windows XP. I build my os with Mingw32 GCC, but it can only output either PE image file or binary file. When I try to use grub(v0.94) to kernel the kinds of output file, grub always displays this error:
Error 13: Invalid or unsupported executable format.

I wonder how to solve this problem without changing my developing environment to cygwin. I wonder how to make my Mingwgcc link a correct format for grub to use.
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Post by Combuster »

Link as a raw binary, and make sure the multiboot header is correct.
There is a tutorial on this here
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
Post Reply