]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
powerpc: Export __parse_hwcap_and_convert_at_platform to libc.a.
authorCarlos Eduardo Seo <cseo@linux.vnet.ibm.com>
Wed, 9 Dec 2015 20:48:04 +0000 (18:48 -0200)
committerTulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
Tue, 22 Dec 2015 17:41:19 +0000 (15:41 -0200)
Commit 67385a01d229751569b6aac067ffdcd813a15d7a added a new feature for
powerpc, where we store HWCAP/Platform bits in the TCB.  In the dynamic
linking case, we use the versioned symbol
'__parse_hwcap_and_convert_at_platform' to verify if this feature is
available.  However, the same symbol was not exported to libc.a, making
it not possible for GCC to check for it prior to link time.

ChangeLog
sysdeps/powerpc/hwcapinfo.c

index 83143de1008bbd251e1eeb4355e9356d7f5678c5..a32717ea0560dcb15be34ecf379420d0dc61d4f4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
+
+       * sysdeps/powerpc/hwcapinfo.c: Export symbol
+       __parse_hwcap_and_convert_at_platform to libc.a.
+
 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
 
        * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Added
index a115ffccd9e2639077ee5f67099be494ddf5d863..b885f1cff6e5426fae85f5a308a2f856843ca378 100644 (file)
@@ -74,3 +74,11 @@ __tcb_parse_hwcap_and_convert_at_platform (void)
 versioned_symbol (ld, __tcb_parse_hwcap_and_convert_at_platform, \
                  __parse_hwcap_and_convert_at_platform, GLIBC_2_23);
 #endif
+
+/* Export __parse_hwcap_and_convert_at_platform in libc.a.  This is used by
+   GCC to make sure that the HWCAP/Platform bits are stored in the TCB when
+   using __builtin_cpu_is()/__builtin_cpu_supports() in the static case.  */
+#ifndef SHARED
+weak_alias (__tcb_parse_hwcap_and_convert_at_platform, \
+           __parse_hwcap_and_convert_at_platform);
+#endif