* coff-i386.c (in_reloc_p): Add declaration.

(i386coff_vec): Simplify initialization of
	application_section_flags.
This commit is contained in:
Ian Lance Taylor 1999-09-07 02:59:17 +00:00
parent 2820a0b713
commit 6fb72d08dc

View file

@ -156,8 +156,11 @@ coff_i386_reloc (abfd, reloc_entry, symbol, data, input_section, output_bfd,
} }
#ifdef COFF_WITH_PE #ifdef COFF_WITH_PE
/* Return true if this relocation should
appear in the output .reloc section. */ /* 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) static boolean in_reloc_p (abfd, howto)
bfd *abfd ATTRIBUTE_UNUSED; bfd *abfd ATTRIBUTE_UNUSED;
@ -165,7 +168,8 @@ static boolean in_reloc_p(abfd, howto)
{ {
return ! howto->pc_relative && howto->type != R_IMAGEBASE; return ! howto->pc_relative && howto->type != R_IMAGEBASE;
} }
#endif
#endif /* COFF_WITH_PE */
#ifndef PCRELOFFSET #ifndef PCRELOFFSET
#define PCRELOFFSET false #define PCRELOFFSET false
@ -606,14 +610,11 @@ const bfd_target
HAS_LINENO | HAS_DEBUG | HAS_LINENO | HAS_DEBUG |
HAS_SYMS | HAS_LOCALS | WP_TEXT | D_PAGED), HAS_SYMS | HAS_LOCALS | WP_TEXT | D_PAGED),
#ifndef COFF_WITH_PE
(SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD | SEC_RELOC /* section flags */ (SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD | SEC_RELOC /* section flags */
| SEC_CODE | SEC_DATA), #ifdef COFF_WITH_PE
#else | SEC_LINK_ONCE | SEC_LINK_DUPLICATES
(SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD | SEC_RELOC /* section flags */
| SEC_CODE | SEC_DATA
| SEC_LINK_ONCE | SEC_LINK_DUPLICATES),
#endif #endif
| SEC_CODE | SEC_DATA),
#ifdef TARGET_UNDERSCORE #ifdef TARGET_UNDERSCORE
TARGET_UNDERSCORE, /* leading underscore */ TARGET_UNDERSCORE, /* leading underscore */