|
Lucio Andrés Illanes Albornoz (arab, vxp) |
585426 |
From e089ab63916eada060fdfffbf7422c9b20bafe84 Mon Sep 17 00:00:00 2001
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
585426 |
From: Natanael Copa <ncopa@alpinelinux.org>
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
585426 |
Date: Tue, 23 Feb 2016 10:08:17 +0000
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
585426 |
Subject: [PATCH 6/7] Link with -z now by default for Alpine Linux
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
585426 |
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
585426 |
---
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
585426 |
lib/Driver/ToolChains.cpp | 5 +++++
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
585426 |
1 file changed, 5 insertions(+)
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
585426 |
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
585426 |
diff --git a/lib/Driver/ToolChains.cpp b/lib/Driver/ToolChains.cpp
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
585426 |
index 82449bf..1a8ebf5 100644
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
585426 |
--- a/lib/Driver/ToolChains.cpp
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
585426 |
+++ b/lib/Driver/ToolChains.cpp
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
585426 |
@@ -3671,6 +3671,11 @@ Linux::Linux(const Driver &D, const llvm::Triple &Triple, const ArgList &Args)
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
585426 |
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
585426 |
Distro Distro = DetectDistro(D, Arch);
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
585426 |
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
585426 |
+ if (Distro == AlpineLinux) {
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
585426 |
+ ExtraOpts.push_back("-z");
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
585426 |
+ ExtraOpts.push_back("now");
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
585426 |
+ }
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
585426 |
+
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
585426 |
if (IsOpenSUSE(Distro) || IsUbuntu(Distro) || Distro == AlpineLinux) {
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
585426 |
ExtraOpts.push_back("-z");
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
585426 |
ExtraOpts.push_back("relro");
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
585426 |
--
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
585426 |
2.7.3
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
585426 |
|