I’m trying to use the Clang UBSan Undefined Behavior Sanitizer on cortex-a53. I switched to using armclang as the linker instead of armlink as specified here. I use options: -fsanitize=undefined and -fsanitize-trap=all as described here. Linking fails and it looks like the linker cannot find a ubsan library. I see a lot of undefined symbol errors for symbols starting with __ubsan_... such as:
Error: L6218E: Undefined symbol __ubsan_handle_type_mismatch_v1.
Is UBSan available for ARM cortex-a53?
I found that I had -fsanitize-trap=all as a linker option instead of a compiler option. changing it to a compiler option fixed the problem, the program compiles and links now with ubsan without any library being provided at link time, thanks!