summaryrefslogtreecommitdiff
path: root/arch/powerpc/config.mk
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/config.mk')
-rw-r--r--arch/powerpc/config.mk9
1 files changed, 5 insertions, 4 deletions
diff --git a/arch/powerpc/config.mk b/arch/powerpc/config.mk
index fec02f2..4110396 100644
--- a/arch/powerpc/config.mk
+++ b/arch/powerpc/config.mk
@@ -12,10 +12,11 @@ endif
CONFIG_STANDALONE_LOAD_ADDR ?= 0x40000
LDFLAGS_FINAL += --gc-sections
LDFLAGS_FINAL += --bss-plt
-PLATFORM_RELFLAGS += -fpic -mrelocatable -ffunction-sections -fdata-sections \
- -meabi
-PLATFORM_CPPFLAGS += -D__powerpc__ -ffixed-r2
-PLATFORM_LDFLAGS += -n
+PLATFORM_RELFLAGS += -fpic -mrelocatable -ffunction-sections \
+-fdata-sections -mcall-linux
+
+PLATFORM_CPPFLAGS += -D__powerpc__ -ffixed-r2 -m32
+PLATFORM_LDFLAGS += -m32 -melf32ppclinux
# Support generic board on PPC
__HAVE_ARCH_GENERIC_BOARD := y