summaryrefslogtreecommitdiff
path: root/user/llvm7/more-secure-plt.patch
diff options
context:
space:
mode:
Diffstat (limited to 'user/llvm7/more-secure-plt.patch')
-rw-r--r--user/llvm7/more-secure-plt.patch15
1 files changed, 0 insertions, 15 deletions
diff --git a/user/llvm7/more-secure-plt.patch b/user/llvm7/more-secure-plt.patch
deleted file mode 100644
index 64920c74c..000000000
--- a/user/llvm7/more-secure-plt.patch
+++ /dev/null
@@ -1,15 +0,0 @@
-diff --git a/lib/Target/PowerPC/PPCTargetMachine.cpp b/lib/Target/PowerPC/PPCTargetMachine.cpp
-index c583fba8cab..6a9eedf89c5 100644
---- a/lib/Target/PowerPC/PPCTargetMachine.cpp
-+++ b/lib/Target/PowerPC/PPCTargetMachine.cpp
-@@ -222,6 +222,10 @@ static Reloc::Model getEffectiveRelocModel(const Triple &TT,
- if (TT.getArch() == Triple::ppc64 || TT.getArch() == Triple::ppc64le)
- return Reloc::PIC_;
-
-+ // musl needs SecurePlt, which depends on PIC.
-+ if (TT.getEnvironment() == Triple::Musl)
-+ return Reloc::PIC_;
-+
- // 32-bit is static by default.
- return Reloc::Static;
- }