mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-01 10:06:57 +03:00
elf: Remove LD_HWCAP_MASK / tunable glibc.cpu.hwcap_mask
Remove the environment variable LD_HWCAP_MASK and the tunable glibc.cpu.hwcap_mask as those are not used anymore in common-code after removal in elf/dl-cache.c:search_cache(). The only remaining user is sparc32 where it is used in elf_machine_matches_host(). If sparc32 does not need it anymore, we can get rid of it at all. Otherwise we could also move LD_HWCAP_MASK / tunable glibc.cpu.hwcap_mask to be sparc32 specific. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
This commit is contained in:
@ -39,13 +39,7 @@ elf_machine_matches_host (const Elf32_Ehdr *ehdr)
|
||||
return 1;
|
||||
else if (ehdr->e_machine == EM_SPARC32PLUS)
|
||||
{
|
||||
#if defined SHARED
|
||||
uint64_t hwcap_mask = TUNABLE_GET (glibc, cpu, hwcap_mask, uint64_t,
|
||||
NULL);
|
||||
return GLRO(dl_hwcap) & hwcap_mask & HWCAP_SPARC_V9;
|
||||
#else
|
||||
return GLRO(dl_hwcap) & HWCAP_SPARC_V9;
|
||||
#endif
|
||||
}
|
||||
else
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user