This is the mail archive of the sid@sources.redhat.com mailing list for the SID project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: SID ELF loader using wrong load address?


"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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]