From 3ecd64e60697cf19c98a2afb5e6f51f5f9c8fe63 Mon Sep 17 00:00:00 2001
From: "demin.han" <demin.han@starfivetech.com>
Date: Thu, 8 Dec 2022 15:18:15 +0800
Subject: [PATCH 17/19] fix strchr missing 'index' weak alias

---
 sysdeps/riscv/rv64/strchr.S | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/sysdeps/riscv/rv64/strchr.S b/sysdeps/riscv/rv64/strchr.S
index a9059c19ca..2d108800c1 100644
--- a/sysdeps/riscv/rv64/strchr.S
+++ b/sysdeps/riscv/rv64/strchr.S
@@ -78,4 +78,9 @@ ENTRY (strchr)
      
 
 END (strchr)
-libc_hidden_builtin_def (strchr)
\ No newline at end of file
+
+#ifdef weak_alias
+# undef index
+weak_alias (strchr, index)
+#endif
+libc_hidden_builtin_def (strchr)
-- 
2.25.1

