Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for .maps section #130

Open
dthaler opened this issue Oct 3, 2022 · 0 comments
Open

Add support for .maps section #130

dthaler opened this issue Oct 3, 2022 · 0 comments

Comments

@dthaler
Copy link
Collaborator

dthaler commented Oct 3, 2022

Regarding the doc in progress at ietf-wg-bpf/ebpf-docs#4, Quentin wrote:

libbpf v1.0 (see dropping support for maps section in favour of .maps (Andrii's blog)

cilium/ebpf seems to read both types (and also data sections), which seems reasonable behavior:
https://github.com/cilium/ebpf/blob/master/elf_reader.go#L125

Aya also seems to read both types:
https://github.com/aya-rs/aya/blob/main/aya/src/obj/mod.rs#L1024

redbpf (which unlike Aya is listed as Major) only supports "maps":
https://github.com/foniod/redbpf/blob/main/redbpf/src/lib.rs#L1544

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant