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:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user