You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement exporting an assembled eBPF bytecode program to an ELF object, similar to e.g. clang -target bpf someProgram -o someProgram.o.
This would allow us to use tools like bpftool to load programs as well as dump both their xlated and JIT'ed versions.
It might be useful for asserting correctness in ebpf-tools, as well as making it easier to use ebpf-tools with projects like the PREVAIL-verifier and uBPF. (Although uBPF accepts non-ELF raw bytecode).
I am unsure of the extent of this proposal, but I am quite certain it amounts to more than "wrap the bytecode in a header".
The text was updated successfully, but these errors were encountered:
A first step towards this might be to extend the AST and assembler syntax to support named sections.
To generate the ELF object files, the melf package might be used. I think it is the most complete package for working with ELF files, and the only one that allows writing ELF files.
Implement exporting an assembled eBPF bytecode program to an ELF object, similar to e.g.
clang -target bpf someProgram -o someProgram.o
.This would allow us to use tools like
bpftool
to load programs as well as dump both their xlated and JIT'ed versions.It might be useful for asserting correctness in ebpf-tools, as well as making it easier to use ebpf-tools with projects like the PREVAIL-verifier and uBPF. (Although uBPF accepts non-ELF raw bytecode).
I am unsure of the extent of this proposal, but I am quite certain it amounts to more than "wrap the bytecode in a header".
The text was updated successfully, but these errors were encountered: