sys-libs/glibc: enable IFUNC support only on whitelisted ARCHes, bug #641216
authorSergei Trofimovich <slyfox@gentoo.org>
Wed, 20 Dec 2017 09:35:00 +0000 (09:35 +0000)
committerSergei Trofimovich <slyfox@gentoo.org>
Wed, 20 Dec 2017 09:52:55 +0000 (09:52 +0000)
commitac450135f29ef850303589af998373d936955476
tree64a8796ea47de503bc596e73cbdc6919695364d2
parenta2e3a9b57e120654f14175fbf4947d3f56c4ce9d
sys-libs/glibc: enable IFUNC support only on whitelisted ARCHes, bug #641216

We explicitly disable IFUNC support on the following targets:
    alpha/hppa/ia64/mips/m68k/nios2/riscv/sh
to workaround weak IFUNC detection on binutils/glibc side.

Otherwise at least on ia64 glibc generates IFUNC entries against
compat librt.so.1 symbols (to redirect them back to libc.so.6)
but linker does not produce correct relocations. As a result all
IFUNC-backed functions don't work.

Reported-by: Émeric Maschino
Bug: https://sourceware.org/PR22634
Closes: https://bugs.gentoo.org/641216
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
eclass/toolchain-glibc.eclass
sys-libs/glibc/glibc-2.26-r3.ebuild