This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]