diff options
author | Nick Clifton <nickc@redhat.com> | 2004-04-29 16:40:20 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2004-04-29 16:40:20 +0000 |
commit | 8a7140c38f21984c512ac97bcfa2f0d7417bdc27 (patch) | |
tree | 76e7acd4ab2d9c332be69e6b4cdb49984c2c57d2 /bfd/bfd.c | |
parent | e63bbc887e4d3f7cd78ed15a1fe478e0a9eb4f8e (diff) | |
download | gdb-8a7140c38f21984c512ac97bcfa2f0d7417bdc27.zip gdb-8a7140c38f21984c512ac97bcfa2f0d7417bdc27.tar.gz 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.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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); |