Skip to content

lld: Avoid decompressing unused debug sections #143642

Open
@pcc

Description

@pcc

When looking at a perf profile of a link with objects with compressed debug info and -S in ldflags, I noticed that a substantial amount of time was spent in MergeInputSection::splitIntoPieces -> InputSectionBase::decompress. This seems to be because the code that implements section stripping operates on ctx.inputSections while splitSections operates on ctx.objectFiles.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions