From: Roland McGrath <[EMAIL PROTECTED]>
Subject: use ELF p_paddr for physical load address
Date: Sat, 16 Oct 1999 01:24:51 -0400

> What do you think about this change to use the p_paddr (physical address)
> instead of p_vaddr (virtual address) field in the ELF program
> header?

  In the current (and the yet-unreleased version 0.5.93), GRUB always
uses paddr instead of vaddr. Please check out GRUB from the CVS.

> -           memaddr = RAW_ADDR (phdr->p_vaddr);
> +           memaddr = RAW_ADDR (phdr->p_paddr != 0
> +                               ? phdr->p_paddr : phdr->p_vaddr);

  Why do you need to check if paddr is non-zero? Doesn't any linker
set it properly?

----------------------------------------------------------------------
OKUJI Yoshinori  <[EMAIL PROTECTED]>           ^o-o^
http://duff.kuicr.kyoto-u.ac.jp/~okuji (in English)     m /

Reply via email to