This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Fix sparc build
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Aurelien Jarno <aurelien at aurel32 dot net>
- Cc: libc-alpha at sourceware dot org
- Date: Thu, 26 Jul 2007 21:13:50 +0200
- Subject: Re: [PATCH] Fix sparc build
- References: <20070725225143.GA818@farad.aurel32.net>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
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