When copying pe format files, copy the dos_message array, rather than re-initiialisin...
authorAndrew Eikum <aeikum@codeweavers.com>
Tue, 29 Oct 2019 17:07:03 +0000 (17:07 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 29 Oct 2019 17:07:03 +0000 (17:07 +0000)
commit70cf683455e1a3429d517a2e25a36c438474cfde
tree4782e9620123c07950dfda5c2992a14ca5e05d7e
parentefea62b44631289f995db16faf70979d6592580b
When copying pe format files, copy the dos_message array, rather than re-initiialising it.

* libcoff-in.h (struct pe_tdata): Add dos_message field.
* libcoff.h: Regenerate.
* peXXigen.c (_bfd_XXi_only_swap_filehdr_out): Copy the
dos_message field rather than initialising it.
(_bfd_XX_bfd_copy_private_bfd_data_common): Copy the dos_message
field.
* peicode.h (pe_mkobject): Initialise the dos_message field.
(pe_mkobject_hook): Copy the dos_message field.
(pe_bfd_object_p): Copy the dos_message field.
bfd/ChangeLog
bfd/libcoff-in.h
bfd/libcoff.h
bfd/peXXigen.c
bfd/peicode.h