diff options
author | Alexey Neyman <stilor@att.net> | 2017-08-26 12:29:34 -0700 |
---|---|---|
committer | Alexey Neyman <stilor@att.net> | 2017-08-26 13:01:44 -0700 |
commit | 8aa8a2cbc9c9a34a099c41f9781543f34d39c40b (patch) | |
tree | cf7371b80f480e1d2ae8f6b1c46f7d6ac20ef4e0 /packages/glibc/2.14/340-dl_execstack-PaX-support.patch | |
parent | 5324905c1446d898d9a8f578555c1e54a2fbc89c (diff) | |
download | crosstool-ng-8aa8a2cbc9c9a34a099c41f9781543f34d39c40b.tar.gz crosstool-ng-8aa8a2cbc9c9a34a099c41f9781543f34d39c40b.tar.bz2 crosstool-ng-8aa8a2cbc9c9a34a099c41f9781543f34d39c40b.zip |
Missed glibc 2.14 when obsoleting releases
Superseded on the branch by 2.14.1.
Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'packages/glibc/2.14/340-dl_execstack-PaX-support.patch')
-rw-r--r-- | packages/glibc/2.14/340-dl_execstack-PaX-support.patch | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/packages/glibc/2.14/340-dl_execstack-PaX-support.patch b/packages/glibc/2.14/340-dl_execstack-PaX-support.patch deleted file mode 100644 index 2402af07..00000000 --- a/packages/glibc/2.14/340-dl_execstack-PaX-support.patch +++ /dev/null @@ -1,66 +0,0 @@ - With latest versions of glibc, a lot of apps failed on a PaX enabled - system with: - cannot enable executable stack as shared object requires: Permission denied - - This is due to PaX 'exec-protecting' the stack, and ld.so then trying - to make the stack executable due to some libraries not containing the - PT_GNU_STACK section. Bug #32960. <azarah@gentoo.org> (12 Nov 2003). - - Patch also NPTL. Bug #116086. <kevquinn@gentoo.org> (20 Dec 2005). - -diff -durN glibc-2.13.orig/nptl/allocatestack.c glibc-2.13/nptl/allocatestack.c ---- glibc-2.13.orig/nptl/allocatestack.c 2009-01-29 21:34:16.000000000 +0100 -+++ glibc-2.13/nptl/allocatestack.c 2009-11-13 00:50:33.000000000 +0100 -@@ -329,7 +329,8 @@ - # error "Define either _STACK_GROWS_DOWN or _STACK_GROWS_UP" - #endif - if (mprotect (stack, len, PROT_READ | PROT_WRITE | PROT_EXEC) != 0) -- return errno; -+ if (errno != EACCES) /* PAX is enabled */ -+ return errno; - - return 0; - } -diff -durN glibc-2.13.orig/sysdeps/unix/sysv/linux/dl-execstack.c glibc-2.13/sysdeps/unix/sysv/linux/dl-execstack.c ---- glibc-2.13.orig/sysdeps/unix/sysv/linux/dl-execstack.c 2006-01-08 09:21:15.000000000 +0100 -+++ glibc-2.13/sysdeps/unix/sysv/linux/dl-execstack.c 2009-11-13 00:50:33.000000000 +0100 -@@ -63,7 +63,10 @@ - else - # endif - { -- result = errno; -+ if (errno == EACCES) /* PAX is enabled */ -+ result = 0; -+ else -+ result = errno; - goto out; - } - } -@@ -89,7 +92,12 @@ - page -= size; - else - { -- if (errno != ENOMEM) /* Unexpected failure mode. */ -+ if (errno == EACCES) /* PAX is enabled */ -+ { -+ result = 0; -+ goto out; -+ } -+ else if (errno != ENOMEM) /* Unexpected failure mode. */ - { - result = errno; - goto out; -@@ -115,7 +123,12 @@ - page += size; - else - { -- if (errno != ENOMEM) /* Unexpected failure mode. */ -+ if (errno == EACCES) /* PAX is enabled */ -+ { -+ result = 0; -+ goto out; -+ } -+ else if (errno != ENOMEM) /* Unexpected failure mode. */ - { - result = errno; - goto out; |