[PATCH] D31358: [asan] Put ctor/dtor in comdat.
Reid Kleckner via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 24 16:37:00 PDT 2017
rnk added a comment.
In https://reviews.llvm.org/D31358#710413, @pcc wrote:
> If you put the constructor in a comdat, will it be preserved on Windows? I believe that the COFF equivalent of .init_array is not treated as a GC root by the linker.
We actually already require that the user link some small amount of code into every DLL with asan instrumented code, so in theory we could do the initialization once in that code, and not emit this constructor everywhere on Windows. I don't have time to push that through right now, but that would be ideal.
More information about the llvm-commits