x86-64: Run pr22001-1b on x32
[deliverable/binutils-gdb.git] / ld / testsuite / ld-x86-64 / x86-64.exp
index 6dc3665712161e34cb1d43e08cffbc5a379b4cae..7382a1bbfe61f9845a9fe390a4695880c7e1f224 100644 (file)
@@ -1056,16 +1056,33 @@ if { [isnative] && [which $CC] != 0 } {
            {{error_output "pr22001-1a.err"}} \
            "pr22001-1a" \
        ] \
-       [list \
-           "Build pr22001-1b" \
-           "$NOPIE_LDFLAGS -Wl,-z,nocopyreloc,--no-as-needed tmpdir/pr22001-1.so" \
-           "$NOPIE_CFLAGS" \
-           { pr22001-1c.c } \
-           {{error_output "pr22001-1b.err"}} \
-           "pr22001-1b" \
-       ] \
     ]
 
+    if  {[istarget "x86_64-*-linux*-gnux32"]} {
+       run_ld_link_exec_tests [list \
+           [list \
+               "Run pr22001-1b" \
+               "$NOPIE_LDFLAGS -Wl,-z,nocopyreloc,--no-as-needed tmpdir/pr22001-1.so" \
+               "" \
+               { pr22001-1c.c } \
+               "pr22001-1b" \
+               "pass.out" \
+               "$NOPIE_CFLAGS" \
+           ] \
+       ]
+    } else {
+       run_cc_link_tests [list \
+           [list \
+               "Build pr22001-1b" \
+               "$NOPIE_LDFLAGS -Wl,-z,nocopyreloc,--no-as-needed tmpdir/pr22001-1.so" \
+               "$NOPIE_CFLAGS" \
+               { pr22001-1c.c } \
+               {{error_output "pr22001-1b.err"}} \
+               "pr22001-1b" \
+           ] \
+       ]
+    }
+
     run_ld_link_exec_tests [list \
        [list \
            "Run plt-main" \
This page took 0.023817 seconds and 4 git commands to generate.