]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - ld/testsuite/config/default.exp
ld: Add a linker configure option --enable-relro
[thirdparty/binutils-gdb.git] / ld / testsuite / config / default.exp
index 8ccad111b5f930bcd4b599e34471657301a410c0..208c0d3b03d62c3419a7c60d6c6e4931c51992aa 100644 (file)
@@ -76,6 +76,9 @@ if {[file exists tmpdir/libpath.exp]} {
     }
 }
 
+# Many ELF testcases expect that "-z relro" is off.
+set ld_elf_shared_opt "-z norelro"
+
 # The "make check" target in the Makefile passes in
 # "CC=$(CC_FOR_TARGET)".  But, if the user invokes runtest directly
 # (as when testing an installed linker), these flags may not be set.