Skip to content

cmd/bpf2go: Use BPF2GO_CFLAGS instead of BPF2GO_FLAGS #1796

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

Merged
merged 2 commits into from
Jun 10, 2025

Conversation

jrife
Copy link
Contributor

@jrife jrife commented Jun 5, 2025

Fix docs and Makefile that reference BPF2GO_FLAGS. Use BPF2GO_CFLAGS instead.

Fix docs and Makefile that reference BPF2GO_FLAGS. Use BPF2GO_CFLAGS
instead.

Signed-off-by: Jordan Rife <jrife@google.com>
@jrife jrife marked this pull request as ready for review June 5, 2025 17:10
@jrife jrife requested a review from a team as a code owner June 5, 2025 17:10
This rewrites file paths in DWARF, but bpf2go calls llvm-strip on all objects,
which removes this info anyway. Other Makefile targets do the same thing.

llvm-objdump -SD seems to understand bpf lineinfo for annotating insns with
source info, so this flag isn't that useful anymore.

Signed-off-by: Timo Beckers <timo@isovalent.com>
Copy link
Collaborator

@ti-mo ti-mo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@ti-mo ti-mo merged commit 5e86033 into cilium:main Jun 10, 2025
16 of 18 checks passed
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.

2 participants