what does AT do in a linker scripts ?

Nick Clifton nickc@redhat.com
Wed Jul 20 08:01:00 GMT 2016


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





More information about the Binutils mailing list