diff options
Diffstat (limited to 'debian/patches/bind_now_when_pie.diff')
-rw-r--r-- | debian/patches/bind_now_when_pie.diff | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/debian/patches/bind_now_when_pie.diff b/debian/patches/bind_now_when_pie.diff new file mode 100644 index 0000000..516a164 --- /dev/null +++ b/debian/patches/bind_now_when_pie.diff @@ -0,0 +1,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 "" |