The meaning of LMA and location counter in GNU ld

Ian Lance Taylor iant@google.com
Wed Jan 26 14:52:00 GMT 2011


ali hagigat <hagigatali@gmail.com> writes:

> 3.6.8.2 Output Section LMA
> If there is no preceding output section or the section is
> not allocatable, the linker will set the LMA equal to the VMA.
> ----------------------------------------------
> What is the meaning of "the section is not allocatable" in the above
> sentence of ld manual?

In ELF, a section for which SHF_ALLOC is not set.  In general, a section
which is not loaded at runtime.  A typical example would be a section
containing debug information.

Ian



More information about the Binutils mailing list