grub-devel
[Top][All Lists]
Advanced

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

Re: Multiboot2 header


From: Yoshinori K. Okuji
Subject: Re: Multiboot2 header
Date: Thu, 6 Nov 2008 18:23:15 +0100
User-agent: KMail/1.9.9

On Tuesday 04 November 2008 21:36:27 Robert Millan wrote:
> The Multiboot2 draft says a Multiboot2 header must be included in the OS
> image.  However, our code assumes (in code itself and in comments) that for
> MB2 this is optional.
>
> As a consequence, if you feed GRUB's multiboot loader any ELF, it will
> attempt to load it.  I think this is very confusing for those developing
> a Multiboot _1_ OS.  If they happen to make a mistake and put the MB1
> header too high or unaligned, GRUB won't tell them about it but instead
> fail in a very confusing way.
>
> So I assume (I'd like to!) that the correct one is the draft, and it's the
> code that should be changed to reject executables that don't have either
> MB1 or MB2 headers?

Yes. The code is wrong.

Regards,
Okuji




reply via email to

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