This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
IFUNCs in libpthread
- From: Steve Ellcey <sellcey at cavium dot com>
- To: libc-alpha <libc-alpha at sourceware dot org>
- Date: Thu, 18 May 2017 11:24:38 -0700
- Subject: IFUNCs in libpthread
- Authentication-results: sourceware.org; auth=none
- Authentication-results: sourceware.org; dkim=none (message not signed) header.d=none;sourceware.org; dmarc=none action=none header.from=cavium.com;
- Reply-to: sellcey at cavium dot com
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
I have a question about multiarch directories and IFUNC. I am
looking at the possibility of making pthread_spin_lock an IFUNC
on aarch64 so that there can be a version using LSE instructions
if they are available. Right now, the only IFUNC's are in libc,
so having one in libpthread would be a new situation.
I am trying to decide if the multiarch routines should be in
sysdeps/aarch64/multiarch (where libc multiarch files go and
where I would like to put my memcpy/memmove IFUNCs), or if
I should create a sysdeps/aarch64/multiarch/nptl directory or
perhaps a sysdeps/aarch64/nptl/multiarch directory.
What do people think? Is there a preference for where these
should go? I think any location is going to require some Makefile
or configure changes and I would like to have some idea of the
'right' place before I work on that.
Steve Ellcey
sellcey@cavium.com