This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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: what does AT do in a linker scripts ?


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




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