[PATCH] Linux: Call dl_hwcap_check earlier, before full auxiliary vector parse

Andreas Schwab schwab@suse.de
Mon Jun 17 14:28:19 GMT 2024


On Jun 17 2024, Florian Weimer wrote:

> +  {
> +    for (ElfW(auxv_t) *av = GLRO(dl_auxv); av->a_type != AT_NULL; av++)
> +      if (av->a_type == AT_HWCAP2)
> +        {
> +          dl_hwcap2 = av->a_un.a_val;
> +          break;
> +        }
> +  }

I don't think the outer braces are needed here.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."


More information about the Libc-alpha mailing list