aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/powerpc/powerpc64
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2017-12-01 23:37:46 +0000
committerJoseph Myers <joseph@codesourcery.com>2017-12-01 23:37:46 +0000
commit0d5ba561c1ef3d4abf060bbdba88c29379d4adbe (patch)
treeaee52c847d5920e6739d69b68ff96f9f4597a378 /sysdeps/powerpc/powerpc64
parent51ea3b2042ae5012c8e93142baf2e4e84909ff5f (diff)
downloadglibc-0d5ba561c1ef3d4abf060bbdba88c29379d4adbe.zip
glibc-0d5ba561c1ef3d4abf060bbdba88c29379d4adbe.tar.gz
glibc-0d5ba561c1ef3d4abf060bbdba88c29379d4adbe.tar.bz2
Base powerpc logbl compat symbols on __logb not logb.
Some powerpc logb implementations define a compat symbol for logbl based on logb, whereas libm_alias_double defines such a compat symbol based on __logb instead. This difference (logb is weak, __logb isn't) is enough to result in different installed stripped shared libraries. The difference in the installed libraries isn't significant, but first changing the compat_symbol calls helps make it possible to validate a subsequent change to use libm_alias_double by comparison of libraries, so this patch does such a preliminary change. Tested with build-many-glibcs.py for all its hard-float powerpc configurations. * sysdeps/powerpc/power7/fpu/s_logb.c [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat symbol based on __logb, not on logb. * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise. * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
Diffstat (limited to 'sysdeps/powerpc/powerpc64')
-rw-r--r--sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c b/sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
index d70919e..c2e9f4d 100644
--- a/sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
+++ b/sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
@@ -37,5 +37,5 @@ weak_alias (__logb, logbl)
#endif
#if LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)
-compat_symbol (libm, logb, logbl, GLIBC_2_0);
+compat_symbol (libm, __logb, logbl, GLIBC_2_0);
#endif