bsd-user/target_os_elf: If ELF_HWCAP2 is defined, publish it
authorWarner Losh <imp@bsdimp.com>
Sat, 18 Sep 2021 15:38:11 +0000 (09:38 -0600)
committerWarner Losh <imp@bsdimp.com>
Mon, 18 Oct 2021 18:51:39 +0000 (12:51 -0600)
commitf6f0706cc2081ebaf786603aaaf204ae5a39dda7
tree408dae33fa7bca99e7eef3d7c213f135cc38db3c
parent11170cbdcc64e4207850eb886baeb6db436aaf46
bsd-user/target_os_elf: If ELF_HWCAP2 is defined, publish it

Some architectures publish AT_HWCAP2 as well as AT_HWCAP. Those
architectures will define ELF_HWCAP2 in their target_arch_elf.h files
for the value for this process. If it is defined, then publish it.

Signed-off-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Kyle Evans <kevans@FreeBSD.org>
bsd-user/freebsd/target_os_elf.h