mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-01 11:59:27 +08:00
bfd/
2009-04-27 H.J. Lu <hongjiu.lu@intel.com> * peXXigen.c (_bfd_XX_bfd_copy_private_bfd_data_common): Don't copy pe_opthdr. binutils/ 2009-04-27 H.J. Lu <hongjiu.lu@intel.com> * objcopy.c (copy_object): Copy pe_opthdr before changing PE parameters.
This commit is contained in:
@ -1491,6 +1491,11 @@ copy_object (bfd *ibfd, bfd *obfd)
|
||||
/* Set up PE parameters. */
|
||||
pe_data_type *pe = pe_data (obfd);
|
||||
|
||||
/* Copy PE parameters before changing them. */
|
||||
if (ibfd->xvec->flavour == bfd_target_coff_flavour
|
||||
&& bfd_pei_p (ibfd))
|
||||
pe->pe_opthdr = pe_data (ibfd)->pe_opthdr;
|
||||
|
||||
if (pe_file_alignment != (bfd_vma) -1)
|
||||
pe->pe_opthdr.FileAlignment = pe_file_alignment;
|
||||
else
|
||||
|
Reference in New Issue
Block a user