summaryrefslogtreecommitdiff
path: root/arch/nios2/cpu
diff options
context:
space:
mode:
authorThomas Chou <thomas@wytron.com.tw>2010-05-21 03:08:03 (GMT)
committerScott McNutt <smcnutt@psyent.com>2010-05-28 14:56:03 (GMT)
commit0df01fd3d71481b5cc7aeea6a741b9fc3be15178 (patch)
treea5eb637453d7f400eb1f9709b376ad247905e265 /arch/nios2/cpu
parent661ba14051db6766932fcb50ba1ec7c67f230054 (diff)
downloadu-boot-0df01fd3d71481b5cc7aeea6a741b9fc3be15178.tar.xz
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/cpu')
-rw-r--r--arch/nios2/cpu/start.S7
1 files changed, 0 insertions, 7 deletions
diff --git a/arch/nios2/cpu/start.S b/arch/nios2/cpu/start.S
index d1016ea..76d3b52 100644
--- a/arch/nios2/cpu/start.S
+++ b/arch/nios2/cpu/start.S
@@ -113,13 +113,6 @@ _cur: movhi r5, %hi(_cur - _start)
bne r5, r6, 4b
5:
- /* GLOBAL POINTER -- the global pointer is used to reference
- * "small data" (see -G switch). The linker script must
- * provide the gp address.
- */
- movhi gp, %hi(_gp)
- ori gp, gp, %lo(_gp)
-
/* JUMP TO RELOC ADDR */
movhi r4, %hi(_reloc)
ori r4, r4, %lo(_reloc)