Skip to content

bpf2go: support multiple source files #1762

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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

bpf2go: support multiple source files #1762

wants to merge 6 commits into from

Conversation

yonch
Copy link

@yonch yonch commented Apr 21, 2025

See issue #1758

Has been used successfully in unvariance/collector#109, PR unvariance/collector#110.

Tested in a dev container on MacOs and on a Linux bare metal box.

Closes #1758

@yonch yonch requested a review from a team as a code owner April 21, 2025 19:37
yonch added 6 commits April 21, 2025 14:40
- replace the direct command execution for linking multiple BPF object files with a new `Link` function in the `gen` package.
- add unit tests for linking

Signed-off-by: Jonathan Perry <[email protected]>
- Moved the temporary object renaming logic from compileOne() to convert()
- Simplified naming and cleanup

Signed-off-by: Jonathan Perry <[email protected]>
…fic endianness handling

Signed-off-by: Jonathan Perry <[email protected]>
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

Successfully merging this pull request may close these issues.

bpf2go: support multiple source files
1 participant