vax ELF bits for binutils 2.17.
authormiod <miod@openbsd.org>
Mon, 25 May 2015 12:42:54 +0000 (12:42 +0000)
committermiod <miod@openbsd.org>
Mon, 25 May 2015 12:42:54 +0000 (12:42 +0000)
gnu/usr.bin/binutils-2.17/bfd/config.bfd
gnu/usr.bin/binutils-2.17/configure
gnu/usr.bin/binutils-2.17/configure.in
gnu/usr.bin/binutils-2.17/gas/configure.tgt
gnu/usr.bin/binutils-2.17/ld/Makefile.am
gnu/usr.bin/binutils-2.17/ld/Makefile.in
gnu/usr.bin/binutils-2.17/ld/configure.tgt
gnu/usr.bin/binutils-2.17/ld/emulparams/elf32vax_obsd.sh [new file with mode: 0644]

index 278e1c3..53d0f23 100644 (file)
@@ -1374,8 +1374,8 @@ case "${targ}" in
     ;;
 
   vax-*-openbsd*)
-    targ_defvec=vaxnetbsd_vec
-    targ_underscore=yes
+    targ_defvec=elf32_vax_vec
+    targ_selvecs=vaxnetbsd_vec
     ;;
 
   vax-*-linux-*)
index 86317e1..ba999a3 100755 (executable)
@@ -7211,6 +7211,7 @@ MAINT=$MAINTAINER_MODE_TRUE
 # Stage specific cflags for build.
 stage1_cflags="-g"
 case $build in
+  vax-*-openbsd*) ;;
   vax-*-*)
     case ${GCC} in
       yes) stage1_cflags="-g -Wa,-J" ;;
index 8651833..3cf10f0 100644 (file)
@@ -2364,6 +2364,7 @@ AC_SUBST(MAINT)dnl
 # Stage specific cflags for build.
 stage1_cflags="-g"
 case $build in
+  vax-*-openbsd*) ;;
   vax-*-*)
     case ${GCC} in
       yes) stage1_cflags="-g -Wa,-J" ;;
index 411a511..80f3dbd 100644 (file)
@@ -374,7 +374,7 @@ case ${generic_target} in
   v850e-*-*)                           fmt=elf ;;
   v850ea-*-*)                          fmt=elf ;;
 
-  vax-*-netbsdelf*)                    fmt=elf em=nbsd ;;
+  vax-*-netbsdelf* | vax-*-openbsd*)   fmt=elf em=nbsd ;;
   vax-*-linux-*)                       fmt=elf em=linux ;;
 
   xscale-*-coff)                       fmt=coff ;;
index 5ab2d1d..453f4cb 100644 (file)
@@ -191,6 +191,7 @@ ALL_EMULATIONS = \
        eelf32ppcwindiss.o \
        eelf32ppcvxworks.o \
        eelf32vax.o \
+       eelf32vax_obsd.o \
         eelf32xc16x.o \
         eelf32xc16xl.o \
         eelf32xc16xs.o \
@@ -684,6 +685,9 @@ eelf32am33lin.c: $(srcdir)/emulparams/elf32am33lin.sh \
 eelf32vax.c: $(srcdir)/emulparams/elf32vax.sh \
   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
        ${GENSCRIPTS} elf32vax "$(tdir_elf32vax)"
+eelf32vax_obsd.c: $(srcdir)/emulparams/elf32vax_obsd.sh \
+  $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
+       ${GENSCRIPTS} elf32vax_obsd "$(tdir_elf32vax_obsd)"
 eelf32xtensa.c: $(srcdir)/emulparams/elf32xtensa.sh \
   $(srcdir)/emulparams/xtensa-config.sh $(srcdir)/emultempl/elf32.em \
   $(srcdir)/emultempl/xtensaelf.em $(INCDIR)/xtensa-config.h \
index fda8503..27a16e8 100644 (file)
@@ -415,6 +415,7 @@ ALL_EMULATIONS = \
        eelf32ppcwindiss.o \
        eelf32ppcvxworks.o \
        eelf32vax.o \
+       eelf32vax_obsd.o \
         eelf32xc16x.o \
         eelf32xc16xl.o \
         eelf32xc16xs.o \
@@ -1478,6 +1479,9 @@ eelf32am33lin.c: $(srcdir)/emulparams/elf32am33lin.sh \
 eelf32vax.c: $(srcdir)/emulparams/elf32vax.sh \
   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
        ${GENSCRIPTS} elf32vax "$(tdir_elf32vax)"
+eelf32vax_obsd.c: $(srcdir)/emulparams/elf32vax_obsd.sh \
+  $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
+       ${GENSCRIPTS} elf32vax_obsd "$(tdir_elf32vax_obsd)"
 eelf32xtensa.c: $(srcdir)/emulparams/elf32xtensa.sh \
   $(srcdir)/emulparams/xtensa-config.sh $(srcdir)/emultempl/elf32.em \
   $(srcdir)/emultempl/xtensaelf.em $(INCDIR)/xtensa-config.h \
index bf1795f..e250321 100644 (file)
@@ -582,6 +582,8 @@ vax-*-netbsdelf*)   targ_emul=elf32vax
 vax-*-netbsdaout* | vax-*-netbsd*)
                        targ_emul=vaxnbsd
                        targ_extra_emuls=elf32vax ;;
+vax-*-openbsd*)                targ_emul=elf32vax_obsd
+                       targ_extra_emuls=vaxnbsd ;;
 vax-*-linux-*)         targ_emul=elf32vax
                        ;;
 w65-*-*)               targ_emul=w65
diff --git a/gnu/usr.bin/binutils-2.17/ld/emulparams/elf32vax_obsd.sh b/gnu/usr.bin/binutils-2.17/ld/emulparams/elf32vax_obsd.sh
new file mode 100644 (file)
index 0000000..996426e
--- /dev/null
@@ -0,0 +1,2 @@
+. ${srcdir}/emulparams/elf32vax.sh
+. ${srcdir}/emulparams/elf_obsd.sh