This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] adjust NetWare support


Built as cross i686-novell-netware on i686-pc-linux-gnu. Testsuite run
with no unexpected failures.

2004-06-03 Jan Beulich <jbeulich@novell.com>

	* gas/config/tc-i386.c: Deal with LEX_QM the same way as with
LEX_AT.
	* gas/config/te-netware.h: New file.
	* gas/configure.in: Eliminate ill NetWare targets. Make generic
	NetWare target use proper emulation.
	* gas/Makefile.am: Eliminate reference to ill te-ppcnw.h, add
reference
	to new te-netware.h.

---
/home/jbeulich/src/binutils/mainline/2004-06-03.09.12/gas/config/tc-i386.c	2004-04-20
14:17:14.000000000 +0200
+++ 2004-06-03.09.12/gas/config/tc-i386.c	2004-06-03
10:22:33.663347560 +0200
@@ -182,15 +182,19 @@
 
 /* List of chars besides those in app.c:symbol_chars that can start
an
    operand.  Used to prevent the scrubber eating vital white-space. 
*/
+const char extra_symbol_chars[] = "*%-(["
 #ifdef LEX_AT
-const char extra_symbol_chars[] = "*%-(@[";
-#else
-const char extra_symbol_chars[] = "*%-([";
+	"@"
+#endif
+#ifdef LEX_QM
+	"?"
 #endif
+	;
 
 #if (defined (TE_I386AIX)				\
      || ((defined (OBJ_ELF) || defined (OBJ_MAYBE_ELF))	\
 	 && !defined (TE_LINUX)				\
+	 && !defined (TE_NETWARE)			\
 	 && !defined (TE_FreeBSD)			\
 	 && !defined (TE_NetBSD)))
 /* This array holds the chars that always start a comment.  If the
@@ -972,6 +979,10 @@
 #ifdef LEX_AT
     identifier_chars['@'] = '@';
 #endif
+#ifdef LEX_QM
+    identifier_chars['?'] = '?';
+    operand_chars['?'] = '?';
+#endif
     digit_chars['-'] = '-';
     identifier_chars['_'] = '_';
     identifier_chars['.'] = '.';
---
/home/jbeulich/src/binutils/mainline/2004-06-03.09.12/gas/config/te-netware.h	1970-01-01
01:00:00.000000000 +0100
+++ 2004-06-03.09.12/gas/config/te-netware.h	2004-04-01
08:52:42.000000000 +0200
@@ -0,0 +1,8 @@
+#define TE_NETWARE
+#define LOCAL_LABELS_FB 1
+
+#define LEX_AT (LEX_NAME|LEX_BEGIN_NAME) /* can have @'s inside labels
*/
+#define LEX_PCT (LEX_NAME|LEX_BEGIN_NAME) /* can have %'s inside
labels */
+#define LEX_QM (LEX_NAME|LEX_BEGIN_NAME) /* can have ?'s inside labels
*/
+
+#include "obj-format.h"
---
/home/jbeulich/src/binutils/mainline/2004-06-03.09.12/gas/configure	2004-05-17
21:50:15.000000000 +0200
+++ 2004-06-03.09.12/gas/configure	2004-06-03 10:15:02.563925096
+0200
@@ -4229,7 +4229,6 @@
       a29k-*-vxworks*)			fmt=coff ;;
 
       alpha*-*-*vms*)			fmt=evax ;;
-      alpha*-*-netware*)		fmt=ecoff ;;
       alpha*-*-osf*)			fmt=ecoff ;;
       alpha*-*-linuxecoff*)		fmt=ecoff ;;
       alpha*-*-linux-gnu*)		fmt=elf em=linux ;;
@@ -4490,7 +4489,6 @@
 	    fi ;;
       ppc-*-rtems*)			fmt=elf ;;
       ppc-*-macos*)			fmt=coff em=macos ;;
-      ppc-*-netware*)			fmt=elf em=ppcnw ;;
       ppc-*-nto*)			fmt=elf ;;
       ppc-*-kaos*)			fmt=elf ;;
       ppc-*-lynxos*)			fmt=elf em=lynx bfd_gas=yes ;;
@@ -4579,7 +4577,7 @@
       *-*-elf | *-*-sysv4* | *-*-solaris*) fmt=elf dev=yes ;;
       *-*-aros*)			fmt=elf em=linux bfd_gas=yes ;;
       *-*-vxworks | *-*-windiss)	fmt=elf ;;
-      *-*-netware)			fmt=elf ;;
+      *-*-netware)			fmt=elf em=netware ;;
     esac
 
     if test ${this_target} = $target ; then
---
/home/jbeulich/src/binutils/mainline/2004-06-03.09.12/gas/configure.in	2004-05-17
21:50:16.000000000 +0200
+++ 2004-06-03.09.12/gas/configure.in	2004-06-03 10:14:50.814711248
+0200
@@ -190,7 +190,6 @@
       a29k-*-vxworks*)			fmt=coff ;;
 
       alpha*-*-*vms*)			fmt=evax ;;
-      alpha*-*-netware*)		fmt=ecoff ;;
       alpha*-*-osf*)			fmt=ecoff ;;
       alpha*-*-linuxecoff*)		fmt=ecoff ;;
       alpha*-*-linux-gnu*)		fmt=elf em=linux ;;
@@ -434,7 +433,6 @@
 	    fi ;;
       ppc-*-rtems*)			fmt=elf ;;
       ppc-*-macos*)			fmt=coff em=macos ;;
-      ppc-*-netware*)			fmt=elf em=ppcnw ;;
       ppc-*-nto*)			fmt=elf ;;
       ppc-*-kaos*)			fmt=elf ;;
       ppc-*-lynxos*)			fmt=elf em=lynx bfd_gas=yes ;;
@@ -523,7 +521,7 @@
       *-*-elf | *-*-sysv4* | *-*-solaris*) fmt=elf dev=yes ;;
       *-*-aros*)			fmt=elf em=linux bfd_gas=yes ;;
       *-*-vxworks | *-*-windiss)	fmt=elf ;;
-      *-*-netware)			fmt=elf ;;
+      *-*-netware)			fmt=elf em=netware ;;
     esac
 
     if test ${this_target} = $target ; then
---
/home/jbeulich/src/binutils/mainline/2004-06-03.09.12/gas/Makefile.am	2004-06-02
16:36:18.000000000 +0200
+++ 2004-06-03.09.12/gas/Makefile.am	2004-06-03 10:12:49.675127264
+0200
@@ -391,9 +391,9 @@
 	config/te-macos.h \
 	config/te-nbsd.h \
 	config/te-nbsd532.h \
+	config/te-netware.h \
 	config/te-pc532mach.h \
 	config/te-pe.h \
-	config/te-ppcnw.h \
 	config/te-psos.h \
 	config/te-riscix.h \
 	config/te-sparcaout.h \
---
/home/jbeulich/src/binutils/mainline/2004-06-03.09.12/gas/Makefile.in	2004-06-02
16:36:18.000000000 +0200
+++ 2004-06-03.09.12/gas/Makefile.in	2004-06-03 10:12:49.684125896
+0200
@@ -618,9 +618,9 @@
 	config/te-macos.h \
 	config/te-nbsd.h \
 	config/te-nbsd532.h \
+	config/te-netware.h \
 	config/te-pc532mach.h \
 	config/te-pe.h \
-	config/te-ppcnw.h \
 	config/te-psos.h \
 	config/te-riscix.h \
 	config/te-sparcaout.h \


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]