Skip to content

Reuse debug sections from compiler API#105

Merged
clairechingching merged 4 commits intoblueshift-gg:masterfrom
procdump:reuse_debug_sections
Feb 15, 2026
Merged

Reuse debug sections from compiler API#105
clairechingching merged 4 commits intoblueshift-gg:masterfrom
procdump:reuse_debug_sections

Conversation

@procdump
Copy link
Contributor

The problem

Currently there's no possible way in sbpf-linker to be instructed to keep the debug sections emitted by rustc.

What's changed

As a continuation to blueshift-gg/sbpf-linker#19, specifically blueshift-gg/sbpf-linker#19 (comment).

The motivation for the changes: blueshift-gg/sbpf-linker#19 (comment)

If sbpf-linker encounters debug sections while byteparsing
introduce an API to actually keep them when emitting the final
program.
@procdump procdump marked this pull request as ready for review February 12, 2026 08:02
@procdump
Copy link
Contributor Author

cc @clairechingching

procdump added a commit to procdump/sbpf-linker that referenced this pull request Feb 12, 2026
As requested (blueshift-gg#19 (comment)):
- remove changes from lib.rs and Cargo.toml (now it won't compile but once
blueshift-gg/sbpf#105 gets merged rebasing should solve this)
- btf is disabed back by default
- correct the BTF CLI help message explaining that if it's not enabled there would be no DWARF symbols
@procdump
Copy link
Contributor Author

@clairechingching now after the CI passes can you have a look?

@clairechingching
Copy link
Collaborator

thanks!

@clairechingching clairechingching merged commit c52805f into blueshift-gg:master Feb 15, 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