summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordrahn <drahn@openbsd.org>2002-09-19 01:44:03 +0000
committerdrahn <drahn@openbsd.org>2002-09-19 01:44:03 +0000
commit71db6f2d9d8d5b1256e0af52593bbe1cc71eb9e9 (patch)
treedb400b266aab89981702d0bf6fc99f670c20a5b8
parentMark ELF ld.so as VTEXT to prevent the file from being overwritten. (diff)
downloadwireguard-openbsd-71db6f2d9d8d5b1256e0af52593bbe1cc71eb9e9.tar.xz
wireguard-openbsd-71db6f2d9d8d5b1256e0af52593bbe1cc71eb9e9.zip
build sparc64 like sparc is built. includes config/xm-openbsd.h
ok miod@ tested by building gcc and building trampoline exec test.
-rw-r--r--gnu/egcs/gcc/config.gcc2
-rw-r--r--gnu/egcs/gcc/config/sparc/xm-openbsd64.h23
2 files changed, 24 insertions, 1 deletions
diff --git a/gnu/egcs/gcc/config.gcc b/gnu/egcs/gcc/config.gcc
index f6de0cb53ee..fb6721a08ca 100644
--- a/gnu/egcs/gcc/config.gcc
+++ b/gnu/egcs/gcc/config.gcc
@@ -2505,7 +2505,7 @@ sparc-*-openbsd*)
;;
sparc64-*-openbsd*)
tm_file="sparc/openbsd64.h exec-stack.h"
- xm_file=sparc/xm-sp64.h
+ xm_file=sparc/xm-openbsd64.h
gas=yes gnu_ld=yes
;;
sparc-*-bsd*)
diff --git a/gnu/egcs/gcc/config/sparc/xm-openbsd64.h b/gnu/egcs/gcc/config/sparc/xm-openbsd64.h
new file mode 100644
index 00000000000..9d0c9fabdb8
--- /dev/null
+++ b/gnu/egcs/gcc/config/sparc/xm-openbsd64.h
@@ -0,0 +1,23 @@
+/* Configuration file for an host running sparc64 OpenBSD.
+ Copyright (C) 1999 Free Software Foundation, Inc.
+
+This file is part of GNU CC.
+
+GNU CC is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU CC is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU CC; see the file COPYING. If not, write to
+the Free Software Foundation, 59 Temple Place - Suite 330,
+Boston, MA 02111-1307, USA. */
+
+#include <xm-openbsd.h>
+#include <sparc/xm-sp64.h>
+