summaryrefslogtreecommitdiff
path: root/bfd/coff-i386.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1999-09-07 02:59:17 +0000
committerIan Lance Taylor <ian@airs.com>1999-09-07 02:59:17 +0000
commit97867bc6f88af5d71a2180d8043b4222573d5aaa (patch)
treedd59b87855507486e8bf4c0a2b265ca8e0670def /bfd/coff-i386.c
parentddba2887105f307ea92a39c8c698cf91f8bcd2ad (diff)
downloadgdb-97867bc6f88af5d71a2180d8043b4222573d5aaa.tar.gz
* coff-i386.c (in_reloc_p): Add declaration.
(i386coff_vec): Simplify initialization of application_section_flags.
Diffstat (limited to 'bfd/coff-i386.c')
-rw-r--r--bfd/coff-i386.c23
1 files changed, 12 insertions, 11 deletions
diff --git a/bfd/coff-i386.c b/bfd/coff-i386.c
index e686b7b6cc5..f7eb1f517b0 100644
--- a/bfd/coff-i386.c
+++ b/bfd/coff-i386.c
@@ -156,16 +156,20 @@ coff_i386_reloc (abfd, reloc_entry, symbol, data, input_section, output_bfd,
}
#ifdef COFF_WITH_PE
-/* Return true if this relocation should
- appear in the output .reloc section. */
-static boolean in_reloc_p(abfd, howto)
- bfd * abfd ATTRIBUTE_UNUSED;
+/* Return true if this relocation should appear in the output .reloc
+ section. */
+
+static boolean in_reloc_p PARAMS ((bfd *, reloc_howto_type *));
+
+static boolean in_reloc_p (abfd, howto)
+ bfd *abfd ATTRIBUTE_UNUSED;
reloc_howto_type *howto;
{
return ! howto->pc_relative && howto->type != R_IMAGEBASE;
}
-#endif
+
+#endif /* COFF_WITH_PE */
#ifndef PCRELOFFSET
#define PCRELOFFSET false
@@ -606,14 +610,11 @@ const bfd_target
HAS_LINENO | HAS_DEBUG |
HAS_SYMS | HAS_LOCALS | WP_TEXT | D_PAGED),
-#ifndef COFF_WITH_PE
- (SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD | SEC_RELOC /* section flags */
- | SEC_CODE | SEC_DATA),
-#else
(SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD | SEC_RELOC /* section flags */
- | SEC_CODE | SEC_DATA
- | SEC_LINK_ONCE | SEC_LINK_DUPLICATES),
+#ifdef COFF_WITH_PE
+ | SEC_LINK_ONCE | SEC_LINK_DUPLICATES
#endif
+ | SEC_CODE | SEC_DATA),
#ifdef TARGET_UNDERSCORE
TARGET_UNDERSCORE, /* leading underscore */