Skip to content

LLVM lto removes __INTERRUPTS due to missing #[used] attribute #964

Description

@Ddystopia

Hello, I compiled my code base with fat lto and __INTERRUPTS went missing - event KEEP didn't help as the symbol got eliminated before, only "link-arg=-Wl,--undefined=__INTERRUPTS" helped.

IIUC adding #[used] should never be harmful, so users without LTO will not see the difference.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions