From 71232da3b37b33d41c593c153a4a612067ff83cd Mon Sep 17 00:00:00 2001 From: Sergey Bugaev Date: Sun, 19 Mar 2023 18:09:48 +0300 Subject: hurd: Remove __hurd_threadvar_stack_{offset,mask} Noone is or should be using __hurd_threadvar_stack_{offset,mask}, we have proper TLS now. These two remaining variables are never set to anything other than zero, so any code that would try to use them as described would just dereference a zero pointer and crash. So remove them entirely. Signed-off-by: Sergey Bugaev Message-Id: <20230319151017.531737-6-bugaevc@gmail.com> --- sysdeps/mach/hurd/x86/init-first.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'sysdeps/mach/hurd/x86/init-first.c') diff --git a/sysdeps/mach/hurd/x86/init-first.c b/sysdeps/mach/hurd/x86/init-first.c index 75a5c84..6ca2715 100644 --- a/sysdeps/mach/hurd/x86/init-first.c +++ b/sysdeps/mach/hurd/x86/init-first.c @@ -34,9 +34,6 @@ extern void __mach_init (void); extern void __init_misc (int, char **, char **); -unsigned long int __hurd_threadvar_stack_offset; -unsigned long int __hurd_threadvar_stack_mask; - extern int __libc_argc attribute_hidden; extern char **__libc_argv attribute_hidden; extern char **_dl_argv; -- cgit v1.1