On Tue May 13 21:20:04 2025 +0000, Jinoh Kang wrote:
It's probably not a good idea to add asan exports unconditionally: it might conflict with userland apps for example. It's probably better to add `__asan_` thunks to winecrt0, which will discover corresponding ntdll functions via some hidden channel and dispatch to them as necessary.
For DLLs that don't link to winecrt0 due to -nostartfiles, I'm guessing we could add the thunk source directly to SOURCES. Either that, or we could make our own asan thunk static library (like `clang_rt.asan_dll_thunk-i386.lib` but our own).