From: kettenis Date: Sun, 19 Nov 2023 16:42:05 +0000 (+0000) Subject: Disable LOAD_STACK_GUARD on OpenBSD/armv7. It seems the implementation X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=cdd3ff7c9bd29161e0ca09d6887cf4598c727e30;p=openbsd Disable LOAD_STACK_GUARD on OpenBSD/armv7. It seems the implementation is incomplete resulting in SIGSEGV with the OpenBSD default options. ok deraadt@, jsg@ --- 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(); }