Browse Source

Reserve stack space for args we pass to __uClibc_main.

Miles Bader 21 years ago
parent
commit
0c6f5b60ad
1 changed files with 3 additions and 2 deletions
  1. 3 2
      libc/sysdeps/linux/v850/crt0.S

+ 3 - 2
libc/sysdeps/linux/v850/crt0.S

@@ -1,8 +1,8 @@
 /*
  * libc/sysdeps/linux/v850/crt0.S -- Initial program entry point for linux/v850
  *
- *  Copyright (C) 2001,2002  NEC Corporation
- *  Copyright (C) 2001,2002  Miles Bader <miles@gnu.org>
+ *  Copyright (C) 2001,02,03  NEC Electronics Corporation
+ *  Copyright (C) 2001,02,03  Miles Bader <miles@gnu.org>
  *
  * This file is subject to the terms and conditions of the GNU Lesser
  * General Public License.  See the file COPYING.LIB in the main
@@ -37,6 +37,7 @@ C_ENTRY(start):
 	mov	hilo(C_SYMBOL_NAME(_gp)), gp
 
 	// tail-call uclibc's startup routine
+	addi	-24, sp, sp		// Stack space reserved for args
 	jr	C_SYMBOL_NAME(__uClibc_main)