Use FreeBSD's elf_aux_info for detecting ARM HW features
authorJussi Kivilinna <jussi.kivilinna@iki.fi>
Tue, 9 Apr 2019 17:04:19 +0000 (20:04 +0300)
committerJussi Kivilinna <jussi.kivilinna@iki.fi>
Tue, 9 Apr 2019 17:04:19 +0000 (20:04 +0300)
commit2ffc689d4757f31f1e2c4961b94b0b0c8dc302b7
tree5d4fc1dfe6222ae2feee87ae1ba2d33016f6978b
parent6812a2c5bd2d9129bfdf34f3daf89cd8543ed8e5
Use FreeBSD's elf_aux_info for detecting ARM HW features

* configure.ac: Add function check for 'elf_aux_info'.
* src/hwf-arm.c [HAVE_ELF_AUX_INFO]: Include 'sys/auxv.h'.
[HAVE_ELF_AUX_INFO && !HAVE_GETAUXVAL] (HAVE_GETAUXVAL)
(getauxval): New.
--

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
configure.ac
src/hwf-arm.c