This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

fix arm big endian links


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

Attachment: all.diff
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]