Improve .rsrc section merging with better handling of the alignment adjustments
authorNick Clifton <nickc@redhat.com>
Wed, 19 Mar 2014 08:51:20 +0000 (08:51 +0000)
committerNick Clifton <nickc@redhat.com>
Wed, 19 Mar 2014 08:51:20 +0000 (08:51 +0000)
commit1d63324c56f29034782396ce7f25c09edd0cdc6e
tree586816f37f7e0ab39b228af4006804e408bf824f
parent0172b6a7deca953ff33b4458da2f4e666bee7e51
Improve .rsrc section merging with better handling of the alignment adjustments
made between merged .rsrc sections.

* peXXigen.c (rsrc_align): New function.  Attempts to cope with
alignment variances when .rsrc sections are merged.
(rsrc_process_section): Use rsrc_align.

* Makefile.am (default-manifest.o): Use WINDRES_FOR_TARGET.
* Makefile.in: Regenerate.
* emultempl/default-manifest.rc: Fix typo.
* scripttempl/pe.sc (R_RSRC): Fix default-manifest exclusion.
(.rsrc): Add SUBALIGN(4).
* scripttempl/pep.sc: Likewise.
bfd/ChangeLog
bfd/peXXigen.c
ld/ChangeLog
ld/Makefile.am
ld/Makefile.in
ld/emultempl/default-manifest.rc
ld/scripttempl/pe.sc
ld/scripttempl/pep.sc
sim/arm/ChangeLog