Fix strip when sections are not sorted
Alan Modra
amodra@bigpond.net.au
Fri Jul 27 00:29:00 GMT 2007
On Wed, Jul 25, 2007 at 11:28:46AM -0400, Daniel Jacobowitz wrote:
> I think we should use the lowest section address, rather than the
> first section encountered. Is this patch OK?
Looks reasonable to me,
> if (!first_section)
> - first_section = section;
> + first_section = lowest_section = section;
> + if (section->vma < lowest_section->vma)
> + lowest_section = section;
> section_count++;
except that I'd be inclined to use lma here rather than vma.
--
Alan Modra
Australia Development Lab, IBM
More information about the Binutils
mailing list