another powerpc APUinfo patch
Nathan Sidwell
nathan@codesourcery.com
Thu Apr 1 08:27:00 GMT 2010
this is a followup to
2010-02-08 Nathan Sidwell <nathan@codesourcery.com>
* elf32-ppc.c (ppc_elf_begin_write_processing): Allow empty
apuinfo sections, only scan input sections once and reuse the
buffer.
I've now met a case where there were (only) multiple empty APUinfo sections in
the input. In such a case we end up with an empty list of APU attributes and
then consequently don't think we need to do anything special writing out the
matching output section. We end up attempting to concatenate the input sections.
This patch adds an explicit boolean indicating that we met APUinfo sections in
the input. If we do, we always synthesize an APUinfo output section even if it
has not attributes (just the header). I didn't think it worth while optimizing
the case I'd hit -- hey, if the producer can't be bothered, why try harder?
built and tested on powerpc-elf, ok?
nathan
--
Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ppc.diff
URL: <https://sourceware.org/pipermail/binutils/attachments/20100401/03265a7b/attachment.ksh>
More information about the Binutils
mailing list