Page 1 of 1

Grub didn't kernel for "invalid or unsupported executab

Posted: Wed Jun 06, 2007 6:24 pm
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.

Posted: Wed Jun 06, 2007 11:56 pm
by Combuster
Link as a raw binary, and make sure the multiboot header is correct.
There is a tutorial on this here