Disable LOAD_STACK_GUARD on OpenBSD/armv7. It seems the implementation
authorkettenis <kettenis@openbsd.org>
Sun, 19 Nov 2023 16:42:05 +0000 (16:42 +0000)
committerkettenis <kettenis@openbsd.org>
Sun, 19 Nov 2023 16:42:05 +0000 (16:42 +0000)
is incomplete resulting in SIGSEGV with the OpenBSD default options.

ok deraadt@, jsg@

gnu/llvm/llvm/lib/Target/ARM/ARMISelLowering.cpp

index 2e78b52..200d450 100644 (file)
@@ -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();
 }