aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorAndreas Krebbel <krebbel@linux.vnet.ibm.com>2012-09-03 14:06:27 +0200
committerAndreas Krebbel <krebbel@linux.vnet.ibm.com>2012-09-03 14:08:52 +0200
commit511fa2864a8d01a09b23a6b8b9a599429b7055f6 (patch)
tree1df5140de81d6f2fe46a29a8983d6978ab9ce93d /sysdeps
parent5f30cfec00f64edfc0ad932bf7065de13966b69d (diff)
downloadglibc-511fa2864a8d01a09b23a6b8b9a599429b7055f6.tar
glibc-511fa2864a8d01a09b23a6b8b9a599429b7055f6.tar.gz
glibc-511fa2864a8d01a09b23a6b8b9a599429b7055f6.tar.bz2
glibc-511fa2864a8d01a09b23a6b8b9a599429b7055f6.zip
S/390: Make IFUNC optimized mem* functions hidden.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/s390/s390-32/multiarch/ifunc-resolve.c8
-rw-r--r--sysdeps/s390/s390-64/multiarch/ifunc-resolve.c8
2 files changed, 10 insertions, 6 deletions
diff --git a/sysdeps/s390/s390-32/multiarch/ifunc-resolve.c b/sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
index fd6e367065..6a86c03c25 100644
--- a/sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
+++ b/sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
@@ -32,9 +32,11 @@
".globl __GI_" #FUNC "\n\t" \
".set __GI_" #FUNC "," #FUNC "\n"); \
\
- extern void *FUNC##_z10; \
- extern void *FUNC##_z196; \
- extern void *FUNC##_g5; \
+ /* Make the declarations of the optimized functions hidden in order
+ to prevent GOT slots being generated for them. */ \
+ extern __attribute__((visibility("hidden"))) void *FUNC##_z196; \
+ extern __attribute__((visibility("hidden"))) void *FUNC##_z10; \
+ extern __attribute__((visibility("hidden"))) void *FUNC##_g5; \
\
void *resolve_##FUNC (unsigned long int dl_hwcap) \
{ \
diff --git a/sysdeps/s390/s390-64/multiarch/ifunc-resolve.c b/sysdeps/s390/s390-64/multiarch/ifunc-resolve.c
index f980bc9390..5f56764909 100644
--- a/sysdeps/s390/s390-64/multiarch/ifunc-resolve.c
+++ b/sysdeps/s390/s390-64/multiarch/ifunc-resolve.c
@@ -32,9 +32,11 @@
".globl __GI_" #FUNC "\n\t" \
".set __GI_" #FUNC "," #FUNC "\n"); \
\
- extern void *FUNC##_z10; \
- extern void *FUNC##_z196; \
- extern void *FUNC##_z900; \
+ /* Make the declarations of the optimized functions hidden in order
+ to prevent GOT slots being generated for them. */ \
+ extern __attribute__((visibility("hidden"))) void *FUNC##_z196; \
+ extern __attribute__((visibility("hidden"))) void *FUNC##_z10; \
+ extern __attribute__((visibility("hidden"))) void *FUNC##_z900; \
\
void *resolve_##FUNC (unsigned long int dl_hwcap) \
{ \