0017-fix-strchr-missing-index-weak-alias.patch 722 B

12345678910111213141516171819202122232425262728
  1. From 3ecd64e60697cf19c98a2afb5e6f51f5f9c8fe63 Mon Sep 17 00:00:00 2001
  2. From: "demin.han" <demin.han@starfivetech.com>
  3. Date: Thu, 8 Dec 2022 15:18:15 +0800
  4. Subject: [PATCH 17/19] fix strchr missing 'index' weak alias
  5. ---
  6. sysdeps/riscv/rv64/strchr.S | 7 ++++++-
  7. 1 file changed, 6 insertions(+), 1 deletion(-)
  8. diff --git a/sysdeps/riscv/rv64/strchr.S b/sysdeps/riscv/rv64/strchr.S
  9. index a9059c19ca..2d108800c1 100644
  10. --- a/sysdeps/riscv/rv64/strchr.S
  11. +++ b/sysdeps/riscv/rv64/strchr.S
  12. @@ -78,4 +78,9 @@ ENTRY (strchr)
  13. END (strchr)
  14. -libc_hidden_builtin_def (strchr)
  15. \ No newline at end of file
  16. +
  17. +#ifdef weak_alias
  18. +# undef index
  19. +weak_alias (strchr, index)
  20. +#endif
  21. +libc_hidden_builtin_def (strchr)
  22. --
  23. 2.25.1