The build of scudo was failing on armv7l, with undefined references
to unwinder symbols, such as __aeabi_unwind_cpp_pr0. These are
needed by RTGwpAsan and thus, on ARM, scudo must also be linked
against an unwind library.
Besides that, fuzzer build was also failing, but with an invalid
triple error. This happened because CMake's get_compiler_rt_target
function was missing some code to correctly handle arm archs,
such as armhf.
Fixes https://github.com/llvm/llvm-project/issues/60115
The scudo build doesn't fail on other architectures, such as AArch64, because
of differences in the unwind ABI of those. For instance, on AArch64, when
`-funwind-tables` is used, it only adds an `.eh_frame` section, but no
references to an unwind library.
The fix of the invalid triple error was obtained from D140011.