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: Florian Weimer <fweimer at redhat dot com>
- To: "H.J. Lu" <hjl dot tools at gmail 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: Wed, 2 Aug 2017 20:51:22 +0200
- Subject: Re: [PATCH, 2.27] x86-64: Use IFUNC memcpy and mempcpy in libc.a
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx05.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx05.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=fweimer at redhat dot com
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com AE01E37EEA
- 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>
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.
Florian