aboutsummaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorStrahinja Stanišić <strajabot@FreeBSD.org>2024-10-24 16:29:04 +0000
committerRobert Clausecker <fuz@FreeBSD.org>2025-10-31 12:47:57 +0000
commit63ff982b17ee398c7808be323d8fd37819a5863c (patch)
treec241c4c1e690ad48edce97520d2c6b9b2a2a8a09 /lib/libc
parentdf21a004be237a1dccd03c7b47254625eea62fa9 (diff)
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/riscv/string/strrchr.S3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libc/riscv/string/strrchr.S b/lib/libc/riscv/string/strrchr.S
index 51f34ca21fac..e922a692e77f 100644
--- a/lib/libc/riscv/string/strrchr.S
+++ b/lib/libc/riscv/string/strrchr.S
@@ -6,6 +6,9 @@
#include <machine/asm.h>
+ .weak rindex
+ .set rindex, strrchr
+
/*
* a0 - const char *s
* a1 - int c