From: "Rogelio M. Serrano Jr." <[EMAIL PROTECTED]>
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

_______________________________________________
Bug-grub mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-grub

Reply via email to