[PATCH] Correctly set lma when reading an elf image

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


This patch changes the way we calculate the LMA for a section to more
closely conform with the way the linker works.  It's based on the
assumption that while a segment may not contain contiguous VMAs the LMAs
*will* always be contiguous and therefore the LMA of a section within that
segment can be calculated from the LMA of the segment plus the offset into
it.  This is the first of two changes to fix the problem of strip
complaining that sections are not mapped into segments.

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

	* elf.c (_bfd_elf_make_section_from_shdr): Set the LMA based on the
	p_paddr of the segment that contains it.




More information about the Binutils mailing list