Special behaviour for _Dmodule_ref and _d_run_main?
Denis Feklushkin
feklushkin.denis at gmail.com
Mon May 11 12:00:40 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?
LDC - the LLVM D compiler (1.20.1):
based on DMD v2.090.1 and LLVM 9.0.1
Compiling for ARM (--mtriple=thumbv7m-unknown-none-eabi)
> _Dmodule_ref shouldn't have been in use on x86(_64) Linux for a
> few years now.
LDC fork of druntime still uses it.
$ llvm-nm-9 -a libdruntime.a says that _Dmodule_ref and
_Dmodule_ref is defined in libdruntime.a
More information about the digitalmars-d-ldc
mailing list