This is the mail archive of the
sid@sources.redhat.com
mailing list for the SID project.
Re: SID ELF loader using wrong load address?
- From: Dave Brolley <brolley at redhat dot com>
- To: "Frank Ch. Eigler" <fche at redhat dot com>
- Cc: sid at sources dot redhat dot com
- Date: Mon, 04 Feb 2002 17:34:01 -0500
- Subject: Re: SID ELF loader using wrong load address?
- References: <3C5EEF5F.77116D06@redhat.com> <20020204154227.J10856@redhat.com>
"Frank Ch. Eigler" wrote:
> Hi -
>
> brolley wrote:
> > [...]
> > This is a section of code which should be loaded at the end of the .text
> > section and is intended to be copied (by the application itself) to
> > address 0x1000 before being executed. However, the SID ELF loader
> > currently loads this section at address 0x1000 (the VMA) instead of at
> > the given LMA. [...]
>
> Good catch, thanks! Looking at include/elf/external.h, I guess we want
> Elf32_External_Phdr.p_paddr instead of p_vaddr.
Yes -- that makes sense. Can I consider this approval to commit?
Dave