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] [BZ #21391] x86: Set dl_platform and dl_hwcap from CPU features


On Fri, Apr 28, 2017 at 7:45 AM, Florian Weimer <fweimer@redhat.com> wrote:
> On 04/28/2017 04:44 PM, H.J. Lu wrote:
>>
>> Any other comments?
>
>
> I don't have any further comments.
>
> Except maybe this: Why isn't this is in the kernel, like for the other
> architectures?
>

On x86,  CPUID is available to both kernel and user space.  Kernel
sets AT_PLATFORM and AT_HWCAP from CPUID.  But it isn't flexible
for setting dynamic linker search path.   There is no support for platform
nor hardware capability in dynamic linker search path for x86-64.
AT_HWCAP only provides a small subset of features from CPUID.  My
patch sets dynamic linker search path in user space from CPUID.  It
works for both i386 and x86-64.


-- 
H.J.


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