nds32: Fix boot fail issue when build with elf-mculib.
authorRick Chen <rick@andestech.com>
Tue, 15 Jan 2019 03:07:54 +0000 (11:07 +0800)
committerAndes <uboot@andestech.com>
Tue, 22 Jan 2019 09:36:04 +0000 (17:36 +0800)
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>
arch/nds32/config.mk

index 4e10de072e7415a1b2b74139adb3ed711a651970..a1c3371ddcfd2f6311980d8ebbb6e01ef06e9fb1 100644 (file)
@@ -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