On Fri Oct 24 21:02:21 2025 +0000, Yuxuan Shui wrote:
@bernhardu could you test if global variables start working with this MR? e.g. maybe you can add a OOB write to a global variable somewhere and see if it's reported?
Hello, thanks for the info. I carried these patches of yours in an older version already in my tree, but ASan init needed also ".CRT$XIB", [see here](https://github.com/llvm/llvm-project/blob/main/compiler-rt/lib/asan/asan_win...), so I *changed* the XCA to XIA in my old branches.
I rebased now to your latest versions and [*added* XIA](https://gitlab.winehq.org/bernhardu/wine/-/commit/893fcc8abf36a4b5b128154fb1...), and you are right, now the OOB for globals works, added the test and [partial results here](https://gitlab.winehq.org/bernhardu/wine/-/commit/5fd8e95ad4dab71a93d5f7c3fd...).
Grepping over the llvm code shows these uses, but I don't know how they fit into the picture: ``` .CRT$XCAB .CRT$XCU .CRT$XIB .CRT$XID .CRT$XLAB .CRT$XLY .CRT$XTW .CRT$XTX .CRT$XTY ```