Skip to content

bpf2c returns error if there are no program sections found in the ELF file #3597

Open
@dthaler

Description

Describe the bug

As reported by Anurag, bpf2c returns error if there are no program sections found in the ELF file

Libbpf supports loading such ELF files that only contain maps.

OS information

No response

Steps taken to reproduce bug

TBD

Expected behavior

A .sys file should be genertaed that contains maps but no programs.

Actual outcome

bpf2c fails.

Additional details

No response

Metadata

Assignees

No one assigned

    Labels

    P3bugSomething isn't workinghelp wantedExtra attention is neededtriagedDiscussed in a triage meeting

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions