From 1ae8bfe07c1ab2444cc1d186321ff1431a1b9f96 Mon Sep 17 00:00:00 2001 From: "Ryan S. Arnold" Date: Fri, 28 Jun 2013 16:50:48 -0500 Subject: Add GLRO(dl_hwcap2) for new AT_HWCAP2 auxv_t a_type. --- elf/dl-support.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'elf/dl-support.c') diff --git a/elf/dl-support.c b/elf/dl-support.c index 76752f3..5a082fe 100644 --- a/elf/dl-support.c +++ b/elf/dl-support.c @@ -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; -- cgit v1.1