This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
Re: Patch: __stack_base__ for arm crt0
- To: green at cygnus dot com
- Subject: Re: Patch: __stack_base__ for arm crt0
- From: "J. Johnston" <jjohnstn at cygnus dot com>
- Date: Mon, 12 Nov 2001 17:42:12 -0500
- Cc: newlib at sources dot redhat dot com
- Organization: Red Hat Inc.
- References: <200111111622.IAA22282@fencer.cygnus.com>
Anthony Green wrote:
>
> The gcj runtime needs to know where the stack base is. This is a
> convenient way to get it right.
>
> Ok?
>
Ok. Are you going to check it in?
-- Jeff J.
> 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