* lib/ld-lib.exp (run_ld_link_tests): Add another argument, pass
[deliverable/binutils-gdb.git] / ld / testsuite / ld-elf / elf.exp
index 50634c60d68b51733c8f19b6a0a78f80965da9c7..236e15bb6060a9c79d1329e6a541a9906560f1c4 100644 (file)
@@ -56,23 +56,23 @@ if { [is_remote host] } then {
 if { ![istarget hppa64*-hpux*] } {
     run_ld_link_tests {
        {"Build symbol3.a"
-           "" ""
+           "" "" ""
            {symbol3.s} {} "symbol3.a"}
        {"Build symbol3w.a"
-           "" ""
+           "" "" ""
            {symbol3w.s} {} "symbol3w.a"}
     }
 
     if { [check_shared_lib_support] } then {
        run_ld_link_tests {
-           {"Build pr14170a.o" "" "" "pr14170a.s" {} "pr14170.a" }
+           {"Build pr14170a.o" "" "" "" "pr14170a.s" {} "pr14170.a" }
        }
        setup_xfail "tic6x-*-*"
        run_ld_link_tests {
            {"Build shared library for pr14170"
-               "-shared" "" "pr14170b.s" {} "pr14170.so" }
+               "-shared" "" "" "pr14170b.s" {} "pr14170.so" }
            {"PR ld/14170"
-               "tmpdir/pr14170a.o tmpdir/pr14170.so" "" "pr14170c.s"
+               "tmpdir/pr14170a.o tmpdir/pr14170.so" "" "" "pr14170c.s"
                { } "pr14170" }
        }
     }
@@ -88,9 +88,9 @@ if { [check_shared_lib_support] } then {
     setup_xfail "tic6x-*-*"
     run_ld_link_tests {
        {"Build shared library for next test"
-           "-shared" "" "note-3.s" {} "note-3.so" }
+           "-shared" "" "" "note-3.s" {} "note-3.so" }
        {"Link using broken linker script"
-           "--script note-3.t tmpdir/note-3.so" "" ""
+           "--script note-3.t tmpdir/note-3.so" "" "" ""
            { { ld "note-3.l" } }
            "a.out" }
     }
@@ -108,11 +108,11 @@ if { [istarget *-*-linux*]
      || [istarget *-*-gnu*] } {
     run_ld_link_tests {
        {"Weak symbols in dynamic objects 1 (support)"
-           "-shared" "" {weak-dyn-1a.s}
+           "-shared" "" "" {weak-dyn-1a.s}
            {}
            "libweakdyn1a.so"}
        {"Weak symbols in dynamic objects 1 (main test)"
-           "-shared tmpdir/libweakdyn1a.so -Tweak-dyn-1.ld" "" {weak-dyn-1b.s}
+           "-shared tmpdir/libweakdyn1a.so -Tweak-dyn-1.ld" "" "" {weak-dyn-1b.s}
            {{readelf {--relocs --wide} weak-dyn-1.rd}}
            "libweakdyn1b.so"}
     }
@@ -122,7 +122,7 @@ if { [istarget *-*-linux*]
 if { [check_gc_sections_available] && ![istarget "v850-*-*"] } {
     run_ld_link_tests {
        {"--gc-sections on tls variable"
-           "--gc-section" "" {tls_gc.s} {} "tls_gc"}
+           "--gc-section" "" "" {tls_gc.s} {} "tls_gc"}
     }
 }
 
@@ -130,9 +130,9 @@ if { [istarget *-*-*linux*]
      || [istarget *-*-nacl*]
      || [istarget *-*-gnu*] } {
     run_ld_link_tests {
-       {"stack exec" "-z execstack" "" {stack.s}
+       {"stack exec" "-z execstack" "" "" {stack.s}
            {{readelf {-Wl} stack-exec.rd}} "stack-exec.exe"}
-       {"stack size" "-z stack-size=0x123400" "" {stack.s}
+       {"stack size" "-z stack-size=0x123400" "" "" {stack.s}
            {{readelf {-Wl} stack-size.rd}} "stack-size.exe"}
     }
 }
This page took 0.026196 seconds and 4 git commands to generate.