]> git.pld-linux.org Git - packages/glibc.git/commitdiff
- drop ugly hack and don't hide the problems.
authorPaweł Sikora <pluto@pld-linux.org>
Wed, 2 Apr 2008 19:36:46 +0000 (19:36 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    glibc-pax_dl-execstack.patch -> 1.5

glibc-pax_dl-execstack.patch [deleted file]

diff --git a/glibc-pax_dl-execstack.patch b/glibc-pax_dl-execstack.patch
deleted file mode 100644 (file)
index ab12a98..0000000
+++ /dev/null
@@ -1,64 +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).
-
---- sysdeps/unix/sysv/linux/dl-execstack.c
-+++ sysdeps/unix/sysv/linux/dl-execstack.c
-@@ -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;
---- nptl/allocatestack.c
-+++ nptl/allocatestack.c
-@@ -279,7 +279,8 @@
-   size_t len = pd->stackblock_size - pd->guardsize;
- #endif
-   if (mprotect (stack, len, PROT_READ | PROT_WRITE | PROT_EXEC) != 0)
--    return errno;
-+    if (errno != EACCES) /* PAX is enabled */
-+      return errno;
-   return 0;
- }
This page took 0.063192 seconds and 4 git commands to generate.