iovisor / iovisor/bcc

compiling BCC stype C code into ELF format

Open
#3,090 10 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
22.7k
Forks
4.1k
Avg merge
10d 4h
Merged PRs (30d)
3

Description

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?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the BCC-to-ELF flow and inspecting the generated ELF's "helpers" section alongside the libbpf relocation error for .bpf.fn.xdp_root. Check whether bpf_tail_call is involved; done means the generated ELF is accepted and runnable without the unrecognized relocation or segmentation fault.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, linux
Domain
compilers
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.