From 900ceafde74f7c7c5101e3da51d52f8f8d92430f Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Fri, 20 Mar 2015 17:03:15 +0100 Subject: Don't hardcode using __libc_stack_end * sysdeps/mach/hurd/pt-sysdep.c (_init_routine): Use `stack' parameter instead of hardcoding __libc_stack_end. --- sysdeps/mach/hurd/pt-sysdep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysdeps/mach') diff --git a/sysdeps/mach/hurd/pt-sysdep.c b/sysdeps/mach/hurd/pt-sysdep.c index b23d9df..63e71e8 100644 --- a/sysdeps/mach/hurd/pt-sysdep.c +++ b/sysdeps/mach/hurd/pt-sysdep.c @@ -59,7 +59,7 @@ _init_routine (void *stack) /* Avoid allocating another stack */ attrp = &attr; pthread_attr_init(attrp); - pthread_attr_setstack(attrp, __libc_stack_end, __vm_page_size); + pthread_attr_setstack(attrp, stack, __vm_page_size); } /* Create the pthread structure for the main thread (i.e. us). */ -- cgit v1.2.3