From cdd3ff7c9bd29161e0ca09d6887cf4598c727e30 Mon Sep 17 00:00:00 2001 From: kettenis Date: Sun, 19 Nov 2023 16:42:05 +0000 Subject: [PATCH] Disable LOAD_STACK_GUARD on OpenBSD/armv7. It seems the implementation is incomplete resulting in SIGSEGV with the OpenBSD default options. ok deraadt@, jsg@ --- gnu/llvm/llvm/lib/Target/ARM/ARMISelLowering.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gnu/llvm/llvm/lib/Target/ARM/ARMISelLowering.cpp b/gnu/llvm/llvm/lib/Target/ARM/ARMISelLowering.cpp index 2e78b52d099..200d450537b 100644 --- a/gnu/llvm/llvm/lib/Target/ARM/ARMISelLowering.cpp +++ b/gnu/llvm/llvm/lib/Target/ARM/ARMISelLowering.cpp @@ -21198,6 +21198,8 @@ bool ARMTargetLowering::shouldInsertFencesForAtomic( } bool ARMTargetLowering::useLoadStackGuardNode() const { + if (Subtarget->getTargetTriple().isOSOpenBSD()) + return false; // ROPI/RWPI are not supported currently. return !Subtarget->isROPI() && !Subtarget->isRWPI(); } -- 2.20.1