This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] x86-64: Don't set GLRO(dl_platform) to NULL [BZ #22299]
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Valery Reznic <valery_reznic at yahoo dot com>
- Cc: GNU C Library <libc-alpha at sourceware dot org>
- Date: Tue, 17 Oct 2017 09:22:57 -0700
- Subject: Re: [PATCH] x86-64: Don't set GLRO(dl_platform) to NULL [BZ #22299]
- Authentication-results: sourceware.org; auth=none
- References: <20171017154436.GA29035@gmail.com> <460065513.644164.1508256542062@mail.yahoo.com>
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.