MinGW-w64's gcc and Address Sanitizer

烂漫一生 提交于 2019-12-18 12:18:19

问题


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'

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.

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


回答1:


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



来源:https://stackoverflow.com/questions/31144000/mingw-w64s-gcc-and-address-sanitizer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!