aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1997-10-15 20:34:26 +0000
committerIan Lance Taylor <ian@airs.com>1997-10-15 20:34:26 +0000
commitfc1213aa0b9cba08554b822f38d6d3ddca458fa9 (patch)
tree6f2dd4a505da84b3116b9dc43e729f940b3cf669
parent899f620488b1db7a2a8fb118f5aef7a33fea99a4 (diff)
downloadgdb-fc1213aa0b9cba08554b822f38d6d3ddca458fa9.zip
gdb-fc1213aa0b9cba08554b822f38d6d3ddca458fa9.tar.gz
gdb-fc1213aa0b9cba08554b822f38d6d3ddca458fa9.tar.bz2
* peicode.h (pe_mkobject_hook): Set DLL flag.
(pe_bfd_copy_private_bfd_data): Copy DLL flag.
-rw-r--r--bfd/ChangeLog3
-rw-r--r--bfd/peicode.h6
2 files changed, 8 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 5e26656..9a2155e 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,8 @@
Wed Oct 15 13:45:10 1997 Ian Lance Taylor <ian@cygnus.com>
+ * peicode.h (pe_mkobject_hook): Set DLL flag.
+ (pe_bfd_copy_private_bfd_data): Copy DLL flag.
+
* peicode.h (coff_swap_scnhdr_out): Set IMAGE_SCN_MEM_DISCARDABLE
for .stab* sections. Replace strlen of constant strings with
number.
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;
}