diff options
author | 2021-05-18 08:46:49 (GMT) | |
---|---|---|
committer | 2021-05-18 08:46:49 (GMT) | |
commit | 6d008334bcfa76f8b46e61d9edb6dd5335cd6632 (patch) | |
tree | cd137ec7ab048fa32049a4322c10a0e27ba80c20 /packages/glibc/2.17/0059-glibc-ppc64le-37.patch | |
parent | f284f4149518de6e8c403a9392be8e817bfab2e8 (diff) | |
parent | 0088351811bf442aa2e7d35c564f36ca67a8a699 (diff) |
Merge pull request #1510 from messense/glibc-ppc64le-patches
Add GLIBC 2.17 support to powerpc64le-unknown-linux-gnu
Diffstat (limited to 'packages/glibc/2.17/0059-glibc-ppc64le-37.patch')
-rw-r--r-- | packages/glibc/2.17/0059-glibc-ppc64le-37.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/packages/glibc/2.17/0059-glibc-ppc64le-37.patch b/packages/glibc/2.17/0059-glibc-ppc64le-37.patch new file mode 100644 index 0000000..dad59a6 --- /dev/null +++ b/packages/glibc/2.17/0059-glibc-ppc64le-37.patch @@ -0,0 +1,31 @@ +# commit b525166bb93b060e1146f0263b76a9c1e7455b06 +# Author: Ulrich Weigand <Ulrich.Weigand@de.ibm.com> +# Date: Wed Dec 4 06:45:56 2013 -0600 +# +# 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. +# +diff -urN glibc-2.17-c758a686/nptl/sysdeps/powerpc/tls.h glibc-2.17-c758a686/nptl/sysdeps/powerpc/tls.h +--- glibc-2.17-c758a686/nptl/sysdeps/powerpc/tls.h 2014-05-29 13:19:25.000000000 -0500 ++++ glibc-2.17-c758a686/nptl/sysdeps/powerpc/tls.h 2014-05-29 13:19:25.000000000 -0500 +@@ -61,6 +61,8 @@ + are private. */ + typedef struct + { ++ /* GCC split stack support. */ ++ void *__private_ss; + /* Reservation for the Event-Based Branching ABI. */ + uintptr_t ebb_handler; + uintptr_t ebb_ctx_pointer; |