patches/binutils/2.19.1a/170-use-relro.patch
changeset 2664 346263a07115
parent 1243 5d15872659ec
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/patches/binutils/2.19.1a/170-use-relro.patch	Sun Sep 11 18:18:53 2011 +0200
     1.3 @@ -0,0 +1,19 @@
     1.4 +Original patch from: ../crosstool-NG/ct-ng.trunk/patches/binutils/2.19/170-use-relro.patch
     1.5 +
     1.6 +-= BEGIN original header =-
     1.7 +Original patch from Gentoo:
     1.8 +gentoo/src/patchsets/binutils/2.19/78_all_use-relro.patch
     1.9 +
    1.10 +-= END original header =-
    1.11 +
    1.12 +diff -durN binutils-2.19.1.orig/ld/ldmain.c binutils-2.19.1/ld/ldmain.c
    1.13 +--- binutils-2.19.1.orig/ld/ldmain.c	2009-03-08 11:57:03.000000000 +0100
    1.14 ++++ binutils-2.19.1/ld/ldmain.c	2009-03-08 11:57:03.000000000 +0100
    1.15 +@@ -264,6 +264,7 @@
    1.16 +   link_info.keep_memory = TRUE;
    1.17 +   link_info.new_dtags = TRUE;
    1.18 +   link_info.combreloc = TRUE;
    1.19 ++  link_info.relro = TRUE;
    1.20 +   link_info.strip_discarded = TRUE;
    1.21 +   link_info.emit_hash = TRUE;
    1.22 +   link_info.callbacks = &link_callbacks;