@llvm.used does not mean the linker will not kill the symbol
David Nadlinger
code at klickverbot.at
Mon Apr 1 17:57:30 UTC 2019
On 1 Apr 2019, at 18:47, Johan Engelen via digitalmars-d-ldc wrote:
> I think things work for LDC because we reference __start_minfo /
> __stop_minfo and the symbols that we don't want to disappear are in
> those segments. In other words: we actually _do_ reference (in a
> roundabout way) the symbols in the final executable and the linker
> sees that.
It doesn't even work for LDC – compatibility with older linkers was
broken when that "simplification" was merged.
— David
More information about the digitalmars-d-ldc
mailing list