mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-07 06:43:00 +03:00
elf: Remove __libc_init_secure
After73fc4e28b9
, __libc_enable_secure_decided is always 0 and a statically linked executable may overwrite __libc_enable_secure without considering AT_SECURE. The __libc_enable_secure has been correctly initialized in _dl_aux_init, so just remove __libc_enable_secure_decided and __libc_init_secure. This allows us to remove some startup_get*id functions from22b79ed7f4
. Reviewed-by: Florian Weimer <fweimer@redhat.com>
This commit is contained in:
@@ -285,9 +285,6 @@ LIBC_START_MAIN (int (*main) (int, char **, char ** MAIN_AUXVEC_DECL),
|
||||
}
|
||||
}
|
||||
|
||||
/* Initialize very early so that tunables can use it. */
|
||||
__libc_init_secure ();
|
||||
|
||||
__tunables_init (__environ);
|
||||
|
||||
ARCH_INIT_CPU_FEATURES ();
|
||||
|
Reference in New Issue
Block a user