On 11/17/06, Andrei E. Warkentin <[EMAIL PROTECTED]> wrote:

How about having a custom e_type for ELF images booted by GRUB? Something in

Guys at Xen solved it nicely with custom ELF section. Somewhere in
your OS code you create a section with specific name, bootloader will
be looking for. For multiboot it might look like:

.section __multiboot_v2
       .long MAGIC_THIS
       .long FLAGS_THAT

Header position is exactly defined in ELF which Grub already speaks.
It does not need to be in first 8kB. The downside is that it will make
multiboot ELF-only.

Oh. Did I mention that you can have more than one header in a single image ?
(for non-compatible multiboot versions ;)

BranoZ


_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to