about summary refs log tree commit diff
path: root/elf/dl-support.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2003-07-29 21:28:19 +0000
committerRoland McGrath <roland@gnu.org>2003-07-29 21:28:19 +0000
commit98c24a32e60751a02e33e08f7069dd7725c51fd4 (patch)
treeeeda8327b012ea2428f55ac7c0b35dd279e3ba19 /elf/dl-support.c
parent6e0bb375145d753d00f3c5ce1717bf03a2085365 (diff)
downloadglibc-98c24a32e60751a02e33e08f7069dd7725c51fd4.tar.gz
glibc-98c24a32e60751a02e33e08f7069dd7725c51fd4.tar.xz
glibc-98c24a32e60751a02e33e08f7069dd7725c51fd4.zip
* elf/dl-support.c: Likewise.
Diffstat (limited to 'elf/dl-support.c')
-rw-r--r--elf/dl-support.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/elf/dl-support.c b/elf/dl-support.c
index 6a02e4ea1f..52447f489a 100644
--- a/elf/dl-support.c
+++ b/elf/dl-support.c
@@ -125,16 +125,6 @@ ElfW(Phdr) *_dl_phdr;
 size_t _dl_phnum;
 unsigned long int _dl_hwcap __attribute__ ((nocommon));
 
-/* Prevailing state of the stack, PF_X indicating it's executable.  */
-ElfW(Word) _dl_stack_flags = PF_R|PF_W|PF_X;
-
-/* If loading a shared object requires that we make the stack executable
-   when it was not, we do it by calling this function.
-   It returns an errno code or zero on success.  */
-int (*_dl_make_stack_executable_hook) (void) internal_function
-  = _dl_make_stack_executable;
-
-
 #ifdef NEED_DL_SYSINFO
 /* Needed for improved syscall handling on at least x86/Linux.  */
 uintptr_t _dl_sysinfo = DL_SYSINFO_DEFAULT;
@@ -270,15 +260,6 @@ _dl_non_dynamic_init (void)
   /* Now determine the length of the platform string.  */
   if (_dl_platform != NULL)
     _dl_platformlen = strlen (_dl_platform);
-
-  /* Scan for a program header telling us the stack is nonexecutable.  */
-  if (_dl_phdr != NULL)
-    for (uint_fast16_t i = 0; i < _dl_phnum; ++i)
-      if (_dl_phdr[i].p_type == PT_GNU_STACK)
-	{
-	  _dl_stack_flags = _dl_phdr[i].p_flags;
-	  break;
-	}
 }