PowerPC64: Add __private_ss field to TCB header

The TCB header on Intel contains a field __private_ss that is used
to efficiently implement the -fsplit-stack GCC feature.

In order to prepare for a possible future implementation of that
feature on powerpc64, we'd like to reserve a similar field in
the TCB header as well.  (It would be good if this went in with
or before the ELFv2 patches to ensure that this field will be
available always in the ELFv2 environment.)

The field needs to be added at the front of tcbhead_t structure
to avoid changing the ABI; see the recent discussion when adding
the EBB fields.
This commit is contained in:
Ulrich Weigand 2013-12-04 06:45:56 -06:00 committed by Adhemerval Zanella
parent 7ec07d9a7b
commit b525166bb9
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2013-12-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
* sysdeps/powerpc/tls.h (tcbhead_t): Add __private_ss field.
2013-12-04 Alan Modra <amodra@gmail.com> 2013-12-04 Alan Modra <amodra@gmail.com>
* elf/elf.h (R_PPC64_TLSGD, R_PPC64_TLSLD, R_PPC64_TOCSAVE): Define. * elf/elf.h (R_PPC64_TLSGD, R_PPC64_TLSLD, R_PPC64_TOCSAVE): Define.

View File

@ -61,6 +61,8 @@ typedef union dtv
are private. */ are private. */
typedef struct typedef struct
{ {
/* GCC split stack support. */
void *__private_ss;
/* Reservation for the Event-Based Branching ABI. */ /* Reservation for the Event-Based Branching ABI. */
uintptr_t ebb_handler; uintptr_t ebb_handler;
uintptr_t ebb_ctx_pointer; uintptr_t ebb_ctx_pointer;