[PATCH] Fix sparc build
Jakub Jelinek
jakub@redhat.com
Thu Jul 26 21:51:00 GMT 2007
On Thu, Jul 26, 2007 at 12:51:43AM +0200, Aurelien Jarno wrote:
> The patch below fixes sparc build on both head and glibc-2_6-branch.
That's only correct for sparc64 build, for 32-bit sparc build
it will break -fstack-protector. The relative offset of stack_guard
field is part of the ABI.
So this has to be:
--- nptl/sysdeps/sparc/tls.h.orig 2007-07-26 00:36:08.000000000 +0200
+++ nptl/sysdeps/sparc/tls.h 2007-07-26 00:36:25.000000000 +0200
@@ -46,9 +46,15 @@
dtv_t *dtv;
void *self;
int multiple_threads;
+#if __WORDSIZE == 64
+ int gscope_flag;
+#endif
uintptr_t sysinfo;
uintptr_t stack_guard;
uintptr_t pointer_guard;
+#if __WORDSIZE != 64
+ int gscope_flag;
+#endif
} tcbhead_t;
#else /* __ASSEMBLER__ */
Untested though.
> 2007-07-26 Aurelien Jarno <aurelien@aurel32.net>
>
> * sysdeps/sparc/tls.h (tcbhead_t): Add gscope_flag.
>
Jakub
More information about the Libc-alpha
mailing list