fix arm big endian links

Nathan Sidwell nathan@codesourcery.com
Thu Aug 26 11:03:00 GMT 2010


I've committed this patch to fix a crash when building a big endian glibc.

The stub_group array links each input section to a stub section.  Multiple input 
sections can be linked to the same output section, so there are duplicate 
stub_sec values in this array, and we'd process each stub every time we met it. 
  However, one of those input sections 'owns' the stub section -- the one in the 
corresponding link_sec field.  So this patch adds an additional check to only 
process the stub when we're looking at the owning slot.

I also fixed the formatting issues with the for loop.

built and tested with arm-none-linux-gnueabi.

nathan
-- 
Nathan Sidwell    ::   http://www.codesourcery.com   ::         CodeSourcery

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: all.diff
URL: <https://sourceware.org/pipermail/binutils/attachments/20100826/af597c41/attachment.ksh>


More information about the Binutils mailing list