patches/binutils/2.20/220-use-relro.patch
author Titus von Boxberg <titus@v9g.de>
Sun Aug 21 17:54:12 2011 +0200 (2011-08-21)
branch1.12
changeset 2635 daa630f28c05
permissions -rw-r--r--
complibs/libelf: use target ranlib

For portability, the right ranlib for the target must be passed to
libelf's configure.

Signed-off-by: "Titus von Boxberg" <titus@v9g.de>
(transplanted from e4a6fefcb0f5ecbcade3ae5edbe609560843aed1)
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;