diff --git a/libc/arch-mips/mips.mk b/libc/arch-mips/mips.mk index cb76985f0..bf3b8ae00 100644 --- a/libc/arch-mips/mips.mk +++ b/libc/arch-mips/mips.mk @@ -59,10 +59,21 @@ libc_bionic_src_files_mips += \ arch-mips/bionic/setjmp.S \ arch-mips/bionic/sigsetjmp.S \ arch-mips/bionic/syscall.S \ + +ifndef ARCH_MIPS_REV6 +libc_bionic_src_files_mips += \ arch-mips/string/memcpy.S \ arch-mips/string/memset.S \ arch-mips/string/mips_strlen.c \ +else +libc_bionic_src_files_mips += \ + bionic/memcpy.cpp \ + bionic/memset.c +libc_common_src_files_mips += \ + upstream-openbsd/lib/libc/string/strlen.c +endif + libc_netbsd_src_files_mips := \ upstream-netbsd/common/lib/libc/hash/sha1/sha1.c \