OSDN Git Service

PR binutils/13051
authornickc <nickc>
Tue, 11 Oct 2011 15:56:27 +0000 (15:56 +0000)
committernickc <nickc>
Tue, 11 Oct 2011 15:56:27 +0000 (15:56 +0000)
commitfe5d8bfd8d57183ec29aa0ee2c9c31b05c54774e
tree313546f7f3af1b5e719c0456878a5939abaa414b
parent785b1f063b760e99350ce298deb1beff05ea4188
PR binutils/13051
Fix a syntax error bug when compiling rc files with the VERSIONINFO resource
containing more than one language block inside a single StringFileInfo block.

* windint.h (rc_ver_stringtable): New structure definition.
(rc_ver_info): Use it.
* rcparse.y (verstringtable): New variable.
(verstringtables): New type.
(verstringtables:): New rule declaration.
(verblocks:): Use it.
* resrc.c (append_ver_stringtable): New function.
(append_ver_stringfileinfo): Update to use stringtables.
* windres.h (append_ver_stringfileinfo): Update declaration.
(append_ver_stringtable): New declaration.
* resrc.c (write_rc_versioninfo): Update to support multiple blocks.
* resbin.c (bin_to_res_version): Likewise.
(res_to_bin_versioninfo): Likewise.

* binutils-all\windres\version.rsd: Regenerate.
* binutils-all\windres\version_cat.rsd: Regenerate.
* binutils-all\windres\version_mlang.rc: Add new test.
* binutils-all\windres\version_mlang.rsd: Likewise.
binutils/ChangeLog
binutils/rcparse.y
binutils/resbin.c
binutils/resrc.c
binutils/testsuite/ChangeLog
binutils/testsuite/binutils-all/windres/version.rsd
binutils/testsuite/binutils-all/windres/version_cat.rsd
binutils/testsuite/binutils-all/windres/version_mlang.rc [new file with mode: 0644]
binutils/testsuite/binutils-all/windres/version_mlang.rsd [new file with mode: 0644]
binutils/windint.h
binutils/windres.h