Static ctors in wasm

kinke noone at nowhere.com
Fri Feb 9 01:22:28 UTC 2024


On Friday, 9 February 2024 at 01:17:26 UTC, kinke wrote:
> Oh well, looks like wasm-ld (i.e., lld) supports exactly the 
> same magic `__{start,stop}_*` symbols as for ELF: 
> https://github.com/llvm/llvm-project/issues/55839

Oh man, I've even added an LDC test for this, but almost 4 years 
ago and so forgot. :D

https://github.com/ldc-developers/ldc/blob/3c21924705aae83f0c16bfe54e673953671afe58/tests/codegen/wasi.d#L22-L39


More information about the Digitalmars-d mailing list