Enable relro by default for AArch64, ARM and SCORE.
authorNick Clifton <nickc@redhat.com>
Fri, 19 Aug 2016 08:27:52 +0000 (09:27 +0100)
committerNick Clifton <nickc@redhat.com>
Fri, 19 Aug 2016 08:27:52 +0000 (09:27 +0100)
ld * emultempl/aarch64elf.em (before_parse): Initialise the relro
field in the link_info structure.
* emultempl/armelf.em (before_parse): Likewise.
* emultempl/linux.em (before_parse): Likewise.
* emultempl/scoreelf.em (before_parse): Likewise.

ld/ChangeLog
ld/emultempl/aarch64elf.em
ld/emultempl/armelf.em
ld/emultempl/linux.em
ld/emultempl/scoreelf.em

index f75c42cffeabf0dd598f28fc0546b267a0571670..34cdf776ad5694726d22913ae55d2ecdc5c72ff7 100644 (file)
@@ -1,5 +1,11 @@
 2016-08-19  Nick Clifton  <nickc@redhat.com>
 
+       * emultempl/aarch64elf.em (before_parse): Initialise the relro
+       field in the link_info structure.
+       * emultempl/armelf.em (before_parse): Likewise.
+       * emultempl/linux.em (before_parse): Likewise.
+       * emultempl/scoreelf.em (before_parse): Likewise.
+
        * testsuite/ld-alpha/tlsbin.rd: Adjust expected ordering of sections.
        * testsuite/ld-alpha/tlsbinr.rd: Likewise.
        * testsuite/ld-alpha/tlspic.rd: Likewise.
index a17553a6a59e0a6e5c8180d279926003c21bd93e..9f2c349923a017eeccf77959105c5968b7d3459e 100644 (file)
@@ -43,6 +43,7 @@ gld${EMULATION_NAME}_before_parse (void)
   input_flags.dynamic = ${DYNAMIC_LINK-TRUE};
   config.has_shared = `if test -n "$GENERATE_SHLIB_SCRIPT" ; then echo TRUE ; else echo FALSE ; fi`;
   config.separate_code = `if test "x${SEPARATE_CODE}" = xyes ; then echo TRUE ; else echo FALSE ; fi`;
+  link_info.relro = DEFAULT_LD_Z_RELRO;
 }
 
 static void
index c21f6a82335a58a0ab37f3719c73c95e73e6211c..2678740d7d8ab9d7e0c860e492949d7ad58e3eac 100644 (file)
@@ -53,6 +53,7 @@ gld${EMULATION_NAME}_before_parse (void)
   input_flags.dynamic = ${DYNAMIC_LINK-TRUE};
   config.has_shared = `if test -n "$GENERATE_SHLIB_SCRIPT" ; then echo TRUE ; else echo FALSE ; fi`;
   config.separate_code = `if test "x${SEPARATE_CODE}" = xyes ; then echo TRUE ; else echo FALSE ; fi`;
+  link_info.relro = DEFAULT_LD_Z_RELRO;
 }
 
 static void
index c28e9785b466366873028291f6474c6523c717ca..64a9130cac36920481aeecc699e8e458f882cc88 100644 (file)
@@ -50,6 +50,7 @@ gld${EMULATION_NAME}_before_parse (void)
   ldfile_set_output_arch ("${OUTPUT_ARCH}", bfd_arch_`echo ${ARCH} | sed -e 's/:.*//'`);
   input_flags.dynamic = TRUE;
   config.has_shared = TRUE;
+  link_info.relro = DEFAULT_LD_Z_RELRO;
 }
 
 /* Try to open a dynamic archive.  This is where we know that Linux
index 6433365f662b325d3e972181e4cbe0e081890bb5..7df7f5f68dbfc6804ba3088a8a21f75ede12a9b4 100644 (file)
@@ -39,6 +39,7 @@ gld${EMULATION_NAME}_before_parse (void)
   input_flags.dynamic = ${DYNAMIC_LINK-TRUE};
   config.has_shared = `if test -n "$GENERATE_SHLIB_SCRIPT" ; then echo TRUE ; else echo FALSE ; fi`;
   config.separate_code = `if test "x${SEPARATE_CODE}" = xyes ; then echo TRUE ; else echo FALSE ; fi`;
+  link_info.relro = DEFAULT_LD_Z_RELRO;
 }
 
 static void
This page took 0.027696 seconds and 4 git commands to generate.