summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/nios2/crt1.S
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-01-10 02:06:25 +0000
committerMike Frysinger <vapier@gentoo.org>2006-01-10 02:06:25 +0000
commit12cecc8261e8da2703bbeb3f6bd1c933a475ca9c (patch)
tree816a67edd422bd672712e9a5f6e75216a8892502 /libc/sysdeps/linux/nios2/crt1.S
parent771c60ca859f10e64489ec3aa18e4543436ba688 (diff)
more fixes by Thomas Chou in Bug 618
Diffstat (limited to 'libc/sysdeps/linux/nios2/crt1.S')
-rw-r--r--libc/sysdeps/linux/nios2/crt1.S4
1 files changed, 3 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/nios2/crt1.S b/libc/sysdeps/linux/nios2/crt1.S
index 948eeb1ed..bcb8a26db 100644
--- a/libc/sysdeps/linux/nios2/crt1.S
+++ b/libc/sysdeps/linux/nios2/crt1.S
@@ -47,7 +47,9 @@ _start:
movhi r7, %hi(_init)
ori r7, r7, %lo(_init)
- /* reuse the argc stack slot for the 5th arg */
+ /* Allocate space on the stack for 6-7th arg, reuse 5th space */
+ addi sp,sp,-8
+ /* push 5-7th args on stack */
movhi r8, %hi(_fini)
ori r8, r8, %lo(_fini)
stw r8, 0(sp)