summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2004-02-10 22:28:06 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2004-02-10 22:28:06 +0000
commitab7d0333e819e72e85f05a1bedf042e57ed9457a (patch)
treed487fd97212f45011a8367028985f9c182536eb4
parent23beb109bf5eb80dacbbd5761f8cb2fef42807d3 (diff)
configs for amd64; brad@ ok
-rw-r--r--gnu/usr.bin/binutils/Makefile.bsd-wrapper6
-rw-r--r--gnu/usr.bin/binutils/bfd/config.bfd4
-rw-r--r--gnu/usr.bin/binutils/config.guess3
-rw-r--r--gnu/usr.bin/binutils/configure.in3
-rw-r--r--gnu/usr.bin/binutils/gas/configure1
-rw-r--r--gnu/usr.bin/binutils/gas/configure.in1
-rw-r--r--gnu/usr.bin/binutils/ld/configure.tgt4
-rw-r--r--gnu/usr.bin/binutils/ld/emulparams/elf_x86_64.sh8
8 files changed, 27 insertions, 3 deletions
diff --git a/gnu/usr.bin/binutils/Makefile.bsd-wrapper b/gnu/usr.bin/binutils/Makefile.bsd-wrapper
index 1a410e98028..d61596035ab 100644
--- a/gnu/usr.bin/binutils/Makefile.bsd-wrapper
+++ b/gnu/usr.bin/binutils/Makefile.bsd-wrapper
@@ -1,6 +1,6 @@
-# $OpenBSD: Makefile.bsd-wrapper,v 1.52 2004/01/13 03:43:40 mickey Exp $
+# $OpenBSD: Makefile.bsd-wrapper,v 1.53 2004/02/10 22:28:04 mickey Exp $
-NEW_BINUTILS=alpha hppa i386 mips powerpc sparc sparc64
+NEW_BINUTILS=alpha hppa i386 mips powerpc sparc sparc64 x86_64
SUBDIRS= opcodes bfd
ALL_X11_MODULES=
@@ -16,7 +16,7 @@ MANDIR=${PREFIX}/share/man/cat
MAN= binutils/objdump.1 c++filt.1
-.if (${MACHINE_ARCH} != "unknown")
+.if (${MACHINE_ARCH} != "unknown") && (${MACHINE_ARCH} != "x86_64")
SUBDIRS+= gdb mmalloc
MAN+= gdb/gdb.1
ALL_X11_MODULES+=all-gdb
diff --git a/gnu/usr.bin/binutils/bfd/config.bfd b/gnu/usr.bin/binutils/bfd/config.bfd
index da1d5c1c074..19caea3a7d5 100644
--- a/gnu/usr.bin/binutils/bfd/config.bfd
+++ b/gnu/usr.bin/binutils/bfd/config.bfd
@@ -374,6 +374,10 @@ case "${targ}" in
targ_defvec=bfd_elf64_x86_64_vec
targ_selvecs="bfd_elf32_i386_vec i386coff_vec bfd_efi_app_ia32_vec"
;;
+ x86_64-*-openbsd*)
+ targ_defvec=bfd_elf64_x86_64_vec
+ targ_selvecs="bfd_elf32_i386_vec i386coff_vec bfd_efi_app_ia32_vec"
+ ;;
x86_64-*-linux-gnu*)
targ_defvec=bfd_elf64_x86_64_vec
targ_selvecs="bfd_elf32_i386_vec i386linux_vec bfd_efi_app_ia32_vec"
diff --git a/gnu/usr.bin/binutils/config.guess b/gnu/usr.bin/binutils/config.guess
index b6b10eac6df..0fe4003a3c1 100644
--- a/gnu/usr.bin/binutils/config.guess
+++ b/gnu/usr.bin/binutils/config.guess
@@ -248,6 +248,9 @@ EOF
*:[Aa]miga[Oo][Ss]:*:*)
echo ${UNAME_MACHINE}-unknown-amigaos
exit 0 ;;
+ amd64:OpenBSD:*:*)
+ echo x86_64-unknown-openbsd${UNAME_RELEASE}
+ exit 0 ;;
arc64:OpenBSD:*:*)
echo mips64el-unknown-openbsd${UNAME_RELEASE}
exit 0 ;;
diff --git a/gnu/usr.bin/binutils/configure.in b/gnu/usr.bin/binutils/configure.in
index b51e4d7c393..41399845250 100644
--- a/gnu/usr.bin/binutils/configure.in
+++ b/gnu/usr.bin/binutils/configure.in
@@ -919,6 +919,9 @@ case "${target}" in
vax-*-*)
noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libffi"
;;
+ x86_64-*-openbsd*)
+ noconfigdirs="$noconfigdirs gdb"
+ ;;
*-*-lynxos*)
noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libffi"
;;
diff --git a/gnu/usr.bin/binutils/gas/configure b/gnu/usr.bin/binutils/gas/configure
index 1c7bd2a2dc4..8ddcb54a384 100644
--- a/gnu/usr.bin/binutils/gas/configure
+++ b/gnu/usr.bin/binutils/gas/configure
@@ -2349,6 +2349,7 @@ for this_target in $target $canon_targets ; do
i386-*-netbsd0.8) fmt=aout em=386bsd ;;
i386-*-netbsd*) fmt=aout em=nbsd bfd_gas=yes;;
i386-*-openbsd*) fmt=elf em=nbsd;;
+ x86_64-*-openbsd*) fmt=elf em=nbsd;;
i386-*-linux*aout* | i386-*-linux*oldld) fmt=aout em=linux ;;
i386-*-linux*coff*) fmt=coff em=linux ;;
i386-*-linux-gnu*) fmt=elf em=linux bfd_gas=yes ;;
diff --git a/gnu/usr.bin/binutils/gas/configure.in b/gnu/usr.bin/binutils/gas/configure.in
index 04d25159ec8..a2f39a5152a 100644
--- a/gnu/usr.bin/binutils/gas/configure.in
+++ b/gnu/usr.bin/binutils/gas/configure.in
@@ -244,6 +244,7 @@ changequote([,])dnl
i386-*-netbsd0.8) fmt=aout em=386bsd ;;
i386-*-netbsd*) fmt=aout em=nbsd bfd_gas=yes;;
i386-*-openbsd*) fmt=elf em=nbsd;;
+ x86_64-*-openbsd*) fmt=elf em=nbsd;;
i386-*-linux*aout* | i386-*-linux*oldld) fmt=aout em=linux ;;
i386-*-linux*coff*) fmt=coff em=linux ;;
i386-*-linux-gnu*) fmt=elf em=linux bfd_gas=yes ;;
diff --git a/gnu/usr.bin/binutils/ld/configure.tgt b/gnu/usr.bin/binutils/ld/configure.tgt
index 1a04f96b28c..d48563c117a 100644
--- a/gnu/usr.bin/binutils/ld/configure.tgt
+++ b/gnu/usr.bin/binutils/ld/configure.tgt
@@ -148,6 +148,10 @@ i[3456]86-*-unixware) targ_emul=elf_i386 ;;
i[3456]86-*-solaris*) targ_emul=elf_i386 ;;
i[3456]86-*-netbsd*) targ_emul=i386nbsd ;;
i[3456]86-*-openbsd*) targ_emul=elf_i386 ;;
+x86_64-*-openbsd*) targ_emul=elf_x86_64
+ targ_extra_emuls=elf_i386
+ tdir_elf_i386=`echo ${targ_alias} | sed -e 's/x86_64/i386/'`
+ ;;
i[3456]86-*-netware) targ_emul=i386nw ;;
i[3456]86-*-elf*) targ_emul=elf_i386 ;;
i[3456]86-*-freebsdaout* | i[3456]86-*-freebsd[12].* | i[3456]86-*-freebsd[12])
diff --git a/gnu/usr.bin/binutils/ld/emulparams/elf_x86_64.sh b/gnu/usr.bin/binutils/ld/emulparams/elf_x86_64.sh
index 635748f6388..8a5a4b22df3 100644
--- a/gnu/usr.bin/binutils/ld/emulparams/elf_x86_64.sh
+++ b/gnu/usr.bin/binutils/ld/emulparams/elf_x86_64.sh
@@ -7,5 +7,13 @@ NONPAGED_TEXT_START_ADDR=0x400000
ARCH=i386
MACHINE=
NOP=0x9090
+LIB_PATH=/usr/lib
+
+PAD_GOT=
+PAD_PLT=
+PAD_RO=
+RODATA_PADSIZE=${MAXPAGESIZE}
+RODATA_ALIGN=". = ALIGN(${RODATA_PADSIZE}) + (. & (${RODATA_PADSIZE} - 1))"
+
TEMPLATE_NAME=elf32
GENERATE_SHLIB_SCRIPT=yes