summaryrefslogtreecommitdiff
path: root/debian/patches/bind_now_when_pie.diff
blob: 516a164ddea3fd5d1002f6dc2b4de8af966536ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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
@@ -930,7 +930,7 @@ proper position among the other output f
 #ifndef LINK_PIE_SPEC
 #ifdef HAVE_LD_PIE
 #ifndef LD_PIE_SPEC
-#define LD_PIE_SPEC "-pie"
+#define LD_PIE_SPEC "-pie -z now"
 #endif
 #else
 #define LD_PIE_SPEC ""