* configure.tgt (i386-*-gnu*): Set em=gnu.
authorAlan Modra <amodra@gmail.com>
Wed, 16 Nov 2005 03:44:10 +0000 (03:44 +0000)
committerAlan Modra <amodra@gmail.com>
Wed, 16 Nov 2005 03:44:10 +0000 (03:44 +0000)
* config/te-gnu.h: New file.
* config/tc-i386.c: Don't use '/' as comment char for TE_GNU.

gas/ChangeLog
gas/config/tc-i386.c
gas/config/te-gnu.h [new file with mode: 0644]
gas/configure.tgt

index 20259b753ae2bc9a7ea9efe31801997e7544ca2a..285d8ff19b1d90030ee8511ff8560b9efbb604a9 100644 (file)
@@ -1,3 +1,9 @@
+2005-11-16  Alan Modra  <amodra@bigpond.net.au>
+
+       * configure.tgt (i386-*-gnu*): Set em=gnu.
+       * config/te-gnu.h: New file.
+       * config/tc-i386.c: Don't use '/' as comment char for TE_GNU.
+
 2005-11-16  Alan Modra  <amodra@bigpond.net.au>
 
        * config/tc-ppc.c (ppc_pe_comm): Set bfd_com_section segment.
index bf7a7b05d04622c96556b0f3aed8e6fa818d7a54..1828c481de08dd4be80f22ab730b4f3adc84b06b 100644 (file)
@@ -198,6 +198,7 @@ const char extra_symbol_chars[] = "*%-(["
 
 #if (defined (TE_I386AIX)                              \
      || ((defined (OBJ_ELF) || defined (OBJ_MAYBE_ELF))        \
+        && !defined (TE_GNU)                           \
         && !defined (TE_LINUX)                         \
         && !defined (TE_NETWARE)                       \
         && !defined (TE_FreeBSD)                       \
diff --git a/gas/config/te-gnu.h b/gas/config/te-gnu.h
new file mode 100644 (file)
index 0000000..1d1d442
--- /dev/null
@@ -0,0 +1,4 @@
+#define TE_GNU
+#define LOCAL_LABELS_FB 1
+
+#include "obj-format.h"
index 28a44bbdafd986e114ce03f2e41ba352655b6c1b..ce4656124547fbf8835faba22d6eb52066911310 100644 (file)
@@ -202,7 +202,7 @@ case ${generic_target} in
   i386-*-msdosdjgpp* \
   | i386-*-go32*)                      fmt=coff em=go32 ;;
   i386-*-rtems*)                       fmt=elf ;;
-  i386-*-gnu*)                         fmt=elf ;;
+  i386-*-gnu*)                         fmt=elf em=gnu ;;
   i386-*-mach*)                                fmt=aout em=mach ;;
   i386-*-msdos*)                       fmt=aout ;;
   i386-*-moss*)                                fmt=elf ;;