Skip to content

Add support for .maps section #130

@dthaler

Description

@dthaler

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions