All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hollis Blanchard <hollis@penguinppc.org>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: multiboot2: remove "a.out kludge" requirement
Date: Mon, 20 Nov 2006 13:14:59 -0600	[thread overview]
Message-ID: <1164050099.32262.50.camel@basalt> (raw)
In-Reply-To: <3a73d3420611190226k23254d59vd3e6acb189a585be@mail.gmail.com>

On Sun, 2006-11-19 at 10:26 +0000, Brano Zarnovican wrote:
> On 11/17/06, Andrei E. Warkentin <andrey.warkentin@gmail.com> 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

Sections are for linkers; segments are for loaders. GRUB loads ELF files
by segment, which is why I suggested a PT_LOAD segment.

> 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.

That is a non-starter I'm afraid. Not that I care much about non-ELF
kernels personally, but we must support them.

Of course we could simply say that some other method is needed for
non-ELF files.

-Hollis




  parent reply	other threads:[~2006-11-20 19:15 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-17 21:10 multiboot2: remove "a.out kludge" requirement Hollis Blanchard
2006-11-17 21:27 ` Andrei E. Warkentin
2006-11-17 22:01   ` Hollis Blanchard
2006-11-17 22:36     ` Andrei E. Warkentin
2006-11-18  0:32       ` Hollis Blanchard
2006-11-19 10:26   ` Brano Zarnovican
2006-11-19 16:55     ` Tristan Gingold
2006-11-19 19:31       ` Andrei E. Warkentin
2006-11-19 19:58         ` Tristan Gingold
2006-11-20 19:13       ` Hollis Blanchard
2006-11-20 20:24         ` Tristan Gingold
2006-11-20 19:14     ` Hollis Blanchard [this message]
2006-11-25  3:01 ` Yoshinori K. Okuji

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1164050099.32262.50.camel@basalt \
    --to=hollis@penguinppc.org \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.