summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2004-01-31 20:38:52 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2004-01-31 20:38:52 +0000
commit14d92a26c5db745bbf8999bb6a11902aeeedcd37 (patch)
tree41d554186bf5ad1c39a3e4239d756fe1ed372c16
parente4642635299126c3d1c30ee9cb3b998122508c4b (diff)
Provide correct start files and link option specifications on sparc;
borrowed from openbsd64.h. "Go ahead, can't hurt" espie@
-rw-r--r--gnu/usr.bin/gcc/gcc/config/sparc/openbsd.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/gnu/usr.bin/gcc/gcc/config/sparc/openbsd.h b/gnu/usr.bin/gcc/gcc/config/sparc/openbsd.h
index 85622c2a2f8..8a83087d8a1 100644
--- a/gnu/usr.bin/gcc/gcc/config/sparc/openbsd.h
+++ b/gnu/usr.bin/gcc/gcc/config/sparc/openbsd.h
@@ -46,6 +46,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. */