Improve .rsrc section merging again. This time with an algorithm that
authorNick Clifton <nickc@redhat.com>
Wed, 19 Mar 2014 14:46:15 +0000 (14:46 +0000)
committerNick Clifton <nickc@redhat.com>
Wed, 19 Mar 2014 14:46:15 +0000 (14:46 +0000)
commit6caf711179d96da75860b79434bc792c92c0fa4c
tree174fae83e96c11e428cb598c4fe2db8efb6abb54
parent288c6b306e6e5531647968bdcd99594bf0483802
Improve .rsrc section merging again.  This time with an algorithm that
should work for all types of input .rsrc section.

* peXXigen.c (rsrc_process_section): Add code to scan input
sections and record their lengths.  Use these lengths to find the
start of each merged .rsrc section.

* scripttempl/pe.sc (R_RSRC): Fix default-manifest exclusion.
(.rsrc): Add SUBALIGN(4).  Remove SORT.
* scripttempl/pep.sc: Likewise.
bfd/ChangeLog
bfd/peXXigen.c
ld/ChangeLog
ld/scripttempl/pe.sc
ld/scripttempl/pep.sc