[U-Boot] [PATCH 4/4] nds32: Fix boot fail issue when build with elf-mculib.

Andes uboot at andestech.com
Tue Jan 15 03:47:26 UTC 2019


From: Rick Chen <rick at andestech.com>

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 at andestech.com>
Cc: Greentime Hu <greentime at andestech.com>
---
 arch/nds32/config.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/nds32/config.mk b/arch/nds32/config.mk
index 4e10de0..a1c3371 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
-- 
2.7.4



More information about the U-Boot mailing list