From 8a8af03dce9fff80cd1adf38d2ddeae2cdc33d9e Mon Sep 17 00:00:00 2001 From: Joakim Tjernlund Date: Wed, 29 Jun 2005 23:21:45 +0000 Subject: Add __libc_stack_end to libc. --- libc/misc/internals/__uClibc_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libc/misc/internals/__uClibc_main.c') diff --git a/libc/misc/internals/__uClibc_main.c b/libc/misc/internals/__uClibc_main.c index 071d6d613..21864ba4f 100644 --- a/libc/misc/internals/__uClibc_main.c +++ b/libc/misc/internals/__uClibc_main.c @@ -32,6 +32,7 @@ extern void __guard_setup(void); /* * Prototypes. */ +extern void *__libc_stack_end; extern void weak_function _stdio_init(void); extern int *weak_const_function __errno_location(void); extern int *weak_const_function __h_errno_location(void); @@ -172,7 +173,7 @@ __uClibc_main(int (*main)(int, char **, char **), int argc, unsigned long *aux_dat; Elf32_auxv_t auxvt[AT_EGID + 1]; #endif - + __libc_stack_end = stack_end; /* We need to initialize uClibc. If we are dynamically linked this * may have already been completed by the shared lib loader. We call * __uClibc_init() regardless, to be sure the right thing happens. */ -- cgit v1.2.3