Skip to content

Comments

cmd/bpf2go: Use BPF2GO_CFLAGS instead of BPF2GO_FLAGS#1796

Merged
ti-mo merged 2 commits intocilium:mainfrom
jrife:jrife/cflags-docs
Jun 10, 2025
Merged

cmd/bpf2go: Use BPF2GO_CFLAGS instead of BPF2GO_FLAGS#1796
ti-mo merged 2 commits intocilium:mainfrom
jrife:jrife/cflags-docs

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 <[email protected]>
@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 <[email protected]>
Copy link
Contributor

@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