20 lines
791 B
Plaintext
20 lines
791 B
Plaintext
$OpenBSD: patch-lib_Target_AArch64_AArch64ISelLowering_cpp,v 1.11 2020/08/05 06:49:48 jca Exp $
|
|
|
|
Disable the Load Stack Guard for OpenBSD on AArch64. We don't use it
|
|
on any other platform and it causes a segfault in combination with our
|
|
IR Stack Guard.
|
|
|
|
Index: lib/Target/AArch64/AArch64ISelLowering.cpp
|
|
--- lib/Target/AArch64/AArch64ISelLowering.cpp.orig
|
|
+++ lib/Target/AArch64/AArch64ISelLowering.cpp
|
|
@@ -13030,7 +13030,8 @@ void AArch64TargetLowering::ReplaceNodeResults(
|
|
}
|
|
|
|
bool AArch64TargetLowering::useLoadStackGuardNode() const {
|
|
- if (Subtarget->isTargetAndroid() || Subtarget->isTargetFuchsia())
|
|
+ if (Subtarget->isTargetAndroid() || Subtarget->isTargetFuchsia() ||
|
|
+ Subtarget->isTargetOpenBSD())
|
|
return TargetLowering::useLoadStackGuardNode();
|
|
return true;
|
|
}
|