patches/binutils/2.20/220-use-relro.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Sep 11 12:38:12 2010 +0200 (2010-09-11)
changeset 2110 ee9b54d04dd4
permissions -rw-r--r--
config/arch: re-organise architecture-specific options

Move the arch-specific options to the second-part of
the generated files, so they appear after the generic
options, but before the optimisations.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
yann@1614
     1
--- binutils/ld/ldmain.c
yann@1614
     2
+++ binutils/ld/ldmain.c
yann@1614
     3
@@ -293,2 +293,3 @@ main (int argc, char **argv)
yann@1614
     4
   link_info.combreloc = TRUE;
yann@1614
     5
+  link_info.relro = TRUE;
yann@1614
     6
   link_info.strip_discarded = TRUE;