about summary refs log tree commit diff
path: root/sysdeps/x86_64/multiarch/strchrnul.c
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2023-02-06 13:15:22 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2023-02-08 17:13:56 -0300
commit7ea510127e2067efa07865158ac92c330c379950 (patch)
treedf830b3da00683a56693e2cca08268b8764c14eb /sysdeps/x86_64/multiarch/strchrnul.c
parent9fd63e35371b9939e9153907c6a753e6960b68ad (diff)
downloadglibc-7ea510127e2067efa07865158ac92c330c379950.tar.gz
glibc-7ea510127e2067efa07865158ac92c330c379950.tar.xz
glibc-7ea510127e2067efa07865158ac92c330c379950.zip
string: Add libc_hidden_proto for strchrnul
Although static linker can optimize it to local call, it follows the
internal scheme to provide hidden proto and definitions.

Reviewed-by: Carlos Eduardo Seo <carlos.seo@linaro.org>
Diffstat (limited to 'sysdeps/x86_64/multiarch/strchrnul.c')
-rw-r--r--sysdeps/x86_64/multiarch/strchrnul.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdeps/x86_64/multiarch/strchrnul.c b/sysdeps/x86_64/multiarch/strchrnul.c
index be9221bb31..69d691631a 100644
--- a/sysdeps/x86_64/multiarch/strchrnul.c
+++ b/sysdeps/x86_64/multiarch/strchrnul.c
@@ -31,4 +31,8 @@
 libc_ifunc_redirected (__redirect_strchrnul, __strchrnul,
 		       IFUNC_SELECTOR ());
 weak_alias (__strchrnul, strchrnul)
+# ifdef SHARED
+__hidden_ver1 (__strchrnul, __GI___strchrnul, __redirect_strchrnul)
+  __attribute__((visibility ("hidden"))) __attribute_copy__ (strchrnul);
+# endif
 #endif