[PATCH] Add ifunc memcpy and memmove for aarch64
Steve Ellcey
sellcey@caviumnetworks.com
Thu Feb 23 00:27:00 GMT 2017
Here is a new version of the IFUNC functionality for aarch64. Â It does
not include the memcpy changes to use it. Â I tried to move the cpu
feature check to later in the start up process so that I could check
GLRO(dl_hwcap_mask) but it does not seem to be working. Â I was
wondering if anyone could look at this and see if I am doing something
wrong.
If I understand the code correctly, for a dynamically linked program,
dl_main is going to get called before dl_sysdep_start and dl_main is
where environment variables are processed and where dl_hwcap_mask
should be getting set. Â But when I check dl_hwcap_mask in
init_cpu_features (called from dl_sysdep_start), it does not seem to
have changed from its original value that is set in the new
dl-procinfo.h header file.
Any ideas on why this isn't working?
Steve Ellcey
sellcey@cavium.com
2017-02-22  Steve Ellcey  <sellcey@caviumnetworks.com>
    Adhemerval Zanella  <adhemerval.zanella@linaro.org>
* csu/libc-start.c (LIBC_START_MAIN): Use INIT_CPU_FEATURES.
* elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
* sysdeps/aarch64/dl-procinfo.h: New file.
* sysdeps/aarch64/ldsodefs.h: Include cpu-features.h.
* sysdeps/unix/sysv/linux/aarch64/Makefile (sysdep_routines):
Add cpu-features.
* sysdeps/unix/sysv/linux/aarch64/cpu-features.c: New file.
* sysdeps/unix/sysv/linux/aarch64/cpu-features.h: Likewise.
* sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c: Likewise.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ifunc.patch
Type: text/x-patch
Size: 9536 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20170223/b64c5fee/attachment.bin>
More information about the Libc-alpha
mailing list