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.
aya/bpf
Tamir Duberstein e9a099f332 bpf: Remove builtin global functions
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
..
.cargo integration-ebpf: add cargo config 2 years ago
aya-bpf bpf: Remove builtin global functions 2 years ago
aya-bpf-bindings rustfmt: group_imports = "StdExternalCrate" 2 years ago
aya-bpf-cty aya-bpf-cty: remove empty module 2 years ago
aya-log-ebpf integration-test: Implement running on VMs 2 years ago
rust-toolchain.toml Re-organize into a single workspace 3 years ago