aboutsummaryrefslogtreecommitdiff
path: root/bfd/peicode.h
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/peicode.h')
-rw-r--r--bfd/peicode.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/bfd/peicode.h b/bfd/peicode.h
index 3737a57..e7bab84 100644
--- a/bfd/peicode.h
+++ b/bfd/peicode.h
@@ -2106,6 +2106,9 @@ pe_mkobject_hook (abfd, filehdr, aouthdr)
if ((internal_f->f_flags & F_DLL) != 0)
pe->dll = 1;
+ if ((internal_f->f_flags & IMAGE_FILE_DEBUG_STRIPPED) == 0)
+ abfd->flags |= HAS_DEBUG;
+
#ifdef COFF_IMAGE_WITH_PE
if (aouthdr)
pe->pe_opthdr = ((struct internal_aouthdr *)aouthdr)->pe;