summaryrefslogtreecommitdiff
path: root/debian/patches/bind_now_when_pie.diff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2019-11-18 15:53:29 +0300
committerIgor Pashev <pashev.igor@gmail.com>2019-11-18 15:53:29 +0300
commit8f6c4b0033c72f8ac14694c419a99458339dd6a9 (patch)
tree06c106e622a58100aa85a381b9b65d222b076df4 /debian/patches/bind_now_when_pie.diff
parent42156b5190f4fa150e1fab6777eb81e69d4db8c9 (diff)
downloadgcc-9-8f6c4b0033c72f8ac14694c419a99458339dd6a9.tar.gz
Import gcc-9 (9.2.1-19)debian/9.2.1-19debian
Diffstat (limited to 'debian/patches/bind_now_when_pie.diff')
-rw-r--r--debian/patches/bind_now_when_pie.diff7
1 files changed, 5 insertions, 2 deletions
diff --git a/debian/patches/bind_now_when_pie.diff b/debian/patches/bind_now_when_pie.diff
index 516a164..4fe24fe 100644
--- a/debian/patches/bind_now_when_pie.diff
+++ b/debian/patches/bind_now_when_pie.diff
@@ -9,12 +9,15 @@ Index: b/src/gcc/gcc.c
===================================================================
--- a/src/gcc/gcc.c
+++ b/src/gcc/gcc.c
-@@ -930,7 +930,7 @@ proper position among the other output f
+@@ -936,7 +936,11 @@ proper position among the other output f
#ifndef LINK_PIE_SPEC
#ifdef HAVE_LD_PIE
#ifndef LD_PIE_SPEC
--#define LD_PIE_SPEC "-pie"
++#ifdef ACCEL_COMPILER
+ #define LD_PIE_SPEC "-pie"
++#else
+#define LD_PIE_SPEC "-pie -z now"
++#endif
#endif
#else
#define LD_PIE_SPEC ""