This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[PATCH] enable linux-vax support
- From: Dave Airlie <airlied at linux dot ie>
- To: binutils at sources dot redhat dot com
- Cc: Matt Thomas <matt at 3am-software dot com>
- Date: Fri, 28 Nov 2003 06:28:24 +0000 (GMT)
- Subject: [PATCH] enable linux-vax support
Hi,
This is a patch that switches on linux-vax support in binutils,
there are no major changes requried apart from some config and one patch
to gas (for a SYSV option that gcc pass to binutils on Linux)..
Dave.
Index: bfd/config.bfd
===================================================================
RCS file: /cvs/src/src/bfd/config.bfd,v
retrieving revision 1.148
diff -u -r1.148 config.bfd
--- bfd/config.bfd 30 Oct 2003 09:05:14 -0000 1.148
+++ bfd/config.bfd 28 Nov 2003 06:23:12 -0000
@@ -1229,6 +1229,10 @@
targ_underscore=yes
;;
+ vax-*-linux-gnu*)
+ targ_defvec=bfd_elf32_vax_vec
+ ;;
+
vax*-*-*vms*)
targ_defvec=vms_vax_vec
;;
Index: bfd/configure.in
===================================================================
RCS file: /cvs/src/src/bfd/configure.in,v
retrieving revision 1.139
diff -u -r1.139 configure.in
--- bfd/configure.in 6 Oct 2003 09:12:39 -0000 1.139
+++ bfd/configure.in 28 Nov 2003 06:23:12 -0000
@@ -397,6 +397,10 @@
COREFILE=trad-core.lo
TRAD_HEADER='"hosts/vaxult2.h"'
;;
+ vax-*-linux-gnu*)
+ COREFILE=trad-core.lo
+ TRAD_HEADER='"hosts/vaxlinux.h"'
+ ;;
vax-*-*)
COREFILE=trad-core.lo
TRAD_HEADER='"hosts/vaxbsd.h"'
Index: gas/configure
===================================================================
RCS file: /cvs/src/src/gas/configure,v
retrieving revision 1.159
diff -u -r1.159 configure
--- gas/configure 11 Nov 2003 12:05:07 -0000 1.159
+++ gas/configure 28 Nov 2003 06:23:15 -0000
@@ -4343,6 +4343,7 @@
vax-*-netbsdelf*) fmt=elf em=nbsd ;;
vax-*-netbsd*) fmt=aout em=nbsd ;;
vax-*-bsd* | vax-*-ultrix*) fmt=aout ;;
+ vax-*-linux-gnu*) fmt=elf em=linux bfd_gas=yes ;;
vax-*-vms) fmt=vms ;;
w65-*-*) fmt=coff ;;
Index: gas/configure.in
===================================================================
RCS file: /cvs/src/src/gas/configure.in,v
retrieving revision 1.144
diff -u -r1.144 configure.in
--- gas/configure.in 11 Nov 2003 12:05:08 -0000 1.144
+++ gas/configure.in 28 Nov 2003 06:23:15 -0000
@@ -491,6 +491,7 @@
vax-*-netbsdelf*) fmt=elf em=nbsd ;;
vax-*-netbsd*) fmt=aout em=nbsd ;;
vax-*-bsd* | vax-*-ultrix*) fmt=aout ;;
+ vax-*-linux-gnu*) fmt=elf em=linux bfd_gas=yes ;;
vax-*-vms) fmt=vms ;;
w65-*-*) fmt=coff ;;
Index: gas/config/tc-vax.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-vax.c,v
retrieving revision 1.18
diff -u -r1.18 tc-vax.c
--- gas/config/tc-vax.c 22 Nov 2003 15:32:28 -0000 1.18
+++ gas/config/tc-vax.c 28 Nov 2003 06:23:16 -0000
@@ -3257,7 +3257,7 @@
#ifdef OBJ_VMS
const char *md_shortopts = "d:STt:V+1h:Hv::";
#elif defined(OBJ_ELF)
-const char *md_shortopts = "d:STt:VkK";
+const char *md_shortopts = "d:STt:VkKQ:";
#else
const char *md_shortopts = "d:STt:V";
#endif
@@ -3333,6 +3333,12 @@
case 'k':
flag_want_pic = 1;
break; /* -pic, Position Independent Code */
+
+ /* -Qy, -Qn: SVR4 arguments controlling whether a .comment section
+ should be emitted or not. FIXME: Not implemented. */
+ case 'Q':
+ break;
+
#endif
default:
Index: ld/configure.tgt
===================================================================
RCS file: /cvs/src/src/ld/configure.tgt,v
retrieving revision 1.140
diff -u -r1.140 configure.tgt
--- ld/configure.tgt 30 Oct 2003 09:47:14 -0000 1.140
+++ ld/configure.tgt 28 Nov 2003 06:23:17 -0000
@@ -390,6 +390,7 @@
vax-*-netbsdaout* | vax-*-netbsd*)
targ_emul=vaxnbsd
targ_extra_emuls=elf32vax ;;
+vax-*-linux-gnu*) targ_emul=elf32vax ;;
mips*-*-pe) targ_emul=mipspe ;
targ_extra_ofiles="deffilep.o pe-dll.o" ;;
mips*-dec-ultrix*) targ_emul=mipslit ;;