]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
aarch64: Remove duplicate memchr/strlen in libc.a (BZ 31777)
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 22 May 2024 13:13:21 +0000 (10:13 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 23 May 2024 12:36:08 +0000 (09:36 -0300)
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>
sysdeps/aarch64/multiarch/memchr_generic.S
sysdeps/aarch64/multiarch/strlen_generic.S

index 0ed5811745dc8a6e594b82cbe39ecf0c7e1e1aa0..8d554275ba3ee0d301a4facc9a1165609a469443 100644 (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
index f980a9a68ff5db7b69b584941a96381bac22012c..ceeafe920cff899ff5795543901736d8b1485a91 100644 (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