[Issue 20220] pragma (crt_constructor) does not work with CC=clang

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Sep 18 19:26:20 UTC 2019


https://issues.dlang.org/show_bug.cgi?id=20220

--- Comment #3 from Ernesto Castellotti <erny.castell at gmail.com> ---
OK I did other tests, it just happens on clang > 9.0

Jacob Carlborg can you test with clang 9 on MacOS?

However I found the way to solve, DMD adds the .ctors section to the elf for
crt_constructor, I discovered that using .init_array the problem does not
happen

--


More information about the Digitalmars-d-bugs mailing list