Emit a warning when -z relro is unsupported
[deliverable/binutils-gdb.git] / ld / testsuite / lib / ld-lib.exp
index a949437cea301b944df559009e5ba0dc21c2b19b..0a256c2395faa1df515e253c8a3b90f48ce2f702 100644 (file)
@@ -463,12 +463,10 @@ proc run_ld_link_tests { ldtests args } {
     global CFLAGS
     global runtests
     global exec_output
-    global ld_elf_shared_opt
 
-    if { [is_elf_format] && [check_shared_lib_support] } {
-       set ld_extra_opt "$ld_elf_shared_opt"
-    } else {
-       set ld_extra_opt ""
+    set ld_extra_opt ""
+    if [check_relro_support] {
+       set ld_extra_opt "-z norelro"
     }
 
     foreach testitem $ldtests {
This page took 0.024451 seconds and 4 git commands to generate.