bug-grub
[Top][All Lists]
Advanced

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

Re: loading kernels with different LMA and VMA (fwd)


From: OKUJI Yoshinori
Subject: Re: loading kernels with different LMA and VMA (fwd)
Date: Thu, 29 Mar 2001 12:30:41 +0900

From: "Rogelio M. Serrano Jr." <address@hidden>
Subject: Re: loading kernels with different LMA and VMA (fwd)
Date: Thu, 29 Mar 2001 01:41:45 +0800 (PHT)

> It does help. The remaining problem now is what physical address to use
> for an entry address if the entry address that i get from the elf header
> is virtual?

Maybe GRUB should jump to (LMA + (entry point) - VMA) instead of
(entry point), because GNU linker sets every symbol to VMA rather than
LMA, though I don't know what other linkers do. One thing I care is
that this change could break existing Multiboot kernels which might
set their entry points explicitly. Does anybody have any objection to
this change?

> could this be the reason why the grub implementation assumes that LMA =
> VMA?

No. In the past, GRUB always used VMA incorrectly, and I changed GRUB
would use LMA but I didn't change the way to deal with an entry
point. Now I realize that this was my mistake. Sorry.

Okuji



reply via email to

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