mirror of https://github.com/aya-rs/aya
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This commit removes memset and memcpy, relying instead on implementations provided by std/compiler-builtins. This commit adds `#![no_builtins]` to all the BPF programs written in Rust, and the same should be propagated to aya-template and all examples in the book and elsewhere before this commit is merged. It turns out that without the `#![no_builtins]` annotation rustc generates LLVM IR that calls LLVM intrinsics rather than libcalls. These may end up as libcalls after lowering, but not before emitting errors in BPF lowering[0]. This works thanks to https://github.com/rust-lang/rust/pull/113716 which causes `#![no_builtins]` to behave similarly to `-fno-builtin` in clang, which was added in https://reviews.llvm.org/D68028 with similar motivation. This commit implies that we now require rustc nightly >= 2023-07-20. [0] https://github.com/llvm/llvm-project/blob/7b2745b/llvm/lib/Target/BPF/BPFISelLowering.cpp#L472-L474 |
2 years ago | |
---|---|---|
.. | ||
aya-bpf-bindings.txt | 2 years ago | |
aya-bpf-cty.txt | 2 years ago | |
aya-bpf-macros.txt | 2 years ago | |
aya-bpf.txt | 2 years ago | |
aya-log-common.txt | 2 years ago | |
aya-log-ebpf-macros.txt | 2 years ago | |
aya-log-ebpf.txt | 2 years ago | |
aya-log-parser.txt | 2 years ago | |
aya-log.txt | 2 years ago | |
aya-obj.txt | 2 years ago | |
aya-tool.txt | 2 years ago | |
aya.txt | 2 years ago |