summaryrefslogtreecommitdiff
path: root/arch/nds32
diff options
context:
space:
mode:
authorRick Chen <rick@andestech.com>2019-01-15 11:07:54 +0800
committerAndes <uboot@andestech.com>2019-01-22 17:36:04 +0800
commite690148223cb0828d601f43703e7fc238d85884d (patch)
tree67fea7d8ade6992b9546c9e1bea7de17bfe88eef /arch/nds32
parent9135858fb861d4aa0c8521442cc20932c1e2e097 (diff)
nds32: Fix boot fail issue when build with elf-mculib.
Add -mcmodel=large can let elf-mculib have the same default behavior just like linux-glibc. And it help to pass U-Boot booting sequence. Signed-off-by: Rick Chen <rick@andestech.com> Cc: Greentime Hu <greentime@andestech.com>
Diffstat (limited to 'arch/nds32')
-rw-r--r--arch/nds32/config.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/nds32/config.mk b/arch/nds32/config.mk
index 4e10de072e..a1c3371ddc 100644
--- a/arch/nds32/config.mk
+++ b/arch/nds32/config.mk
@@ -17,6 +17,6 @@ LDFLAGS_STANDALONE += -T $(srctree)/examples/standalone/nds32.lds
PLATFORM_RELFLAGS += -fno-common -mrelax -mno-ext-fpu-dp -mfloat-abi=soft
PLATFORM_RELFLAGS += -gdwarf-2
-PLATFORM_CPPFLAGS += -D__nds32__ -ffixed-10 -fpie
+PLATFORM_CPPFLAGS += -D__nds32__ -ffixed-10 -fpie -mcmodel=large
LDFLAGS_u-boot = --gc-sections --relax -pie --mabi=AABI