[PATCH] [BZ #21391] x86: Set dl_platform and dl_hwcap from CPU features
H.J. Lu
hjl.tools@gmail.com
Wed May 3 14:36:00 GMT 2017
On Fri, Apr 28, 2017 at 8:51 AM, H.J. Lu <hjl.tools@gmail.com> wrote:
> 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.
>
I will check it today.
--
H.J.
More information about the Libc-alpha
mailing list