patches/binutils/2.20.1a/220-use-relro.patch
changeset 2664 346263a07115
parent 2088 4f21ba5f8e91
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/patches/binutils/2.20.1a/220-use-relro.patch	Sun Sep 11 18:18:53 2011 +0200
     1.3 @@ -0,0 +1,13 @@
     1.4 +
     1.5 +
     1.6 +diff -durN binutils-2.20.1.orig/ld/ldmain.c binutils-2.20.1/ld/ldmain.c
     1.7 +--- binutils-2.20.1.orig/ld/ldmain.c	2010-08-17 19:32:17.000000000 +0200
     1.8 ++++ binutils-2.20.1/ld/ldmain.c	2010-08-17 19:32:18.000000000 +0200
     1.9 +@@ -264,6 +264,7 @@
    1.10 +   link_info.keep_memory = TRUE;
    1.11 +   link_info.new_dtags = TRUE;
    1.12 +   link_info.combreloc = TRUE;
    1.13 ++  link_info.relro = TRUE;
    1.14 +   link_info.strip_discarded = TRUE;
    1.15 +   link_info.emit_hash = TRUE;
    1.16 + #ifndef __mips__