This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
fix arm big endian links
- From: Nathan Sidwell <nathan at codesourcery dot com>
- To: binutils <binutils at sourceware dot org>
- Date: Thu, 26 Aug 2010 11:35:27 +0100
- Subject: 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