MinGW-w64的gcc和地址安全性检查器

19
安装MinGW-w64 5.1时,我发现有-fsanitize=address选项可用。编译时没问题,但链接时会出现数千个错误:
undefined reference to '__asan_report_load1'
undefined reference to '__asan_report_load4'

我在谷歌上搜索并发现libasan被多处引用,但还有评论说当你包含-fsanitize=address时,它会自动将该库链接进来。我在MinGW-w64 5.1的安装目录中搜索"asan",但未找到任何结果。

请问我需要添加什么才能在MinGW-w64中使用地址污点检测功能呢?谢谢。

1个回答

14

我已经快速查看了4.8、4.9和5.1版本的发布说明 - ASAN在Windows上不可用。


感谢您的帮助,Severin。 - Rick C. Hodgin
1
到目前为止,g++ 12.2.0 (Rev3, Built by MSYS2 project) 还不可用。 - legends2k

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接