[PATCH] x86-64: Don't set GLRO(dl_platform) to NULL [BZ #22299]

H.J. Lu hjl.tools@gmail.com
Tue Oct 17 16:23:00 GMT 2017


On Tue, Oct 17, 2017 at 9:09 AM, Valery Reznic <valery_reznic@yahoo.com> wrote:
> And while we on it - I don't think that dl_hwcap should be reset either:
>
> sysdeps/x86/cpu-features.c:
>   /* Reuse dl_platform, dl_hwcap and dl_hwcap_mask for x86.  */
>   GLRO(dl_hwcap) = 0;
>
> If kernel provide in the AT_HWCAP/AT_HWCAP2 some info, why destroy it?
>

Kernel doesn't provide anything useful for x86-64 and we can get everything
we need from CPUID.

-- 
H.J.



More information about the Libc-alpha mailing list