summaryrefslogtreecommitdiffstats
path: root/usr/klibc/arch/m68k/MCONFIG
diff options
context:
space:
mode:
Diffstat (limited to 'usr/klibc/arch/m68k/MCONFIG')
-rw-r--r--usr/klibc/arch/m68k/MCONFIG23
1 files changed, 23 insertions, 0 deletions
diff --git a/usr/klibc/arch/m68k/MCONFIG b/usr/klibc/arch/m68k/MCONFIG
new file mode 100644
index 0000000..79bfbac
--- /dev/null
+++ b/usr/klibc/arch/m68k/MCONFIG
@@ -0,0 +1,23 @@
+# -*- makefile -*-
+#
+# arch/m68k/MCONFIG
+#
+# Special rules for this architecture. Note that this is actually
+# included from the main Makefile, and that pathnames should be
+# accordingly.
+#
+
+KLIBCOPTFLAGS += -Os -fomit-frame-pointer
+KLIBCBITSIZE = 32
+
+# 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
+# 2816 MB - normal binaries start at 2048 MB if I read the link
+# script right. Not sure if there is a fundamental reason
+# to not duck below the halfway point...
+KLIBCSHAREDFLAGS = $(LD_IMAGE_BASE_OPT) 0xb0000000
+
+# Kernel uses stack trampoline for signal return. Also m68k
+# page tables do not have an execute permission bit.
+KLIBCEXECSTACK := y