Skip to content

Commit 6292c33

Browse files
committed
Reword the "Pior art" section
1 parent 03549d3 commit 6292c33

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

text/0000-btf-relocations.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -412,9 +412,10 @@ Clang and LLVM support BPF CO-RE through builtins and LLVM intrinsics such as
412412
`llvm.bpf.preserve.field.info`. C BPF programs commonly use libbpf macros such
413413
as `BPF_CORE_READ` and `bpf_core_field_exists` to generate these relocations.
414414

415-
Rust BPF projects such as [Aya][aya] need access to the same relocation
416-
model. Today, they generally rely on generated bindings, helper macros, or
417-
backend behavior outside Rust's stable language surface.
415+
Rust BPF projects need to run on different kernels. Today, they usually achieve
416+
that either by re-generating the types and compiling separately for each
417+
kernel, or by linking a C module that is used only for interacting with kernel
418+
types.
418419

419420
This RFC follows the same underlying CO-RE model as C/Clang while avoiding a
420421
direct dependency on C syntax or LLVM-specific frontend intrinsics.

0 commit comments

Comments
 (0)