From: Richard Henderson <rth@twiddle.net>
To: axp-list@redhat.com,
"'glibc-linux@ricardo.ecn.wfu.edu'"
<glibc-linux@ricardo.ecn.wfu.edu>
Subject: Re: Virtual address value in ELF file format...
Date: Fri, 28 May 1999 15:17:32 -0700 [thread overview]
Message-ID: <19990528151732.A619@twiddle.net> (raw)
In-Reply-To: <73F63B52E3A7D111B20900A0C96C0FD776EFFC@kh_exchange1>; from Hyung Min SEO on Thu, May 27, 1999 at 07:12:25PM +0900
On Thu, May 27, 1999 at 07:12:25PM +0900, Hyung Min SEO wrote:
> How can I set the p_vaddr value in some ELF file?
With a linker script laying out the sections.
> And how can I get the virtual address for any physical address?
You can't in general. What are you really asking?
> If I want the ELF file to load at physical address 0x416000, how can I get
> virtual address?
I presume you are tring to do MILO-ish sort of loading things?
In which case you know the mapping from virtual to physical in
that environment and arrange things appropriately.
There is a provision for setting separate virtual and physical
load points, but this is only useful for writing ROMs.
See http://www.cygnus.com/pubs/gnupro/5_ut/b_Usingld/ldLinker_scripts.html
for a good explanation of how to use linker scripts.
r~
prev parent reply other threads:[~1999-05-28 23:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-05-27 10:12 Virtual address value in ELF file format Hyung Min SEO
1999-05-28 22:17 ` Richard Henderson [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox