aboutsummaryrefslogtreecommitdiff
path: root/bfd/bfd.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2004-04-29 16:40:20 +0000
committerNick Clifton <nickc@redhat.com>2004-04-29 16:40:20 +0000
commit8a7140c38f21984c512ac97bcfa2f0d7417bdc27 (patch)
tree76e7acd4ab2d9c332be69e6b4cdb49984c2c57d2 /bfd/bfd.c
parente63bbc887e4d3f7cd78ed15a1fe478e0a9eb4f8e (diff)
downloadfsf-binutils-gdb-8a7140c38f21984c512ac97bcfa2f0d7417bdc27.zip
fsf-binutils-gdb-8a7140c38f21984c512ac97bcfa2f0d7417bdc27.tar.gz
fsf-binutils-gdb-8a7140c38f21984c512ac97bcfa2f0d7417bdc27.tar.bz2
Add support for generating DWARF2 debug sections in the x86 PE port
Diffstat (limited to 'bfd/bfd.c')
-rw-r--r--bfd/bfd.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/bfd/bfd.c b/bfd/bfd.c
index c8a60f2..199ed1a 100644
--- a/bfd/bfd.c
+++ b/bfd/bfd.c
@@ -1,6 +1,6 @@
/* Generic BFD library interface and support routines.
Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
- 2000, 2001, 2002, 2003
+ 2000, 2001, 2002, 2003, 2004
Free Software Foundation, Inc.
Written by Cygnus Support.
@@ -765,12 +765,14 @@ bfd_get_sign_extend_vma (bfd *abfd)
name = bfd_get_target (abfd);
- /* Return a proper value for DJGPP COFF (an x86 COFF variant).
+ /* Return a proper value for DJGPP & PE COFF (x86 COFF variants).
This function is required for DWARF2 support, but there is
no place to store this information in the COFF back end.
Should enough other COFF targets add support for DWARF2,
a place will have to be found. Until then, this hack will do. */
- if (strncmp (name, "coff-go32", sizeof ("coff-go32") - 1) == 0)
+ if (strncmp (name, "coff-go32", sizeof ("coff-go32") - 1) == 0
+ || strcmp (name, "pe-i386") == 0
+ || strcmp (name, "pei-i386") == 0)
return 1;
bfd_set_error (bfd_error_wrong_format);