daily update
[deliverable/binutils-gdb.git] / ld / testsuite / ld-sh / rd-sh.exp
index 5bc9a0c5752b5027d1d5ef66f86efa2aa4348c03..886bd1fc3751237ad1b95ae75746f09a95ec0913 100644 (file)
@@ -28,9 +28,27 @@ if ![istarget sh*-*-*] {
     return
 }
 
+global ASFLAGS
+set asflags_save "$ASFLAGS"
+
+if {[istarget sh64*-*-*] || [istarget sh5*-*-*]} then {
+    set ASFLAGS "$ASFLAGS -isa=SHcompact"
+}
+
 set rd_test_list [lsort [glob -nocomplain $srcdir/$subdir/*.d]]
 foreach shtest $rd_test_list {
     # We need to strip the ".d", but can leave the dirname.
     verbose [file rootname $shtest]
     run_dump_test [file rootname $shtest]
+    if [string match $srcdir/$subdir/*-dso.d $shtest] {
+       # Copy the output of the DSO-createing test to .so file.
+       # Notice that a DSO-creating test must preceed the tests
+       # which need that DSO in sort-order by name.
+       set cmd "cp tmpdir/dump tmpdir/[file rootname [file tail $shtest]].so"
+       send_log "$cmd\n"
+       set cmdret [catch "exec $cmd" comp_output]
+       send_log "$comp_output\n"
+       # FIXME: What if it fails?  Need we do something?
+    }
 }
+set ASFLAGS "$asflags_save"
This page took 0.024145 seconds and 4 git commands to generate.