This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
Patch: __stack_base__ for arm crt0
- To: newlib at sources dot redhat dot com
- Subject: Patch: __stack_base__ for arm crt0
- From: Anthony Green <green at redhat dot com>
- Date: Sun, 11 Nov 2001 08:22:41 -0800
- Reply-to: green at cygnus dot com
[Get raw message]
The gcj runtime needs to know where the stack base is. This is a
convenient way to get it right.
Ok?
2001-11-11 Anthony Green <green@redhat.com>
* libc/sys/arm/crt0.S (__stack_base__): New symbol.
Index: libc/sys/arm/crt0.S
===================================================================
RCS file: /cvs/src/src/newlib/libc/sys/arm/crt0.S,v
retrieving revision 1.3
diff -c -r1.3 crt0.S
*** crt0.S 2001/09/18 15:42:41 1.3
--- crt0.S 2001/11/11 16:19:02
***************
*** 243,251 ****
/* Workspace for Angel calls. */
.data
/* Data returned by monitor SWI. */
HeapBase: .word 0
HeapLimit: .word 0
! StackBase: .word 0
StackLimit: .word 0
CommandLine: .space 256,0 /* Maximum length of 255 chars handled. */
#endif
--- 243,252 ----
/* Workspace for Angel calls. */
.data
/* Data returned by monitor SWI. */
+ .global __stack_base__
HeapBase: .word 0
HeapLimit: .word 0
! __stack_base__: .word 0
StackLimit: .word 0
CommandLine: .space 256,0 /* Maximum length of 255 chars handled. */
#endif