[PATCH] [BZ #21391] x86: Set dl_platform and dl_hwcap from CPU features

H.J. Lu hjl.tools@gmail.com
Fri Apr 28 15:51:00 GMT 2017


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.



More information about the Libc-alpha mailing list