Skip to content

compiling BCC stype C code into ELF format #3090

@Xichen96

Description

@Xichen96

I am trying to generate an ELF file from BCC compiler. I am able to generate an ELF file successfully, but it was not runnable. The current problem is with the "helpers" section. I have noticed that there is no "helpers" section in a clang compiled object file. Currently the error reports "libbpf: Program '.bpf.fn.xdp_root' contains unrecognized relo data pointing to section 3
Segmentation fault (core dumped)", and I am guessing the problem is with a helper function "bpf_tail_call". Does anyone have any insight?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions