mirror of
https://github.com/opencv/opencv.git
synced 2026-11-24 02:07:54 -06:00
elf_aux_info() returns non-zero on failure and leaves the output buffer untouched. The ppc64 CPU feature detection reused one variable for both AT_HWCAP and AT_HWCAP2, so if the AT_HWCAP2 lookup failed the AT_HWCAP value was tested against the PPC_FEATURE2_* bits. Use a separate variable for AT_HWCAP2 and treat a failed lookup as no features available.