summaryrefslogtreecommitdiff
path: root/bfd/peicode.h
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2005-02-14 11:20:37 +0000
committerNick Clifton <nickc@redhat.com>2005-02-14 11:20:37 +0000
commitcc9d1a0b3498776e8d4a4eb07b98d4ef3c6aecad (patch)
treed0c72e8085666324c2db732127cc0ceff249e326 /bfd/peicode.h
parente09381683b8dba5be520167a25dcff4e6c5989f5 (diff)
downloadbinutils-redhat-cc9d1a0b3498776e8d4a4eb07b98d4ef3c6aecad.tar.gz
PR binutils/716
* peicode.h (pe_bfd_copy_private_bfd_data): Copy the large address aware flag from the input bfd to the output bfd.
Diffstat (limited to 'bfd/peicode.h')
-rw-r--r--bfd/peicode.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/bfd/peicode.h b/bfd/peicode.h
index f72d3f5f70..8f4179351e 100644
--- a/bfd/peicode.h
+++ b/bfd/peicode.h
@@ -384,6 +384,14 @@ static bfd_boolean
pe_bfd_copy_private_bfd_data (ibfd, obfd)
bfd *ibfd, *obfd;
{
+ /* PR binutils/716: Copy the large address aware flag.
+ XXX: Should we be copying other flags or other fields in the pe_data()
+ structure ? */
+ if (pe_data (obfd) != NULL
+ && pe_data (ibfd) != NULL
+ && pe_data (ibfd)->real_flags & IMAGE_FILE_LARGE_ADDRESS_AWARE)
+ pe_data (obfd)->real_flags |= IMAGE_FILE_LARGE_ADDRESS_AWARE;
+
if (!_bfd_XX_bfd_copy_private_bfd_data_common (ibfd, obfd))
return FALSE;