about summary refs log tree commit diff
path: root/sysdeps/generic
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-08-22 17:59:19 +0000
committerUlrich Drepper <drepper@redhat.com>2000-08-22 17:59:19 +0000
commitc43a17327f2a016f3c8f4cbba61038a48ed59526 (patch)
treee55fb53d2b14cfde1f8eea55ae868e1480c31db9 /sysdeps/generic
parent32b4fe6a63b7a95a8bdcd0d799a9de2106723790 (diff)
downloadglibc-c43a17327f2a016f3c8f4cbba61038a48ed59526.tar.gz
glibc-c43a17327f2a016f3c8f4cbba61038a48ed59526.tar.xz
glibc-c43a17327f2a016f3c8f4cbba61038a48ed59526.zip
(_dl_sysdep_start): Move DL_SYSDEP_OSCHECK before the use of the first system call.
Diffstat (limited to 'sysdeps/generic')
-rw-r--r--sysdeps/generic/dl-sysdep.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sysdeps/generic/dl-sysdep.c b/sysdeps/generic/dl-sysdep.c
index c081269bb0..889a216d4a 100644
--- a/sysdeps/generic/dl-sysdep.c
+++ b/sysdeps/generic/dl-sysdep.c
@@ -138,6 +138,10 @@ _dl_sysdep_start (void **start_argptr,
 	break;
       }
 
+#ifdef DL_SYSDEP_OSCHECK
+  DL_SYSDEP_OSCHECK (dl_fatal);
+#endif
+
   /* Linux doesn't provide us with any of these values on the stack
      when the dynamic linker is run directly as a program.  */
 
@@ -178,10 +182,6 @@ _dl_sysdep_start (void **start_argptr,
   if (__builtin_expect (__libc_enable_secure, 0))
     __libc_check_standard_fds ();
 
-#ifdef DL_SYSDEP_OSCHECK
-  DL_SYSDEP_OSCHECK (dl_fatal);
-#endif
-
   (*dl_main) (phdr, phnum, &user_entry);
   return user_entry;
 }