elf: Remove unused NEED_DL_BASE_ADDR and _dl_base_addr

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
This commit is contained in:
Florian Weimer 2021-12-23 12:24:30 +01:00
parent f20f980c71
commit cd0c333d2e

View File

@ -54,9 +54,6 @@ extern char _end[] attribute_hidden;
/* Protect SUID program against misuse of file descriptors. */ /* Protect SUID program against misuse of file descriptors. */
extern void __libc_check_standard_fds (void); extern void __libc_check_standard_fds (void);
#ifdef NEED_DL_BASE_ADDR
ElfW(Addr) _dl_base_addr;
#endif
int __libc_enable_secure attribute_relro = 0; int __libc_enable_secure attribute_relro = 0;
rtld_hidden_data_def (__libc_enable_secure) rtld_hidden_data_def (__libc_enable_secure)
/* This variable contains the lowest stack address ever used. */ /* This variable contains the lowest stack address ever used. */
@ -136,11 +133,6 @@ _dl_sysdep_start (void **start_argptr,
case AT_ENTRY: case AT_ENTRY:
user_entry = av->a_un.a_val; user_entry = av->a_un.a_val;
break; break;
#ifdef NEED_DL_BASE_ADDR
case AT_BASE:
_dl_base_addr = av->a_un.a_val;
break;
#endif
#ifndef HAVE_AUX_SECURE #ifndef HAVE_AUX_SECURE
case AT_UID: case AT_UID:
case AT_EUID: case AT_EUID: