简体   繁体   English

MinGW-w64的gcc和Address Sanitizer

[英]MinGW-w64's gcc and Address Sanitizer

Installing MinGW-w64 5.1 I find -fsanitize=address is available. 安装MinGW-w64 5.1我发现-fsanitize=address可用。 It compiles fine, and when it starts linking I get thousands of: 编译很好,当它开始链接时,我得到成千上万:

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

I googled and found libasan referenced various places, but also comments that when you include -fsanitize=address it automatically includes that library for linking. 我用google搜索并发现libasan引用了各个地方,但也注释到当你包含-fsanitize=address它会自动包含该库以进行链接。 I searched the MinGW-w64 5.1 install dirctory for "asan" and it was not found anywhere. 我搜索MinGW-w64 5.1安装目录为“asan”,并没有在任何地方找到它。

What do I need to add on to use address sanitizing features in MinGW-w64? 在MinGW-w64中,我需要添加什么才能使用地址清理功能? Thank you. 谢谢。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM