aboutsummaryrefslogtreecommitdiff
path: root/bfd/peicode.h
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/peicode.h')
-rw-r--r--bfd/peicode.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/bfd/peicode.h b/bfd/peicode.h
index b206829..9335507 100644
--- a/bfd/peicode.h
+++ b/bfd/peicode.h
@@ -1933,6 +1933,9 @@ pe_mkobject_hook (abfd, filehdr, aouthdr)
pe->real_flags = internal_f->f_flags;
+ if ((internal_f->f_flags & F_DLL) != 0)
+ pe->dll = 1;
+
#ifdef COFF_IMAGE_WITH_PE
if (aouthdr)
{
@@ -1960,7 +1963,8 @@ pe_bfd_copy_private_bfd_data (ibfd, obfd)
|| obfd->xvec->flavour != bfd_target_coff_flavour)
return true;
- pe_data(obfd)->pe_opthdr = pe_data (ibfd)->pe_opthdr;
+ pe_data (obfd)->pe_opthdr = pe_data (ibfd)->pe_opthdr;
+ pe_data (obfd)->dll = pe_data (ibfd)->dll;
return true;
}