-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Support stripping debug info while emitting symbols #25419
Copy link
Copy link
Open
Labels
debug-infoDebug information of binary generated by Zig is not as expected.Debug information of binary generated by Zig is not as expected.enhancementSolving this issue will likely involve adding new logic or components to the codebase.Solving this issue will likely involve adding new logic or components to the codebase.linking
Milestone
Metadata
Metadata
Assignees
Labels
debug-infoDebug information of binary generated by Zig is not as expected.Debug information of binary generated by Zig is not as expected.enhancementSolving this issue will likely involve adding new logic or components to the codebase.Solving this issue will likely involve adding new logic or components to the codebase.linking
Type
Fields
Give feedbackNo fields configured for issues without a type.
Currently,
-fstripcontrols both debug information (typically DWARF) and symbols. However, it is common to want to strip debug information while retaining symbols, because debug information can be incredibly large. Users should not have to reach forobjcopyfor this use case.#22591 attempts to solve this, though it doesn't do so when using the self-hosted backends: that task is more complex. I have not yet reviewed that PR, so do not know whether or not its implementation (for the LLVM backend) is appropriate.