Building the Linux kernel with the newly added support for -fsanitize=shadow-call-stack fails on big-endian platforms with: clang: error: unsupported option '-fsanitize=shadow-call-stack' for target 'aarch64_be-unknown-linux' I have submitted a workaround for the kernel, but this is likely a bug in clang and there may be no technical reason to prevent the combination.
https://reviews.llvm.org/D80647
a2a3e9f0a6e91103a0d1fa73086dbdf109c48f69 Will ask tstellar to cherry pick to release/10.x
Apologies that I found the wrong place in a2a3e9f0a6e91103a0d1fa73086dbdf109c48f69 b9c6871a9570975827dc0bbeb39131c99c8daf8e is the proper fix. Both are needed because they touch the same lines.
Reopen for release-10.0.1 Needs to merge a2a3e9f0a6e91103a0d1fa73086dbdf109c48f69 and b9c6871a9570975827dc0bbeb39131c99c8daf8e to avoid Linux kernel patch like https://lore.kernel.org/linux-arm-kernel/20200527134016.753354-1-arnd@arndb.de/ [PATCH] arm64: disable -fsanitize=shadow-call-stack for big-endian
Tim, What do you think about merging these? https://reviews.llvm.org/rGa2a3e9f0a6e91103a0d1fa73086dbdf109c48f69 https://reviews.llvm.org/rGb9c6871a9570975827dc0bbeb39131c99c8daf8e
Yep, this one looks fine.
Merged: f9da0a7f36f