objcopy, --change-section-lma ?

Torsten Mohr tmohr@s.netic.de
Sat Jun 10 20:25:00 GMT 2006


Hi,

to my understanding in a section header entry there are 10 values
of 32 bit each.  One reflects the VMA (SH_ADDR), but none reflects
the LMA.

I wondered how objcopy can change a sections LMA then and found out that
it changes one of the program headers.

I now wonder how it is ensured that this does not contradict to the
LMA of other sections?

Are other sections affected implicitly?

Or does objcopy add another program header if necessary?
  If it does that, how is a section linked to a program header?


It would be great if anybody could give me a hint on this.


Best regards,
Torsten.



More information about the Binutils mailing list