skeleton for sparc32 config.
This commit is contained in:
parent
bb39dbfb90
commit
6222bbbeaf
@ -1,6 +1,6 @@
|
||||
$OpenBSD: patch-gcc_config_gcc,v 1.1.1.1 2004/09/23 22:13:31 espie Exp $
|
||||
--- gcc/config.gcc.orig Mon Sep 13 14:27:59 2004
|
||||
+++ gcc/config.gcc Mon Sep 13 14:31:26 2004
|
||||
$OpenBSD: patch-gcc_config_gcc,v 1.2 2005/02/27 12:15:00 espie Exp $
|
||||
--- gcc/config.gcc.orig Wed Sep 8 17:16:10 2004
|
||||
+++ gcc/config.gcc Sun Feb 27 13:04:14 2005
|
||||
@@ -961,11 +961,11 @@ x86_64-*-netbsd*)
|
||||
tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h netbsd.h netbsd-elf.h i386/x86-64.h i386/netbsd64.h"
|
||||
;;
|
||||
@ -18,3 +18,13 @@ $OpenBSD: patch-gcc_config_gcc,v 1.1.1.1 2004/09/23 22:13:31 espie Exp $
|
||||
;;
|
||||
i[34567]86-*-coff*)
|
||||
tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/i386-coff.h"
|
||||
@@ -1995,7 +1995,8 @@ sparc-*-netbsdelf*)
|
||||
;;
|
||||
sparc-*-openbsd*)
|
||||
tm_defines=OBSD_OLD_GAS
|
||||
- tm_file="sparc/sparc.h openbsd.h sparc/openbsd.h"
|
||||
+ tm_file="sparc/sparc.h elfos.h svr4.h sparc/sysv4.h ${tm_file}"
|
||||
+ tm_file="${tm_file} exec-stack.h"
|
||||
# needed to unconfuse gdb
|
||||
tmake_file="t-libc-ok t-openbsd sparc/t-openbsd"
|
||||
# we need collect2 until our bug is fixed...
|
||||
|
39
lang/gcc/3.4/patches/patch-gcc_config_sparc_openbsd_h
Normal file
39
lang/gcc/3.4/patches/patch-gcc_config_sparc_openbsd_h
Normal file
@ -0,0 +1,39 @@
|
||||
$OpenBSD: patch-gcc_config_sparc_openbsd_h,v 1.1 2005/02/27 12:15:00 espie Exp $
|
||||
--- gcc/config/sparc/openbsd.h.orig Sun Feb 27 13:05:00 2005
|
||||
+++ gcc/config/sparc/openbsd.h Sun Feb 27 13:08:10 2005
|
||||
@@ -22,10 +22,7 @@ Boston, MA 02111-1307, USA. */
|
||||
#define TARGET_OS_CPP_BUILTINS() \
|
||||
do \
|
||||
{ \
|
||||
- builtin_define ("__unix__"); \
|
||||
- builtin_define ("__OpenBSD__"); \
|
||||
- builtin_assert ("system=unix"); \
|
||||
- builtin_assert ("system=OpenBSD"); \
|
||||
+ OPENBSD_OS_CPP_BUILTINS_ELF(); \
|
||||
} \
|
||||
while (0)
|
||||
|
||||
@@ -44,6 +41,23 @@ Boston, MA 02111-1307, USA. */
|
||||
#undef WCHAR_TYPE_SIZE
|
||||
#define WCHAR_TYPE_SIZE 32
|
||||
|
||||
+#undef LINK_SPEC
|
||||
+#define LINK_SPEC \
|
||||
+ "%{!shared:%{!nostdlib:%{!r*:%{!e*:-e __start}}}} \
|
||||
+ %{shared:-shared} %{R*} \
|
||||
+ %{static:-Bstatic} \
|
||||
+ %{!static:-Bdynamic} \
|
||||
+ %{assert*} \
|
||||
+ %{!dynamic-linker:-dynamic-linker /usr/libexec/ld.so}"
|
||||
+
|
||||
+/* As an elf system, we need crtbegin/crtend stuff. */
|
||||
+#undef STARTFILE_SPEC
|
||||
+#define STARTFILE_SPEC "\
|
||||
+ %{!shared: %{pg:gcrt0%O%s} %{!pg:%{p:gcrt0%O%s} %{!p:crt0%O%s}} \
|
||||
+ crtbegin%O%s} %{shared:crtbeginS%O%s}"
|
||||
+#undef ENDFILE_SPEC
|
||||
+#define ENDFILE_SPEC "%{!shared:crtend%O%s} %{shared:crtendS%O%s}"
|
||||
+
|
||||
/* Specific options for DBX Output. */
|
||||
|
||||
/* This is BSD, so it wants DBX format. */
|
Loading…
Reference in New Issue
Block a user