Skip to content

fix: preserve DWARF file tables per compilation unit#16

Merged
dylandreimerink merged 1 commit into
cilium:mainfrom
immanuwell:fix/multicu-dwarf-locations
Jul 21, 2026
Merged

fix: preserve DWARF file tables per compilation unit#16
dylandreimerink merged 1 commit into
cilium:mainfrom
immanuwell:fix/multicu-dwarf-locations

Conversation

@immanuwell

@immanuwell immanuwell commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Fixes source locations for linked multi-CU BPF objects

Each CU keeps its own DWARF file table now. But program_a no longer points at b.c

Repro: link a.bc and b.bc with llvm-link, compile with clang -target bpf -g, then run stackwhere list collection.o program_a.
Before it reports b.c, now a.c

Signed-off-by: immanuwell <pchpr.00@list.ru>

@dylandreimerink dylandreimerink left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ah cool. I didn't know you could link two CUs when they are still IR like that.

@dylandreimerink
dylandreimerink merged commit 6eb2578 into cilium:main Jul 21, 2026
3 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