mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
(_dl_sysdep_start): Move DL_SYSDEP_OSCHECK before the use of the first system call.
This commit is contained in:
@ -138,6 +138,10 @@ _dl_sysdep_start (void **start_argptr,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef DL_SYSDEP_OSCHECK
|
||||||
|
DL_SYSDEP_OSCHECK (dl_fatal);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Linux doesn't provide us with any of these values on the stack
|
/* Linux doesn't provide us with any of these values on the stack
|
||||||
when the dynamic linker is run directly as a program. */
|
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))
|
if (__builtin_expect (__libc_enable_secure, 0))
|
||||||
__libc_check_standard_fds ();
|
__libc_check_standard_fds ();
|
||||||
|
|
||||||
#ifdef DL_SYSDEP_OSCHECK
|
|
||||||
DL_SYSDEP_OSCHECK (dl_fatal);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
(*dl_main) (phdr, phnum, &user_entry);
|
(*dl_main) (phdr, phnum, &user_entry);
|
||||||
return user_entry;
|
return user_entry;
|
||||||
}
|
}
|
||||||
|
@ -19,6 +19,11 @@
|
|||||||
|
|
||||||
#include <sys/sysctl.h>
|
#include <sys/sysctl.h>
|
||||||
|
|
||||||
|
/* There is no prototype for __sysctl in that file. */
|
||||||
|
extern int __sysctl (int *name, int nlen, void *oldval,
|
||||||
|
size_t *oldlenp, void *newval, size_t newlen);
|
||||||
|
|
||||||
|
|
||||||
#ifdef SHARED
|
#ifdef SHARED
|
||||||
/* This is the function used in the dynamic linker to print the fatal error
|
/* This is the function used in the dynamic linker to print the fatal error
|
||||||
message. */
|
message. */
|
||||||
|
Reference in New Issue
Block a user