diff options
Diffstat (limited to 'arch/powerpc/config.mk')
-rw-r--r-- | arch/powerpc/config.mk | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/powerpc/config.mk b/arch/powerpc/config.mk index 31e44160f6..3afc439e58 100644 --- a/arch/powerpc/config.mk +++ b/arch/powerpc/config.mk @@ -23,9 +23,11 @@ CROSS_COMPILE ?= ppc_8xx- -STANDALONE_LOAD_ADDR = 0x40000 +CONFIG_STANDALONE_LOAD_ADDR ?= 0x40000 LDFLAGS_FINAL += --gc-sections -PLATFORM_RELFLAGS += -mrelocatable -ffunction-sections -fdata-sections +PLATFORM_RELFLAGS += -fpic -mrelocatable -ffunction-sections -fdata-sections +PLATFORM_RELFLAGS += $(call cc-option,-msingle-pic-base,) +PLATFORM_RELFLAGS += $(call cc-option,-fno-jump-tables,) PLATFORM_CPPFLAGS += -DCONFIG_PPC -D__powerpc__ PLATFORM_LDFLAGS += -n |