aboutsummaryrefslogtreecommitdiffstats
path: root/main/llvm/clang-0004-alpine-use-z-relro.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/llvm/clang-0004-alpine-use-z-relro.patch')
-rw-r--r--main/llvm/clang-0004-alpine-use-z-relro.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/main/llvm/clang-0004-alpine-use-z-relro.patch b/main/llvm/clang-0004-alpine-use-z-relro.patch
new file mode 100644
index 0000000000..c7fe94bed1
--- /dev/null
+++ b/main/llvm/clang-0004-alpine-use-z-relro.patch
@@ -0,0 +1,25 @@
+From 383827121a633f2cf93535487e991efd6e4ff577 Mon Sep 17 00:00:00 2001
+From: Travis Tilley <ttilley@gmail.com>
+Date: Tue, 28 Apr 2015 20:25:51 -0400
+Subject: [PATCH 4/8] alpine-use-z-relro.patch
+
+---
+ lib/Driver/ToolChains.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/lib/Driver/ToolChains.cpp b/lib/Driver/ToolChains.cpp
+index 620a44a..006915c 100644
+--- a/lib/Driver/ToolChains.cpp
++++ b/lib/Driver/ToolChains.cpp
+@@ -2939,7 +2939,7 @@ Linux::Linux(const Driver &D, const llvm::Triple &Triple, const ArgList &Args)
+
+ Distro Distro = DetectDistro(Arch);
+
+- if (IsOpenSUSE(Distro) || IsUbuntu(Distro)) {
++ if (IsOpenSUSE(Distro) || IsUbuntu(Distro) || Distro == AlpineLinux) {
+ ExtraOpts.push_back("-z");
+ ExtraOpts.push_back("relro");
+ }
+--
+2.1.4
+