diff options
author | Thomas Chou <thomas@wytron.com.tw> | 2010-05-21 11:08:03 +0800 |
---|---|---|
committer | Scott McNutt <smcnutt@psyent.com> | 2010-05-28 10:56:03 -0400 |
commit | 0df01fd3d71481b5cc7aeea6a741b9fc3be15178 (patch) | |
tree | a5eb637453d7f400eb1f9709b376ad247905e265 /arch/nios2/config.mk | |
parent | 661ba14051db6766932fcb50ba1ec7c67f230054 (diff) | |
download | u-boot-imx-0df01fd3d71481b5cc7aeea6a741b9fc3be15178.zip u-boot-imx-0df01fd3d71481b5cc7aeea6a741b9fc3be15178.tar.gz u-boot-imx-0df01fd3d71481b5cc7aeea6a741b9fc3be15178.tar.bz2 |
nios2: fix r15 issue for gcc4
The "-ffixed-r15" option doesn't work well for gcc4. Since we
don't use gp for small data with option "-G0", we can use gp
as global data pointer. This allows compiler to use r15. It
is necessary for gcc4 to work properly.
Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
Signed-off-by: Scott McNutt <smcnutt@psyent.com>
Diffstat (limited to 'arch/nios2/config.mk')
-rw-r--r-- | arch/nios2/config.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/nios2/config.mk b/arch/nios2/config.mk index 8e5d6ef..6789038 100644 --- a/arch/nios2/config.mk +++ b/arch/nios2/config.mk @@ -27,6 +27,6 @@ CROSS_COMPILE ?= nios2-elf- STANDALONE_LOAD_ADDR = 0x02000000 -L $(gcclibdir) PLATFORM_CPPFLAGS += -DCONFIG_NIOS2 -D__NIOS2__ -PLATFORM_CPPFLAGS += -ffixed-r15 -G0 +PLATFORM_CPPFLAGS += -G0 LDSCRIPT ?= $(SRCTREE)/$(CPUDIR)/u-boot.lds |