[PATCH] x86-64: Implement strcpy family IFUNC selectors in C
H.J. Lu
hjl.tools@gmail.com
Sun Jun 11 23:33:00 GMT 2017
On Sun, Jun 11, 2017 at 12:46 PM, H.J. Lu <hjl.tools@gmail.com> wrote:
> On Sun, Jun 11, 2017 at 11:22 AM, Florian Weimer
> <fweimer@gapps.redhat.com> wrote:
>> On 06/11/2017 03:50 PM, H.J. Lu wrote:
>>>
>>> All internal calls within libc.so can use IFUNC on x86-64 since unlike
>>> x86, x86-64 doesn't need to reserve a register to make a PLT call.
>>
>>
>> Shouldn't this rather say, “because, unlike x86, x86-64 supports PC-relative
>> addressing to access the GOT entry”? That's probably the root cause of the
>
> Both are true. The end result is there is no extra needed for call
> via PLT.
>
>> performance difference.
>>
Here is the patch with updated commit message. I also renamed
ifunc-strcpy.h to ifunc-unaligned-ssse3.h so that it can be used for
strcat.
Any other comments?
--
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-x86-64-Implement-strcpy-family-IFUNC-selectors-in-C.patch
Type: text/x-patch
Size: 20255 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20170611/12308f32/attachment.bin>
More information about the Libc-alpha
mailing list