diff options
Diffstat (limited to 'lang/rust/files/powerpc/patch-src_llvm__project_llvm_lib_Target_PowerPC_PPCSubtarget.cpp')
-rw-r--r-- | lang/rust/files/powerpc/patch-src_llvm__project_llvm_lib_Target_PowerPC_PPCSubtarget.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lang/rust/files/powerpc/patch-src_llvm__project_llvm_lib_Target_PowerPC_PPCSubtarget.cpp b/lang/rust/files/powerpc/patch-src_llvm__project_llvm_lib_Target_PowerPC_PPCSubtarget.cpp new file mode 100644 index 000000000000..363094b72fae --- /dev/null +++ b/lang/rust/files/powerpc/patch-src_llvm__project_llvm_lib_Target_PowerPC_PPCSubtarget.cpp @@ -0,0 +1,13 @@ +--- src/llvm-project/llvm/lib/Target/PowerPC/PPCSubtarget.cpp.orig 2021-04-27 07:17:18.744914000 -0500 ++++ src/llvm-project/llvm/lib/Target/PowerPC/PPCSubtarget.cpp 2021-04-27 07:25:23.450714000 -0500 +@@ -151,7 +151,9 @@ void PPCSubtarget::initSubtargetFeatures(StringRef CPU + if (IsPPC64 && has64BitSupport()) + Use64BitRegs = true; + +- if ((TargetTriple.isOSFreeBSD() && TargetTriple.getOSMajorVersion() >= 13) || ++ if ((TargetTriple.isOSFreeBSD() && ++ (TargetTriple.getOSMajorVersion() == 0 || ++ TargetTriple.getOSMajorVersion() >= 13)) || + TargetTriple.isOSNetBSD() || TargetTriple.isOSOpenBSD() || + TargetTriple.isMusl()) + SecurePlt = true; |