summaryrefslogtreecommitdiff
path: root/debian/patches/bind_now_when_pie.diff
blob: 4fe24feca72d7c5ef7d58cb587e716a9ca307ac7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Author: Steve Beattie <steve.beattie@canonical.com>
Description: enable bind now by default when linking with pie by default

---
 src/gcc/gcc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: b/src/gcc/gcc.c
===================================================================
--- a/src/gcc/gcc.c
+++ b/src/gcc/gcc.c
@@ -936,7 +936,11 @@ proper position among the other output f
 #ifndef LINK_PIE_SPEC
 #ifdef HAVE_LD_PIE
 #ifndef LD_PIE_SPEC
+#ifdef ACCEL_COMPILER
 #define LD_PIE_SPEC "-pie"
+#else
+#define LD_PIE_SPEC "-pie -z now"
+#endif
 #endif
 #else
 #define LD_PIE_SPEC ""