summaryrefslogtreecommitdiff
path: root/patches/binutils/2.20/220-use-relro.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/binutils/2.20/220-use-relro.patch')
-rw-r--r--patches/binutils/2.20/220-use-relro.patch6
1 files changed, 6 insertions, 0 deletions
diff --git a/patches/binutils/2.20/220-use-relro.patch b/patches/binutils/2.20/220-use-relro.patch
new file mode 100644
index 0000000..abd5187
--- /dev/null
+++ b/patches/binutils/2.20/220-use-relro.patch
@@ -0,0 +1,6 @@
+--- binutils/ld/ldmain.c
++++ binutils/ld/ldmain.c
+@@ -293,2 +293,3 @@ main (int argc, char **argv)
+ link_info.combreloc = TRUE;
++ link_info.relro = TRUE;
+ link_info.strip_discarded = TRUE;