MinGW-w64的gcc和Address Sanitizer

问题描述:

安装MinGW-w64 5.1我发现 -fsanitize = address 可用。它编译得很好,当它开始链接时,我得到数千个:

Installing MinGW-w64 5.1 I find -fsanitize=address is available. It compiles fine, and when it starts linking I get thousands of:

undefined reference to '__asan_report_load1'
undefined reference to '__asan_report_load4'

我搜索并找到了libasan引用的各个地方, code> -fsanitize = address 它会自动包含用于链接的库。我在MinGW-w64 5.1安装目录中搜索了asan,并且在任何地方都没有找到它。

I googled and found libasan referenced various places, but also comments that when you include -fsanitize=address it automatically includes that library for linking. I searched the MinGW-w64 5.1 install dirctory for "asan" and it was not found anywhere.

我需要在MinGW- W64?谢谢。

What do I need to add on to use address sanitizing features in MinGW-w64? Thank you.

我很快看到4.8,4.9和5.1的发行说明 - ASAN不适用于Windows

I've looked quickly into release notes for 4.8, 4.9 and 5.1 - ASAN is not available for Windows