summaryrefslogtreecommitdiff
path: root/bfd/pei-i386.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
commitafb831ec020046fb435b5ae0bff638dd5a97e40e (patch)
treeb904d4db6f62813343d6e55f2a09735e268c5434 /bfd/pei-i386.c
parent00ef249e28db4e60f6a6272c18d79bf53de0a18e (diff)
downloadgdb-afb831ec020046fb435b5ae0bff638dd5a97e40e.tar.gz
Add support for generating DWARF2 debug sections in the x86 PE port
Diffstat (limited to 'bfd/pei-i386.c')
-rw-r--r--bfd/pei-i386.c17
1 files changed, 11 insertions, 6 deletions
diff --git a/bfd/pei-i386.c b/bfd/pei-i386.c
index 63a63a84839..4a59f143ad0 100644
--- a/bfd/pei-i386.c
+++ b/bfd/pei-i386.c
@@ -1,5 +1,5 @@
/* BFD back-end for Intel 386 PE IMAGE COFF files.
- Copyright 1995, 1996, 1999, 2002 Free Software Foundation, Inc.
+ Copyright 1995, 1996, 1999, 2002, 2004 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
@@ -20,13 +20,14 @@
#include "bfd.h"
#include "sysdep.h"
-#define TARGET_SYM i386pei_vec
-#define TARGET_NAME "pei-i386"
+#define TARGET_SYM i386pei_vec
+#define TARGET_NAME "pei-i386"
#define COFF_IMAGE_WITH_PE
#define COFF_WITH_PE
-#define PCRELOFFSET TRUE
-#define TARGET_UNDERSCORE '_'
+#define PCRELOFFSET TRUE
+#define TARGET_UNDERSCORE '_'
#define COFF_LONG_SECTION_NAMES
+#define COFF_SUPPORT_GNU_LINKONCE
#define COFF_LONG_FILENAMES
#define COFF_SECTION_ALIGNMENT_ENTRIES \
@@ -39,6 +40,10 @@
{ COFF_SECTION_NAME_PARTIAL_MATCH (".idata"), \
COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 2 }, \
{ COFF_SECTION_NAME_EXACT_MATCH (".pdata"), \
- COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 2 }
+ COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 2 }, \
+{ COFF_SECTION_NAME_PARTIAL_MATCH (".debug"), \
+ COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 0 }, \
+{ COFF_SECTION_NAME_PARTIAL_MATCH (".gnu.linkonce.wi."), \
+ COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 0 }
#include "coff-i386.c"