[LLVMdev] Global constructors "get lost" when transforming bitcode files
Jonas Wagner
jonas.wagner at epfl.ch
Fri Jul 4 10:55:34 PDT 2014
Hello,
I've narrowed the issue down to revision 209015: Add comdat key field to
llvm.global_ctors and llvm.global_dtors.
This revision introduces an additional field to global constructors which,
when non-null, can prevent constructors from being called. In my case, this
field is always set to null, yet global constructors are not called.
I've observed that this happens only on Mac, not on Linux. In the patch, I
haven't found anything OS-specific. However, the issue might be due to
different linker implementations.
Does anybody have additional insights into this? Should I file a bug report?
Best regards,
Jonas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140704/8b835547/attachment.html>
More information about the llvm-dev
mailing list