Special behaviour for _Dmodule_ref and _d_run_main?

Denis Feklushkin feklushkin.denis at gmail.com
Mon May 11 12:10:26 UTC 2020


On Monday, 11 May 2020 at 11:08:51 UTC, David Nadlinger wrote:
> On 11 May 2020, at 10:52, Denis Feklushkin via 
> digitalmars-d-ldc wrote:
>> ld.lld: error: undefined symbol: _Dmodule_ref
>>>>> referenced by app.d
>>>>>               lto.tmp:(.text._D3app16__moduleinfoCtorZ+0x0)
>>>>> referenced by app.d
>>>>>               lto.tmp:(_D3app16__moduleinfoCtorZ)
>
> Which version of LDC/druntime are you trying to use? 
> _Dmodule_ref shouldn't have been in use on x86(_64) Linux for a 
> few years now.

Got it. I used src/rt/sections_ldc.d as the easiest for support 
in bare metal. It provides _Dmodule_ref.



More information about the digitalmars-d-ldc mailing list