1 diff -urN glibc-2.3.5.orig/sysdeps/unix/sysv/linux/dl-execstack.c glibc-2.3.5/sysdeps/unix/sysv/linux/dl-execstack.c
2 --- glibc-2.3.5.orig/sysdeps/unix/sysv/linux/dl-execstack.c 2005-09-23 13:07:35.000000000 +0200
3 +++ glibc-2.3.5/sysdeps/unix/sysv/linux/dl-execstack.c 2005-09-23 13:31:45.000000000 +0200
9 + if (errno == EACCES) /* PaX */
18 /* Unexpected failure mode. */
19 if (errno != ENOMEM && errno != EFAULT)
21 + if (errno == EACCES) /* PaX */
26 if (size == GLRO(dl_pagesize))
27 /* We just tried to mprotect the top hole page and failed.
30 /* Unexpected failure mode. */
31 if (errno != ENOMEM && errno != EFAULT)
33 + if (errno == EACCES) /* PaX */
38 if (size == GLRO(dl_pagesize))
39 /* We just tried to mprotect the lowest hole page and failed.