summaryrefslogtreecommitdiffstats
path: root/usr/klibc/arch/sparc64/MCONFIG
diff options
context:
space:
mode:
Diffstat (limited to 'usr/klibc/arch/sparc64/MCONFIG')
-rw-r--r--usr/klibc/arch/sparc64/MCONFIG24
1 files changed, 24 insertions, 0 deletions
diff --git a/usr/klibc/arch/sparc64/MCONFIG b/usr/klibc/arch/sparc64/MCONFIG
new file mode 100644
index 0000000..d8c878a
--- /dev/null
+++ b/usr/klibc/arch/sparc64/MCONFIG
@@ -0,0 +1,24 @@
+# -*- makefile -*-
+#
+# arch/sparc64/MCONFIG
+#
+# Special rules for this architecture. Note that this is actually
+# included from the main Makefile, and that pathnames should be
+# accordingly.
+#
+
+KLIBCARCHREQFLAGS = -m64 -D__sparc64__
+KLIBCOPTFLAGS += -Os
+KLIBCBITSIZE = 64
+
+KLIBCLDFLAGS = -m elf64_sparc
+
+# Extra linkflags when building the shared version of the library
+# This address needs to be reachable using normal inter-module
+# calls, and work on the memory models for this architecture
+# Normal binaries start at 1 MB; the linker wants 1 MB alignment,
+# and call instructions have a 30-bit signed offset, << 2.
+KLIBCSHAREDFLAGS = $(LD_IMAGE_BASE_OPT) 0x80000000
+
+# Kernel has never used stack trampolines
+KLIBCEXECSTACK := n