]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Make elf_aux_info() as public libc function.
authormmel <mmel@FreeBSD.org>
Sat, 21 Oct 2017 12:06:18 +0000 (12:06 +0000)
committermmel <mmel@FreeBSD.org>
Sat, 21 Oct 2017 12:06:18 +0000 (12:06 +0000)
commit990c7fb0441bf28247cc683ea30f513dff4c4d4b
tree2fcbf33376f1218d79dcdfb25c0e68bd8f57ad41
parentbe76b77ce71dd93ffadc4cb8ba57ce51a5550cfa
Make elf_aux_info() as public libc function.
- Teach elf aux vector functions about newly added AT_HWCAP and AT_HWCAP2
  vectors.
- Export _elf_aux_info() as new public libc function elf_aux_info(3)

The elf_aux_info(3) should be considered as FreeBSD counterpart of glibc
getauxval() with more robust interface.

Note:
We cannot name this new function as getauxval(), with glibc compatible
interface. Some ports autodetect its existence and then expects that all
Linux specific AT_<*> vectors are defined and implemented.

MFC after: 1 month
Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D12743
lib/libc/gen/Symbol.map
lib/libc/gen/auxv.c
sys/sys/auxv.h [new file with mode: 0644]