]> git.ipfire.org Git - thirdparty/glibc.git/commit
[BZ #21745] powerpc: build some IFUNC math functions for libc and libm
authorTulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
Fri, 15 Sep 2017 18:07:28 +0000 (15:07 -0300)
committerTulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
Fri, 11 Jan 2019 16:14:10 +0000 (14:14 -0200)
commitd851e9199e80ced73ee497339b6231950efbf785
treee00f19fae89e7ca5461db9e62f18af89af94ba0c
parenta5bd0ba1926ecb6f6b4693921c60cdfca82e5c91
[BZ #21745] powerpc: build some IFUNC math functions for libc and libm

Some math functions have to be distributed in libc because they're
required by printf.
libc and libm require their own builds of these functions, e.g. libc
functions have to call __stack_chk_fail_local in order to bypass the
PLT, while libm functions have to call __stack_chk_fail.

While math/Makefile treat the generic cases, i.e. s_isinff, the
multiarch Makefile has to treat its own files, i.e. s_isinff-ppc64.

[BZ #21745]
* sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
[$(subdir) = math] (sysdep_calls): New variable.  Has the
previous contents of sysdep_routines, but re-sorted..
[$(subdir) = math] (sysdep_routines): Re-use the contents from
sysdep_calls.
[$(subdir) = math] (libm-sysdep_routines): Remove the functions
defined in sysdep_calls and replace by the respective m_* names.
* sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
(compat_symbol): Undefine to avoid duplicated compat symbols in
libc.

(cherry picked from commit 61c45f250528dae431391823a9766053e61ccde1)
ChangeLog
sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S