diff options
author | Ian Lance Taylor <ian@airs.com> | 1999-09-11 22:33:45 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1999-09-11 22:33:45 +0000 |
commit | 47cbba7b173c815c880d1e66cd3dd0ac003b389b (patch) | |
tree | af482310d57ba77e633874500eb8192198e46504 /bfd/peicode.h | |
parent | 9c00ddaf9ae870cea0b5e2fe92a699e926f9e420 (diff) | |
download | gdb-47cbba7b173c815c880d1e66cd3dd0ac003b389b.tar.gz |
1999-09-11 Donn Terry <donn@interix.com>
* coffcode.h (coff_mkobject_hook): If COFF_WITH_PE, set HAS_DEBUG
to the reverse of IMAGE_FILE_DEBUG_STRIPPED.
(coff_write_object_contents): Set IMAGE_FILE_DEBUG_STRIPPED if
there is no SEC_DEBUGGING section.
* peicode.h (pe_mkobject_hook): Set HAS_DEBUG to the reverse of
IMAGE_FILE_DEBUG_STRIPPED.
Diffstat (limited to 'bfd/peicode.h')
-rw-r--r-- | bfd/peicode.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bfd/peicode.h b/bfd/peicode.h index 3737a57f2b5..e7bab8492e1 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; |