This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: what does AT do in a linker scripts ?
- From: Nick Clifton <nickc at redhat dot com>
- To: Yubin Ruan <ablacktshirt at gmail dot com>, binutils at sourceware dot org
- Date: Wed, 20 Jul 2016 09:00:57 +0100
- Subject: Re: what does AT do in a linker scripts ?
- Authentication-results: sourceware.org; auth=none
- References: <5785F8C4.2040801@gmail.com> <20160713084920.GB3449@ratatosk> <57864B0E.8070908@gmail.com>
Hi Yubin,
> . = 0X80100000;
> .text : AT(0x100000) {
> Now 0x8010000 is a VMA, and 0x100000 is a LMA.
> Can I treat the LMA the same as the physical address in a ELF program header ?
Yes.
> Is LMA just **p_paddr** in a program header?
Yes. But - the interpretation of p_paddr and p_vaddr is dependent upon the target.
Some targets ignore p_vaddr for example. But in general you are right, LMA
corresponds to p_paddr and VMA corresponds to p_vaddr.
Cheers
Nick