OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 10:12 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Grub didn't kernel for "invalid or unsupported executab
PostPosted: Wed Jun 06, 2007 6:24 pm 
Offline
Member
Member

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


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 06, 2007 11:56 pm 
Offline
Member
Member
User avatar

Joined: Wed Oct 18, 2006 3:45 am
Posts: 9301
Location: On the balcony, where I can actually keep 1½m distance
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 ]


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot], Majestic-12 [Bot], Sa41848, SemrushBot [Bot] and 78 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group