Skip to content

cranelift-object: Support marking data object as used #10758

Open
@bjorn3

Description

@bjorn3

Feature

See title.

Benefit

This is required for implementing #[used(linker)] in cg_clif. This attribute is equivalent to attribute((used)) in C. And on all non-ELF platforms it is the default. when #[used] is used. On ELF platforms it may become the default in the future.

Implementation

Add a flag to DataDescription and then set the right symbol flag for the given object file format.

Metadata

Metadata

Assignees

No one assigned

    Labels

    craneliftIssues related to the Cranelift code generator

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions