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.
Feature
See title.
Benefit
This is required for implementing
#[used(linker)]in cg_clif. This attribute is equivalent toattribute((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.