mirror of git://sourceware.org/git/glibc.git
hurd: Add missing startup calls
DL_SYSDEP_INIT and DL_PLATFORM_INIT were not getting called, leading to
missing x86 platform tuning, now mandatory with 0f09154c64
("x86: Initialize CPU info via IFUNC relocation [BZ 26203]")
This commit is contained in:
parent
15b38ffc10
commit
a40b18b233
|
|
@ -125,10 +125,26 @@ _dl_sysdep_start (void **start_argptr,
|
||||||
else
|
else
|
||||||
_dl_hurd_data = (void *) p;
|
_dl_hurd_data = (void *) p;
|
||||||
|
|
||||||
|
GLRO(dl_platform) = NULL; /* Default to nothing known about the platform. */
|
||||||
|
|
||||||
__libc_enable_secure = _dl_hurd_data->flags & EXEC_SECURE;
|
__libc_enable_secure = _dl_hurd_data->flags & EXEC_SECURE;
|
||||||
|
|
||||||
__tunables_init (_environ);
|
__tunables_init (_environ);
|
||||||
|
|
||||||
|
#ifdef DL_SYSDEP_INIT
|
||||||
|
DL_SYSDEP_INIT;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef SHARED
|
||||||
|
#ifdef DL_PLATFORM_INIT
|
||||||
|
DL_PLATFORM_INIT;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Determine the length of the platform name. */
|
||||||
|
if (GLRO(dl_platform) != NULL)
|
||||||
|
GLRO(dl_platformlen) = strlen (GLRO(dl_platform));
|
||||||
|
#endif
|
||||||
|
|
||||||
if (_dl_hurd_data->flags & EXEC_STACK_ARGS
|
if (_dl_hurd_data->flags & EXEC_STACK_ARGS
|
||||||
&& _dl_hurd_data->user_entry == 0)
|
&& _dl_hurd_data->user_entry == 0)
|
||||||
_dl_hurd_data->user_entry = (vm_address_t) ENTRY_POINT;
|
_dl_hurd_data->user_entry = (vm_address_t) ENTRY_POINT;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue