mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-01 10:06:57 +03:00
Add GLRO(dl_hwcap2) for new AT_HWCAP2 auxv_t a_type.
This commit is contained in:
@ -165,6 +165,7 @@ ElfW(auxv_t) *_dl_auxv;
|
||||
const ElfW(Phdr) *_dl_phdr;
|
||||
size_t _dl_phnum;
|
||||
uint64_t _dl_hwcap __attribute__ ((nocommon));
|
||||
uint64_t _dl_hwcap2 __attribute__ ((nocommon));
|
||||
|
||||
/* This is not initialized to HWCAP_IMPORTANT, matching the definition
|
||||
of _dl_important_hwcaps, below, where no hwcap strings are ever
|
||||
@ -249,6 +250,9 @@ _dl_aux_init (ElfW(auxv_t) *av)
|
||||
case AT_HWCAP:
|
||||
GLRO(dl_hwcap) = (unsigned long int) av->a_un.a_val;
|
||||
break;
|
||||
case AT_HWCAP2:
|
||||
GLRO(dl_hwcap2) = (unsigned long int) av->a_un.a_val;
|
||||
break;
|
||||
#ifdef NEED_DL_SYSINFO
|
||||
case AT_SYSINFO:
|
||||
GL(dl_sysinfo) = av->a_un.a_val;
|
||||
|
Reference in New Issue
Block a user