From 2974a9841fc818994111d461fbb7d3f46b1fcaba Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Sun, 23 Dec 2018 06:16:05 +0000 Subject: [PATCH] roken: skip AT_HWCAP[2] in auxval test (#446) AT_HWCAP and AT_HWCAP2 are handled specially by libc and cannot be parsed directly out of /proc/self/auxv. Skip them in the auxval test. --- lib/roken/test-auxval.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/roken/test-auxval.c b/lib/roken/test-auxval.c index f76c713bb..7e19ee530 100644 --- a/lib/roken/test-auxval.c +++ b/lib/roken/test-auxval.c @@ -166,7 +166,8 @@ main(int argc, char **argv, char **env) if (a[1] != 0) warnx("AT_NULL with non-zero value %lu?!", a[1]); continue; - } + } else if (a[0] == AT_HWCAP || a[0] == AT_HWCAP2) + continue; /* these are handled specially by libc */ errno = EACCES;