On 12/8/21 14:55, Roman Pišl wrote:
This fixes LLVM ASAN an the ASAN then works as expected with Wine. Would something like this be acceptable for upstream?
Adding DECLSPEC_HOTPATCH to so many short and frequently called functions looks rather unfortunate, it prevents some optimizations. Is it maybe possible to check with LLVM ASAN code what does it really want from these functions, does it expect exactly ms hook prologue or maybe (probably?) not necessarily but something else around the function start breaks it?