Add support for Score target.
[platform/upstream/binutils.git] / gas / testsuite / gas / elf / elf.exp
index 475908b..2acecbf 100644 (file)
@@ -50,17 +50,37 @@ if { ([istarget "*-*-*elf*"]
     if {[istarget m32r*-*-*]} then {
        set target_machine -m32r
     }
+    if {[istarget "score-*-*"]} then {
+       set target_machine -score
+    }
+    if { ([istarget "*arm*-*-*"]
+         || [istarget "xscale*-*-*"])
+       && ([istarget "*-*-*eabi"]
+           || [istarget "*-*-symbianelf"])} then {
+       set target_machine -armeabi
+    }
     run_dump_test "ehopt0"
     run_dump_test "group0a" 
     run_dump_test "group0b" 
     run_dump_test "group1a" 
     run_dump_test "group1b" 
+    case $target_triplet in {
+       { alpha*-*-* } { }
+       { hppa*-*-* } { }
+       { iq2000*-*-* } { }
+       { mips*-*-* } { }
+       { *c54x*-*-* } { }
+       default {
+           run_dump_test redef
+       }
+    }
     run_dump_test "section0" 
     run_dump_test "section1" 
     run_list_test "section2" "$target_machine" "-al" "-s" ""
     run_dump_test "section3" 
     run_dump_test "section4"
-    run_list_test "section5" "" "-al" "-SW" "| grep \" \\\\.test\\\[\\\[:digit:\\\]\\\]\""
+    run_list_test "section5" "" "-al" "-SW" "| grep \" \\\\.test\\\[0-9\\\]\""
+    run_dump_test "struct" 
     run_dump_test "symver" 
     run_list_test "type" "" "" "-s" "| grep \"1 \\\[FONT\\\]\""
 }