diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2023-02-06 13:15:22 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2023-02-08 17:13:56 -0300 |
commit | 7ea510127e2067efa07865158ac92c330c379950 (patch) | |
tree | df830b3da00683a56693e2cca08268b8764c14eb /sysdeps/s390/strchrnul-c.c | |
parent | 9fd63e35371b9939e9153907c6a753e6960b68ad (diff) | |
download | glibc-7ea510127e2067efa07865158ac92c330c379950.zip glibc-7ea510127e2067efa07865158ac92c330c379950.tar.gz glibc-7ea510127e2067efa07865158ac92c330c379950.tar.bz2 |
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/s390/strchrnul-c.c')
-rw-r--r-- | sysdeps/s390/strchrnul-c.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sysdeps/s390/strchrnul-c.c b/sysdeps/s390/strchrnul-c.c index ff6aa38..f6f5bae 100644 --- a/sysdeps/s390/strchrnul-c.c +++ b/sysdeps/s390/strchrnul-c.c @@ -21,8 +21,10 @@ #if HAVE_STRCHRNUL_C # if HAVE_STRCHRNUL_IFUNC # define STRCHRNUL STRCHRNUL_C -# define __strchrnul STRCHRNUL # endif # include <string/strchrnul.c> +# if defined SHARED && IS_IN (libc) +__hidden_ver1 (__strchrnul_c, __GI___strchrnul, __strchrnul_c); +# endif #endif |