about summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-09-25 03:31:59 +0000
committerUlrich Drepper <drepper@redhat.com>2003-09-25 03:31:59 +0000
commit69c9fa045bce5e125e2e4525eb62ec58965e92f5 (patch)
tree82128d16507f4f4a92caec8e3e5ae248b1f23c7c /sysdeps
parent279f1143afdb06e263dfab510a3e2cbb022014fe (diff)
downloadglibc-69c9fa045bce5e125e2e4525eb62ec58965e92f5.tar.gz
glibc-69c9fa045bce5e125e2e4525eb62ec58965e92f5.tar.xz
glibc-69c9fa045bce5e125e2e4525eb62ec58965e92f5.zip
Update.
	* sysdeps/unix/sysv/linux/dl-execstack.c
	(_dl_make_stack_executable): Remember that we changed the permission.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/unix/sysv/linux/dl-execstack.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/dl-execstack.c b/sysdeps/unix/sysv/linux/dl-execstack.c
index 42300b0f4d..c840f61031 100644
--- a/sysdeps/unix/sysv/linux/dl-execstack.c
+++ b/sysdeps/unix/sysv/linux/dl-execstack.c
@@ -110,6 +110,9 @@ _dl_make_stack_executable (void)
 # error "Define either _STACK_GROWS_DOWN or _STACK_GROWS_UP"
 #endif
 
+  /* Remember that we changed the permission.  */
+  GL(dl_stack_flags) |= PF_X;
+
   return 0;
 }
 rtld_hidden_def (_dl_make_stack_executable)