about summary refs log tree commit diff
path: root/elf
diff options
context:
space:
mode:
Diffstat (limited to 'elf')
-rw-r--r--elf/dl-load.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/elf/dl-load.c b/elf/dl-load.c
index 03b7f0b4ee..f307dada2e 100644
--- a/elf/dl-load.c
+++ b/elf/dl-load.c
@@ -36,6 +36,7 @@
 #include <dl-osinfo.h>
 #include <stackinfo.h>
 #include <caller.h>
+#include <sysdep.h>
 
 #include <dl-dst.h>
 
@@ -1373,6 +1374,10 @@ cannot allocate TLS data structures for initial thread");
 #endif
 	__stack_prot |= PROT_READ|PROT_WRITE|PROT_EXEC;
 
+#ifdef check_consistency
+      check_consistency ();
+#endif
+
       errval = (*GL(dl_make_stack_executable_hook)) (stack_endp);
       if (errval)
 	{