[git commit nptl] define local stack_chk_guard for nptl

Natanael Copa natanael.copa at gmail.com
Fri Nov 27 18:12:59 UTC 2009


commit: http://git.uclibc.org/uClibc/commit/?id=86d7dae85bcea17c5eb01a6f2416c7dde4dc7266
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/nptl

Signed-off-by: Natanael Copa <natanael.copa at gmail.com>
Signed-off-by: Austin Foxley <austinf at cetoncorp.com>
---
 libc/misc/internals/__uClibc_main.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/libc/misc/internals/__uClibc_main.c b/libc/misc/internals/__uClibc_main.c
index 85dbe71..cb2c6ed 100644
--- a/libc/misc/internals/__uClibc_main.c
+++ b/libc/misc/internals/__uClibc_main.c
@@ -203,10 +203,11 @@ void __uClibc_init(void)
 #ifndef SHARED
 # ifdef __UCLIBC_HAS_SSP__
     /* Set up the stack checker's canary.  */
-    stack_chk_guard = _dl_setup_stack_chk_guard();
 #  ifdef THREAD_SET_STACK_GUARD
+    uintptr_t stack_chk_guard = _dl_setup_stack_chk_guard();
     THREAD_SET_STACK_GUARD (stack_chk_guard);
 #   ifdef __UCLIBC_HAS_SSP_COMPAT__
+    stack_chk_guard = _dl_setup_stack_chk_guard();
     __guard = stack_chk_guard;
 #   endif
 #  else
-- 
1.6.3.3



More information about the uClibc-cvs mailing list