On 2024-09-06 9:11 a.m., Niels Möller wrote:
Brad Smithbrad@comstyle.com writes:
--- a/fat-arm64.c +++ b/fat-arm64.c @@ -51,6 +51,8 @@ #if USE_GETAUXVAL # include <asm/hwcap.h> # include <sys/auxv.h> +#elif defined(HAVE_ELF_AUX_INFO) +# include <sys/auxv.h> #elif defined(__OpenBSD__)
Hi, change looks reasonable to me, but can you explain how it relates the the previous openbsd support based on sysctl (added in commit b874bdead2903d715c6964b2e8f9ed7d2b61db12)? Are both methods needed, which one being used depending on openbsd version?
Regards, /Niels
OpenBSD 7.6 will add elf_aux_info(). The sysctl path will be used for previous releases, so yes it is still necessary. We added the elf_aux_info() API as it is based on the Linux API and is more widespread, simpler API and more cross-platform with a simpler way of doing things. BTW, this also adds support for FreeBSD/arm64.