Skip to content

Strip away debug info not needed by BPF programs (and subprograms used by them) #131

@vadorovsky

Description

@vadorovsky

Currently, when we link bitcodes with debug info, even though we fix up it, we don't strip it. That produces a lot of unnecessary DI.

For example, if lto is not used, the debug info of core crate and other dependencies will end up in the BTF too. That makes the BTF relocations and program verification slower. It's also not correct by principle.

Context: https://discord.com/channels/855676609003651072/1026937450624450652/1133054554666180678

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions