[compiler-rt] [ASan][Windows] Honor asan config flags on windows when set through the user function (PR #122990)
David Justo via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 11 13:51:44 PST 2025
davidmrdavid wrote:
> Is this a consequence of our choice to build the ASan RTL as a DLL?
I couldn't say with confidence one way or another, that decision predates me. But I think it's likely you're correct.
> Regardless, this seems like a good change and a cost of doing business in the PE/COFF model.
Thanks. Long term - I think the initialization codepath on windows would benefit from the ability to _delay_ until the user function is available for invocation. Today's model, where we leverage a callback to correct for missing configuration, is a bit complex and leaves the door open to bugs like this one. But anyways, I'm not ready to tackle something like that at this time, but it's on my radar as a possible improvement :) .
https://github.com/llvm/llvm-project/pull/122990
More information about the llvm-commits
mailing list