aarch64: Remove duplicate memchr/strlen in libc.a (BZ 31777)

The generic version provides weak definitions of memchr/strlen,
which are already provided by the ifunc resolvers.
Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
This commit is contained in:
Adhemerval Zanella 2024-05-22 10:13:21 -03:00
parent e9a37242f9
commit ef9596352b
2 changed files with 6 additions and 0 deletions

View File

@ -24,6 +24,9 @@
# undef libc_hidden_builtin_def
# define libc_hidden_builtin_def(name)
# undef weak_alias
# define weak_alias(a, b)
/* Add a hidden definition for use within libc.so. */
# ifdef SHARED
.globl __GI_memchr; __GI_memchr = __memchr_generic

View File

@ -30,6 +30,9 @@
# undef libc_hidden_builtin_def
# define libc_hidden_builtin_def(name)
# undef weak_alias
# define weak_alias(a, b)
# ifdef SHARED
/* It doesn't make sense to send libc-internal strlen calls through a PLT. */
.globl __GI_strlen; __GI_strlen = __strlen_generic