How to use AddressSanitizer of gcc-4.8 on Arm target

Tobias Burnus burnus@net-b.de
Thu May 23 09:22:00 GMT 2013


Jungsoo Son:
> AddressSanitizer of Gcc-4.8 is not available on Arm arch yet. I have found
> it in gcc-4.8 release note.
[...]
> Is there any way to test AddressSanitizer on arm through changing compile
> option or enable some-feature?

Well, if it is not implemented, it is not implemented. There is no 
option to change that.

However, GCC 4.9 will get ARM support for the address sanitizer. It 
seems as if the following patch has been committed two weeks ago: 
http://gcc.gnu.org/ml/gcc-patches/2013-05/msg00338.html

Thus, you just need to build GCC 4.9 - and then -fsanitize=address 
should work.

Tobias



More information about the Gcc-help mailing list