diff --git a/src/runtime/runtime_cortexm.go b/src/runtime/runtime_cortexm.go index 55d41d25a..2622b67a2 100644 --- a/src/runtime/runtime_cortexm.go +++ b/src/runtime/runtime_cortexm.go @@ -132,3 +132,9 @@ func libc_memset(ptr unsafe.Pointer, c byte, size uintptr) { func libc_memmove(dst, src unsafe.Pointer, size uintptr) { memmove(dst, src, size) } + +// Implement memcpy for LLVM and compiler-rt. +//go:export memcpy +func libc_memcpy(dst, src unsafe.Pointer, size uintptr) { + memcpy(dst, src, size) +}