summaryrefslogtreecommitdiffstats
path: root/usr/klibc/arch/ppc/MCONFIG
diff options
context:
space:
mode:
Diffstat (limited to 'usr/klibc/arch/ppc/MCONFIG')
-rw-r--r--usr/klibc/arch/ppc/MCONFIG29
1 files changed, 29 insertions, 0 deletions
diff --git a/usr/klibc/arch/ppc/MCONFIG b/usr/klibc/arch/ppc/MCONFIG
new file mode 100644
index 0000000..db4806a
--- /dev/null
+++ b/usr/klibc/arch/ppc/MCONFIG
@@ -0,0 +1,29 @@
+# -*- makefile -*-
+#
+# arch/ppc/MCONFIG
+#
+# Special rules for this architecture. Note that this is actually
+# included from the main Makefile, and that pathnames should be
+# accordingly.
+#
+
+gcc_m32_option := $(call cc-option, -m32, )
+
+KLIBCOPTFLAGS += -Os
+KLIBCLDFLAGS = -m elf32ppclinux
+KLIBCARCHREQFLAGS += $(gcc_m32_option)
+
+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
+# 256-16 MB - normal binaries start at 256 MB, and jumps are limited
+# to +/- 16 MB
+KLIBCSHAREDFLAGS = $(LD_IMAGE_BASE_OPT) 0x0f800000
+
+# The asm include files live in asm-powerpc
+KLIBCASMARCH = powerpc
+
+# Kernel uses vDSO for signal return since 2.6.12 (compat) or 2.6.15 (native)
+KLIBCEXECSTACK := n