https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67286
--- Comment #9 from weiguo.zhou <weiguo.zhou at spreadtrum dot com> --- (In reply to Yury Gribov from comment #7) > (In reply to weiguo.zhou from comment #6) > > It seems Google's official docs indicate the asan only supported on Android > > with LLVM-based clang toolchain. > > That was my impression as well. > > > in the fact, it should be supported "well" > > on Android with gcc-based toolchain. > > I'm not sure what you mean. Is ASan runtime (libasan.so) built when you > build Android cross-compiler? If it's not, then ASan is not supported by GCC > on Android. as I explained just now, after generate the final cross-compile toolchain for android/arm32 successfully, the last step is generate the libasasn.so.2 with the final cross-compile toolchain(because the runtime detection asan library should be running on real ARM32 board).