mirror of https://github.com/aya-rs/aya
feat(aya-ebpf): Implement memmove
The compiler will emit this function for certain operations, but aya currently does not provide an implementation. This leads to ebpf loading failures as the kernel can't find the symbol when loading the program. The implementation is based on https://github.com/rust-lang/compiler-builtins/blob/master/src/mem/mod.rs#L29-L40 and https://github.com/rust-lang/compiler-builtins/blob/master/src/mem/impls.rs#L128-L135 Only the simplest case has been implemented, none of the word optimizations, since memcpy also doesn't seem to have them.pull/971/head
parent
bac059fd41
commit
a6de226171
Loading…
Reference in New Issue