V5 [PATCH 2/2] x86: Add a LD_PRELOAD IFUNC resolver test for CPU_FEATURE_USABLE
H.J. Lu
hjl.tools@gmail.com
Wed Oct 24 12:43:00 GMT 2018
On 10/24/18, Florian Weimer <fweimer@redhat.com> wrote:
> * H. J. Lu:
>
>> I guess you knew that this issue was independent of my new functions.
>> You will get the same error regardless of what the get_free body has.
>
> Yes, the check is certainly overly conservative. I thought we want to
> remove it. Don't we trigger it in glibc in a few places? If the check
> is gone, then I think we will see incorrect results from the new
> interface.
>
> I think we are very consistent right now when it comes to relocations in
> IFUNC handlers. I want to see this settled before adding something that
> requires a relocation which is (among other things) targeted at IFUNC
> resolvers.
>
<sys/platform/x86.h> isn't targeted for IFUNC. My first use is to add
x86_tsc_to_ns and x86_ns_to_tsc. I am enclosing 2 patches here.
--
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-x86-Add-COMMON_CPUID_INDEX_-D_ECX_1-80000007-8000000.patch
Type: text/x-patch
Size: 10753 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20181024/784c6639/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-sys-platform-x86.h-Add-x86_tsc_to_ns-x86_ns_to_tsc.patch
Type: text/x-patch
Size: 16543 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20181024/784c6639/attachment-0001.bin>
More information about the Libc-alpha
mailing list