From ecbf434213c0333d81706074e4d107ac45011635 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Wed, 15 May 2013 20:20:54 +0200 Subject: Reserve new TLS field for x86 and x86_64 [BZ #10686] * sysdeps/x86_64/tls.h (struct tcbhead_t): Add __private_ss field. * sysdeps/i386/tls.h (struct tcbhead_t): Likewise. --- nptl/ChangeLog | 6 ++++++ nptl/sysdeps/i386/tls.h | 4 +++- nptl/sysdeps/x86_64/tls.h | 4 +++- 3 files changed, 12 insertions(+), 2 deletions(-) (limited to 'nptl') diff --git a/nptl/ChangeLog b/nptl/ChangeLog index 54ecd14ced..597b3bdee3 100644 --- a/nptl/ChangeLog +++ b/nptl/ChangeLog @@ -1,3 +1,9 @@ +2013-05-14 Andreas Jaeger + + [BZ #10686] + * sysdeps/x86_64/tls.h (struct tcbhead_t): Add __private_ss field. + * sysdeps/i386/tls.h (struct tcbhead_t): Likewise. + 2013-05-09 Andi Kleen * tst-mutex8.c (do_test): Check for ENABLE_PI. diff --git a/nptl/sysdeps/i386/tls.h b/nptl/sysdeps/i386/tls.h index 1405f60391..3d18b1de73 100644 --- a/nptl/sysdeps/i386/tls.h +++ b/nptl/sysdeps/i386/tls.h @@ -59,7 +59,9 @@ typedef struct int __unused1; #endif /* Reservation of some values for the TM ABI. */ - void *__private_tm[5]; + void *__private_tm[4]; + /* GCC split stack support. */ + void *__private_ss; } tcbhead_t; # define TLS_MULTIPLE_THREADS_IN_TCB 1 diff --git a/nptl/sysdeps/x86_64/tls.h b/nptl/sysdeps/x86_64/tls.h index 3d67dbc75a..61df1af2b0 100644 --- a/nptl/sysdeps/x86_64/tls.h +++ b/nptl/sysdeps/x86_64/tls.h @@ -69,7 +69,9 @@ typedef struct # endif int rtld_must_xmm_save; /* Reservation of some values for the TM ABI. */ - void *__private_tm[5]; + void *__private_tm[4]; + /* GCC split stack support. */ + void *__private_ss; long int __unused2; /* Have space for the post-AVX register size. */ __128bits rtld_savespace_sse[8][4] __attribute__ ((aligned (32))); -- cgit v1.2.3-70-g09d2