Hi all,
I'm trying to compile my application with -fsanitize but when linking it fails complaining that it cannot find any library for the linker flag '-lasan'. I did check and it seems that the ARM toolchain 8.2-2018.11 does not ship with asan runtime library libasan.so.
Is there any way to get this library without having to resort to another toolchain or building libasan from source or am I missing something?
Moreover it seems quite strange that while GCC 8.2 indeed supports building with the address sanitizer support the ARM toolchain does not ship its runtime library.
libasan requires a Linux target, which is why the GNU RM releases, which are a baremetal release don't include libasan.
I am using the GNU A release, the complete triplete of the toolchain I'm using is arm-linux-gnueabihf, right now I cross-compiled myself the libasan.so shared library but having it already shipped with the toolchain would be much better
Ah in that case that sounds like a bug, I'll chase after this and get back to you.
Dear sir/madam,
This should be fixed in toolchain release gcc-arm-8.2-2019.01 onwards.
See: bugs.linaro.org/show_bug.cgi
kind regards