diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2017-05-13 13:54:49 +0300 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2017-05-13 13:54:49 +0300 |
commit | 42156b5190f4fa150e1fab6777eb81e69d4db8c9 (patch) | |
tree | 3bf47de81cf1f89892789535a036d2d55d93a136 /debian/patches/bind_now_when_pie.diff | |
download | gcc-6-debian.tar.gz |
Imported gcc-6 (6.3.0-17)debian/6.3.0-17debian
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 "" |