(_dl_make_stack_executable): Remember that we changed the permission.
authordrepper <drepper>
Thu, 25 Sep 2003 03:24:18 +0000 (03:24 +0000)
committerdrepper <drepper>
Thu, 25 Sep 2003 03:24:18 +0000 (03:24 +0000)
sysdeps/unix/sysv/linux/dl-execstack.c

index 42300b0..c840f61 100644 (file)
@@ -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)