aboutsummaryrefslogtreecommitdiff
path: root/bfd/coffcode.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1999-09-11 23:46:09 +0000
committerIan Lance Taylor <ian@airs.com>1999-09-11 23:46:09 +0000
commit0717ebb78071ba63f55a5bbb40f27f74200a9a7f (patch)
tree0b4228d6a61cbf6fa09741cb3b75092c00765241 /bfd/coffcode.h
parent650f5dd8d8ac6792db26b94ff238754be33e2276 (diff)
downloadgdb-0717ebb78071ba63f55a5bbb40f27f74200a9a7f.zip
gdb-0717ebb78071ba63f55a5bbb40f27f74200a9a7f.tar.gz
gdb-0717ebb78071ba63f55a5bbb40f27f74200a9a7f.tar.bz2
1999-09-11 Donn Terry <donn@interix.com>
* config.bfd (i[3456]86-*-interix*): Set targ_cflags to -DSTRICT_PE_FORMAT. * coffcode.h (styp_to_sec_flags): Check STRICT_PE_FORMAT rather than __INTERIX. (coff_classify_symbol): Re-revert 1999-08-08 patch if STRICT_PE_FORMAT.
Diffstat (limited to 'bfd/coffcode.h')
-rw-r--r--bfd/coffcode.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/bfd/coffcode.h b/bfd/coffcode.h
index dfedf23..f48886e 100644
--- a/bfd/coffcode.h
+++ b/bfd/coffcode.h
@@ -827,8 +827,7 @@ styp_to_sec_flags (abfd, hdr, name, section)
switch (aux.x_scn.x_comdat)
{
case IMAGE_COMDAT_SELECT_NODUPLICATES:
-/* FIXME: This is bogus. It breaks cross-compilers. */
-#ifdef __INTERIX
+#ifdef STRICT_PE_FORMAT
sec_flags |= SEC_LINK_DUPLICATES_ONE_ONLY;
#else
sec_flags &= ~SEC_LINK_ONCE;
@@ -849,8 +848,7 @@ styp_to_sec_flags (abfd, hdr, name, section)
break;
case IMAGE_COMDAT_SELECT_ASSOCIATIVE:
-/* FIXME: This is bogus. It breaks cross-compilers. */
-#ifdef __INTERIX
+#ifdef STRICT_PE_FORMAT
/* FIXME: This is not currently implemented. */
sec_flags |= SEC_LINK_DUPLICATES_DISCARD;
#else
@@ -4265,7 +4263,7 @@ coff_classify_symbol (abfd, syment)
return COFF_SYMBOL_LOCAL;
}
-#if 0
+#ifdef STRICT_PE_FORMAT
/* This is correct for Microsoft generated objects, but it
breaks gas generated objects. */