Skip to content

Support stripping debug info while emitting symbols #25419

Open

Description

@mlugg

Currently, -fstrip controls 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 for objcopy for 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.

Activity

  1. added this to the urgent milestone on Oct 1, 2025
  2. added
    enhancement
    debug-info
    on Oct 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    debug-infoenhancementlinking

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions