Skip to content

When are static symbols guaranteed to show up in the final binary? #504

Open
@RalfJung

Description

@RalfJung

This came up in rust-lang/miri#450 but is really a t-opsem question, not a Miri question.

Obviously anything marked #[used] is guaranteed to show up (though it seems there are issues that make this not always true, but this seems like a rustc implementation issue to me, the spec is unambiguous).

But @joboet wants this to be guaranteed for more cases. I'll let them do the motivation and summary for that.

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