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.
This commit is contained in:
Luke Howard
2018-12-23 06:16:05 +00:00
parent 070d0cf928
commit 2974a9841f

View File

@@ -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;