only enable bti and pac by default on arm64
authorjsg <jsg@openbsd.org>
Mon, 20 Nov 2023 01:35:21 +0000 (01:35 +0000)
committerjsg <jsg@openbsd.org>
Mon, 20 Nov 2023 01:35:21 +0000 (01:35 +0000)
commitc88b740367380f418758d21aa27d6ab66319461d
tree8450461106d4af44b97b14dbaf2d11bec194f68b
parent04cb4607761f82431bab75ac4a36f589b931d884
only enable bti and pac by default on arm64

before this change, clang on armv7 defined __ARM_FEATURE_BTI_DEFAULT and
__ARM_FEATURE_PAC_DEFAULT which broke the build of llvm libunwind

ok kettenis@ deraadt@
gnu/llvm/clang/lib/Driver/ToolChains/Clang.cpp