This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH, 2.27] x86-64: Use IFUNC memcpy and mempcpy in libc.a
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Florian Weimer <fweimer at redhat dot com>
- Cc: Tulio Magno Quites Machado Filho <tuliom at linux dot vnet dot ibm dot com>, GNU C Library <libc-alpha at sourceware dot org>, "Carlos O'Donell" <carlos at redhat dot com>, "Joseph S. Myers" <joseph at codesourcery dot com>, gftg at linux dot vnet dot ibm dot com
- Date: Fri, 4 Aug 2017 06:18:49 -0700
- Subject: Re: [PATCH, 2.27] x86-64: Use IFUNC memcpy and mempcpy in libc.a
- Authentication-results: sourceware.org; auth=none
- References: <6cc4b956-0a60-73af-ea6b-08c11cbc2267@redhat.com> <20170708183113.28695-1-tuliom@linux.vnet.ibm.com> <CAMe9rOr1YEZKXbaExp83gojA2pBsf8w=0kNB9pMwXMCzH2kA6g@mail.gmail.com> <87eftq1q2e.fsf@linux.vnet.ibm.com> <CAMe9rOoNg=UpL=R8+_M=upmANOi6XoegSMqq6auYL7oFpZk8cg@mail.gmail.com> <20170709145903.GA6521@gmail.com> <CAMe9rOpn9=_rnKHMY=TXuy+NiJndAzSPh0JAsW+Aw6f=ZSy+Jw@mail.gmail.com> <fe51dfed-9c7b-2549-967e-9cef1f0949c4@redhat.com> <CAMe9rOr7Cz_U8dARsEgLkTOw5Wi51Rrot9778kjsE0vhQ6MnNA@mail.gmail.com> <e6fea57d-2009-3ffa-2f45-1e7a4f7d66b4@redhat.com>
On Wed, Aug 2, 2017 at 11:51 AM, Florian Weimer <fweimer@redhat.com> wrote:
> On 08/02/2017 08:36 PM, H.J. Lu wrote:
>> If there is no memcpy/mempcpy call before ARCH_SETUP_IREL (),
>> we can use IFUNC memcpy and mempcpy in static executable.
>> Since the code path up to ARCH_SETUP_IREL () is the same for
>> all static executables, the static executable tests within glibc are
>> sufficient to verify that it is safe to do so.
>
> Ah, this is a good point. Thanks.
>
I am checking it in today.
--
H.J.