Special case handlign for m32r port
authorNick Clifton <nickc@redhat.com>
Tue, 15 Jan 2002 12:56:32 +0000 (12:56 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 15 Jan 2002 12:56:32 +0000 (12:56 +0000)
gas/testsuite/ChangeLog
gas/testsuite/gas/elf/elf.exp
gas/testsuite/gas/elf/section2.e-m32r [new file with mode: 0644]

index 95321c3..3be0e11 100644 (file)
@@ -1,5 +1,8 @@
 2002-01-15  Nick Clifton  <nickc@cambridge.redhat.com>
 
+       * gas/elf/section2.e-m32r: New file.
+       * gas/elf/elf.exp: Use section2.e-m32r for m32r targets.
+
        * gas/sh/dsp.d: Fix expected results.
 
 2002-01-14  Nick Clifton  <nickc@cambridge.redhat.com>
index b377a31..be2607a 100644 (file)
@@ -42,6 +42,9 @@ if { ([istarget "*-*-elf*"]
     if {[istarget "mips*-*-*"] || [istarget v850-*-*]} then {
        set target_machine -mips
     }
+    if {[istarget m32r*-*-*]} then {
+       set target_machine -m32r
+    }
     run_dump_test "ehopt0"
     run_dump_test "section0" 
     run_dump_test "section1" 
diff --git a/gas/testsuite/gas/elf/section2.e-m32r b/gas/testsuite/gas/elf/section2.e-m32r
new file mode 100644 (file)
index 0000000..4f401e1
--- /dev/null
@@ -0,0 +1,9 @@
+
+Symbol table '.symtab' contains 6 entries:
+   Num:    Value[      ]* Size Type    Bind   Vis      Ndx Name
+     0: 0+0     0 NOTYPE  LOCAL  DEFAULT  UND 
+     1: 0+0     0 SECTION LOCAL  DEFAULT    1 
+     2: 0+0     0 SECTION LOCAL  DEFAULT    2 
+     3: 0+0     0 SECTION LOCAL  DEFAULT    3 
+     4: 0+0     0 SECTION LOCAL  DEFAULT    5 
+     5: 0+0     0 SECTION LOCAL  DEFAULT    4