]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
[PowerPC64] Don't define __GI_ variant of isnan for static lib
authorAlan Modra <amodra@gmail.com>
Mon, 23 Oct 2017 06:57:30 +0000 (17:27 +1030)
committerAlan Modra <amodra@gmail.com>
Tue, 31 Oct 2017 01:57:19 +0000 (12:27 +1030)
It seems to me that libc.a should not contain any of the __GI_
symbols, and certainly --enable-multi-arch ought to not add to the
list.  At the end of this patch series we have the following in both
--enable-multi-arch and --disable-multi-arch libc.a:
0000000000000000 T __GI___readdir64
0000000000000000 T __GI___fxstatat64
0000000000000000 T __GI_getrlimit
0000000000000000 T __GI___getrlimit

* sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
Redefine only when SHARED.

ChangeLog
sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S

index b56499de314e557ab97ca05b5dab88cfe256242a..c29c22cc8a76d1ee472865c88cd87828b37645f0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2017-10-31  Alan Modra  <amodra@gmail.com>
+
+       * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
+       Redefine only when SHARED.
+
 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
 
        * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
index eba0d4ff5eaf0412c7d2d565f39b5da990c185fc..fe2d4f1aa4ebd2e62b4694f851ea9c1d1a4e1165 100644 (file)
 
 
 #define __isnan __isnan_ppc64
-#undef hidden_def
-#define hidden_def(name) \
-  .globl __GI___isnan ; .set __GI___isnan,__isnan_ppc64
+#ifdef SHARED
+ #undef hidden_def
+ #define hidden_def(name) \
+   .globl __GI___isnan ; .set __GI___isnan,__isnan_ppc64
+#endif
 
 #include <sysdeps/powerpc/powerpc64/fpu/s_isnan.S>