bca718
From 0d53b09f7052ae07d4e1dd96908a406d7841eab2 Mon Sep 17 00:00:00 2001
bca718
From: Stefan Liebler <stli@linux.vnet.ibm.com>
bca718
Date: Thu, 8 Oct 2015 10:28:40 +0200
bca718
Subject: [PATCH 02/30] S/390: Use attribute_hidden in ifunc-resolve.c
bca718
bca718
upstream-commit-id: 5f67c04f5e076d3cfc4d810e7f5d65ce1788b749
bca718
https://sourceware.org/ml/libc-alpha/2013-03/msg00085.html
bca718
bca718
This patch is needed to prepare for the optimized string function patchset.
bca718
Make the declarations of the optimized functions hidden in order to prevent
bca718
GOT slots being generated for them.
bca718
---
bca718
 sysdeps/s390/s390-32/multiarch/ifunc-resolve.c | 6 +++---
bca718
 sysdeps/s390/s390-64/multiarch/ifunc-resolve.c | 6 +++---
bca718
 2 files changed, 6 insertions(+), 6 deletions(-)
bca718
bca718
diff --git a/sysdeps/s390/s390-32/multiarch/ifunc-resolve.c b/sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
bca718
index f1bf8a3..42ca8da 100644
bca718
--- a/sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
bca718
+++ b/sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
bca718
@@ -34,9 +34,9 @@
bca718
 									\
bca718
   /* Make the declarations of the optimized functions hidden in order
bca718
      to prevent GOT slots being generated for them. */			\
bca718
-  extern __attribute__((visibility("hidden"))) void *FUNC##_z196;	\
bca718
-  extern __attribute__((visibility("hidden"))) void *FUNC##_z10;	\
bca718
-  extern __attribute__((visibility("hidden"))) void *FUNC##_g5;		\
bca718
+  extern void *FUNC##_z196 attribute_hidden;				\
bca718
+  extern void *FUNC##_z10 attribute_hidden;				\
bca718
+  extern void *FUNC##_g5 attribute_hidden;				\
bca718
 									\
bca718
   void *resolve_##FUNC (unsigned long int dl_hwcap)			\
bca718
   {									\
bca718
diff --git a/sysdeps/s390/s390-64/multiarch/ifunc-resolve.c b/sysdeps/s390/s390-64/multiarch/ifunc-resolve.c
bca718
index 5f56764..8db2c38 100644
bca718
--- a/sysdeps/s390/s390-64/multiarch/ifunc-resolve.c
bca718
+++ b/sysdeps/s390/s390-64/multiarch/ifunc-resolve.c
bca718
@@ -34,9 +34,9 @@
bca718
 									\
bca718
   /* Make the declarations of the optimized functions hidden in order
bca718
      to prevent GOT slots being generated for them. */			\
bca718
-  extern __attribute__((visibility("hidden"))) void *FUNC##_z196;	\
bca718
-  extern __attribute__((visibility("hidden"))) void *FUNC##_z10;	\
bca718
-  extern __attribute__((visibility("hidden"))) void *FUNC##_z900;	\
bca718
+  extern void *FUNC##_z196 attribute_hidden;				\
bca718
+  extern void *FUNC##_z10 attribute_hidden;				\
bca718
+  extern void *FUNC##_z900 attribute_hidden;				\
bca718
 									\
bca718
   void *resolve_##FUNC (unsigned long int dl_hwcap)			\
bca718
   {									\
bca718
-- 
bca718
2.3.0
bca718