Skip to content

Stop emitting DW_AT_linkage_name for non-mangled symbols #59422

Closed
@rocallahan

Description

@rocallahan

Debuggers will try to demangle DW_AT_linkage_name names. However, rustc (1.33) is emitting non-mangled names in DW_AT_linkage_name attributes for #[no_mangle] symbols. I think you can just omit DW_AT_linkage_name completely for these symbols, which will also save a tiny bit of space.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-debuginfoArea: Debugging information in compiled programs (DWARF, PDB, etc.)C-enhancementCategory: An issue proposing an enhancement or a PR with one.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions