about summary refs log tree commit diff
path: root/csu/libc-start.c
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@redhat.com>2013-03-01 14:15:39 +0530
committerSiddhesh Poyarekar <siddhesh@redhat.com>2013-03-01 14:15:39 +0530
commite23872c8db1fb26713b9c15b12686ac7a0077576 (patch)
treea7fa040afb53ba1f5bd98bb33f214aa32e3729b8 /csu/libc-start.c
parentfd6cdc6da490616f4d381f4d44f03d61f64da2ba (diff)
downloadglibc-e23872c8db1fb26713b9c15b12686ac7a0077576.tar.gz
glibc-e23872c8db1fb26713b9c15b12686ac7a0077576.tar.xz
glibc-e23872c8db1fb26713b9c15b12686ac7a0077576.zip
Set default stack size from program environment
New environment variable GLIBC_PTHREAD_DEFAULT_STACKSIZE to do this.
Diffstat (limited to 'csu/libc-start.c')
-rw-r--r--csu/libc-start.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/csu/libc-start.c b/csu/libc-start.c
index 9c4c01d9fd..f53f71c975 100644
--- a/csu/libc-start.c
+++ b/csu/libc-start.c
@@ -30,7 +30,7 @@ extern int __libc_multiple_libcs;
 #include <tls.h>
 #ifndef SHARED
 # include <dl-osinfo.h>
-extern void __pthread_initialize_minimal (void);
+extern void __pthread_initialize_minimal (int, char **, char **);
 # ifndef THREAD_SET_STACK_GUARD
 /* Only exported for architectures that don't store the stack guard canary
    in thread local area.  */
@@ -167,7 +167,7 @@ LIBC_START_MAIN (int (*main) (int, char **, char ** MAIN_AUXVEC_DECL),
   /* Initialize the thread library at least a bit since the libgcc
      functions are using thread functions if these are available and
      we need to setup errno.  */
-  __pthread_initialize_minimal ();
+  __pthread_initialize_minimal (argc, argv, __environ);
 
   /* Set up the stack checker's canary.  */
   uintptr_t stack_chk_guard = _dl_setup_stack_chk_guard (_dl_random);