From 12cecc8261e8da2703bbeb3f6bd1c933a475ca9c Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 10 Jan 2006 02:06:25 +0000 Subject: more fixes by Thomas Chou in Bug 618 --- libc/sysdeps/linux/nios2/crt1.S | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libc/sysdeps/linux/nios2/crt1.S') 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) -- cgit v1.2.3