summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--arch/mips/config.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/mips/config.mk b/arch/mips/config.mk
index ab1f6896c..c89279025 100644
--- a/arch/mips/config.mk
+++ b/arch/mips/config.mk
@@ -46,15 +46,15 @@ PLATFORM_CPPFLAGS += -DCONFIG_MIPS -D__MIPS__
# to RAM, unless we're building SPL which doesn't relocate. $28 is always
# used as gp.
#
-PLATFORM_CPPFLAGS += -G 0 -mabicalls $(ENDIANNESS)
+PLATFORM_CPPFLAGS += -G 0 $(ENDIANNESS)
PLATFORM_CPPFLAGS += -msoft-float
PLATFORM_LDFLAGS += -G 0 -static -n -nostdlib $(ENDIANNESS)
PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections
LDFLAGS_FINAL += --gc-sections
OBJCFLAGS += --remove-section=.dynsym
ifdef CONFIG_SPL_BUILD
-PLATFORM_CPPFLAGS += -fno-pic
+PLATFORM_CPPFLAGS += -fno-pic -mno-abicalls -fomit-frame-pointer
else
-PLATFORM_CPPFLAGS += -fpic
+PLATFORM_CPPFLAGS += -fpic -mabicalls
LDFLAGS_FINAL += -pie
endif