[PATCH v2] elf: Use dl-symbol-redir-ifunc.h instead _dl_strlen
Adhemerval Zanella Netto
adhemerval.zanella@linaro.org
Thu Feb 12 18:53:35 GMT 2026
On 12/02/26 14:27, DJ Delorie wrote:
>
> A quick search shows that strlen also has an ifunc in i386, powerpc, and
> s390. Do these not need redirects?
>
It depends on how the ABI implements iFUNC support. The iFUNC is already
disable for the loader (rtld-*) objects, and i386 [1] and powerpc [2][3]
only enables it for SHARED.
But I overlook s390x, where in my tests I did not add an alias because
gcc is optimizing strlen away by inlining it. I will add it since s390x
does define strlen as iFUNC even for !SHARED.
[1] sysdeps/i386/i686/multiarch/strlen.c
[2] sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c
[3] sysdeps/powerpc/powerpc64/multiarch/strlen.c
More information about the Libc-alpha
mailing list