[PATCH] Assigning sections to elf segments

Richard Earnshaw rearnsha@arm.com
Sat Oct 27 08:50:00 GMT 2001


When reading in an elf image we are currently failing to assign some
sections to segments because we are basing the calculations on the VMAs not
the LMAs.  This is the final patch required to make strip work correctly if
a segment contains contiguous LMAs but non-contiguous VMAs (if both are
contiguous -- the normal case -- then the behaviour is unchanged).  To
support tools that do not set the p_paddr field we fall back to using the
VMAs for segment determination.

<date>  Richard Earnshaw (rearnsha@arm.com)

	* elf.c (copy_private_bfd_data): If the LMA for a segment is known,
	use it for matching sections to segments.




More information about the Binutils mailing list