]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - ld/ChangeLog
ld: Add a linker configure option --enable-relro
[thirdparty/binutils-gdb.git] / ld / ChangeLog
index 7a2d781fc7bda5f05fcaaa02a9bb4fb6d3056f43..8c85993b60580cd06e2456403375eff07fad58da 100644 (file)
@@ -1,3 +1,21 @@
+2016-06-22  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/20283
+       * NEWS: Mention --enable-relro.
+       * configure.ac: Add --enable-relro.
+       (DEFAULT_LD_Z_RELRO): New.  Set by --enable-relro.
+       * configure.tgt (ac_default_ld_z_relro): Default it to 1 for
+       some Linux targets.
+       * config.in: Regenerated.
+       * configure: Likewise.
+       * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Set
+       link_info.relro to DEFAULT_LD_Z_RELRO.
+       * testsuite/config/default.exp (ld_elf_shared_opt): New.
+       * testsuite/lib/ld-lib.exp (run_dump_test): Pass
+       $ld_elf_shared_opt to ld for ELF targets with shared object
+       support.
+       (run_ld_link_tests): Likewise.
+
 2016-06-21  Maciej W. Rozycki  <macro@imgtec.com>
 
        * testsuite/ld-mips-elf/mode-change-error-1a.s: Trigger an error