bug-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug or not?


From: Tony Tang
Subject: bug or not?
Date: Mon, 06 Sep 2004 14:47:42 +0800

Dear dev,

I use the examples included in grub-0.93. I comment out the line #ifndef __ELF__ and the corresponding #endif in boot.S and change MULTIBOOT_HEADER_FLAGS to 0x00010003 in multiboot.h. I want grub to load image according to multiboot header, but grub dosen't do so, instead it loads the image according to ELF header. So I use objcopy to make a binary image of the executable file, hoping that grub can only load according to multiboot header, but grub says "Error 13: Invalid or unsupported executable file".

I read the source code of grub. It seems that grub will only take ELF and a.out file(besides Linux image). But according to multiboot specification, grub should boot any file that has a multiboot header within first 4K.

So, I'm confused.
Any comment is appreciated!

BTW, I'm using Redhat.

Tony

_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail





reply via email to

[Prev in Thread] Current Thread [Next in Thread]