grub-devel
[Top][All Lists]
Advanced

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

Re: multiboot2: remove "a.out kludge" requirement


From: Andrei E. Warkentin
Subject: Re: multiboot2: remove "a.out kludge" requirement
Date: Sun, 19 Nov 2006 13:31:17 -0600

Well, couldn't the compressed .text/.rdata be stored in an ELF section itself?

Andrei Evgenievich Warkentin
Cell: (+1) (847) 321-15-55


On 19.11.2006, at 10:55, Tristan Gingold wrote:

On Sun, Nov 19, 2006 at 10:26:54AM +0000, Brano Zarnovican wrote:
On 11/17/06, Andrei E. Warkentin <address@hidden> 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 ;)
But using notes make it almost impossible to use a compressed image.
(This is almost a requirement for ia64, but I also think ia64 does not
require these flags).

Tristan.



_______________________________________________
Grub-devel mailing list


reply via email to

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