]> git.ipfire.org Git - thirdparty/glibc.git/commit
math: Fix i386 and m68k fmod/fmodf on static build (BZ 31488)
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 14 Mar 2024 17:59:35 +0000 (14:59 -0300)
committerAurelien Jarno <aurelien@aurel32.net>
Tue, 2 Jul 2024 12:25:52 +0000 (14:25 +0200)
commit6cb25aff8583421cf7a55ddd40abd7bd49176c60
treec52cdad1a96889ae7d4d8f91488aa354f5c4c1c7
parent74630b1bb717fb98f4692261f2be8d5c84851fa3
math: Fix i386 and m68k fmod/fmodf on static build (BZ 31488)

The commit 16439f419b removed the static fmod/fmodf on i386 and m68k
with and empty w_fmod.c (required for the ABIs that uses the newly
implementation).  This patch fixes by adding the required symbols on
the arch-specific w_fmod{f}_compat.c implementation.

To statically build fmod fails on some ABI (alpha, s390, sparc) because
it does not export the ldexpf128, this is also fixed by this patch.

Checked on i686-linux-gnu and with a build for m68k-linux-gnu.

Reviewed-by: Aurelien Jarno <aurelien@aurel32.net>
Tested-by: Aurelien Jarno <aurelien@aurel32.net>
(cherry picked from commit 0b716305dfb48c2d13ed4f7d06c082b90c1d226f)
sysdeps/i386/fpu/w_fmod_compat.c
sysdeps/i386/fpu/w_fmodf_compat.c
sysdeps/ieee754/ldbl-opt/s_ldexpl.c
sysdeps/m68k/m680x0/fpu/w_fmod_compat.c
sysdeps/m68k/m680x0/fpu/w_fmodf_compat.c