From 7ea510127e2067efa07865158ac92c330c379950 Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Mon, 6 Feb 2023 13:15:22 -0300 Subject: 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 --- string/strchrnul.c | 1 + 1 file changed, 1 insertion(+) (limited to 'string') diff --git a/string/strchrnul.c b/string/strchrnul.c index e7887fa285..01fa25bdb7 100644 --- a/string/strchrnul.c +++ b/string/strchrnul.c @@ -51,5 +51,6 @@ __strchrnul (const char *str, int c_in) return (char *) word_ptr + index_first_zero_eq (word, repeated_c); } #ifndef STRCHRNUL +libc_hidden_def (__strchrnul) weak_alias (__strchrnul, strchrnul) #endif -- cgit v1.2.3