This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Patch to tweak the gas section2 test for mips
- To: binutils at sourceware dot cygnus dot com
- Subject: Patch to tweak the gas section2 test for mips
- From: "H . J . Lu" <hjl at lucon dot org>
- Date: Thu, 7 Jun 2001 18:11:26 -0700
mips has 2 extra sections. I checked in the following patch.
H.J.
---
2001-06-07 H.J. Lu <hjl@gnu.org>
* gas/elf/section2.e-mips: New file.
* gas/elf/elf.exp (run_list_test): Add suffix.
Pass -mips as suffix to run_list_test for mips.
Index: gas/elf/elf.exp
===================================================================
RCS file: /work/cvs/gnu/binutils/gas/testsuite/gas/elf/elf.exp,v
retrieving revision 1.8
diff -u -p -r1.8 elf.exp
--- gas/elf/elf.exp 2001/06/06 22:10:34 1.8
+++ gas/elf/elf.exp 2001/06/08 01:04:10
@@ -2,11 +2,11 @@
# elf tests
#
-proc run_list_test { name opts } {
+proc run_list_test { name suffix opts } {
global READELF
global srcdir subdir
set testname "elf $name list"
- set file $srcdir/$subdir/$name
+ set file $srcdir/$subdir/$readelf
gas_run ${name}.s "$opts -o dump.o" ">&dump.out"
if { [regexp_diff "dump.out" "${file}.l"] } then {
fail $testname
@@ -21,7 +21,7 @@ proc run_list_test { name opts } {
return
}
verbose_eval {[file_contents "dump.out"]} 3
- if { [regexp_diff "dump.out" "${file}.e"] } then {
+ if { [regexp_diff "dump.out" "${file}.e${suffix}"] } then {
fail $testname
verbose "output is [file_contents "dump.out"]" 2
return
@@ -38,8 +38,12 @@ if { ([istarget "*-*-elf*"]
&& ![istarget *-*-linux*coff*]
&& ![istarget *-*-linux*oldld*]
} then {
+ set target_machine ""
+ if [istarget "mips*-*-*"] then {
+ set target_machine -mips
+ }
run_dump_test "ehopt0"
run_dump_test "section0"
run_dump_test "section1"
- run_list_test "section2" "-al"
+ run_list_test "section2" "$target_machine" "-al"
}
--- /dev/null Fri Mar 23 20:37:44 2001
+++ gas/elf/section2.e-mips Thu Jun 7 17:46:39 2001
@@ -0,0 +1,10 @@
+
+Symbol table '.symtab' contains 7 entries:
+ Num: Value Size Type Bind Vis Ndx Name
+ 0: 00000000 0 NOTYPE LOCAL DEFAULT UND
+ 1: 00000000 0 SECTION LOCAL DEFAULT 1
+ 2: 00000000 0 SECTION LOCAL DEFAULT 2
+ 3: 00000000 0 SECTION LOCAL DEFAULT 3
+ 4: 00000000 0 SECTION LOCAL DEFAULT 6
+ 5: 00000000 0 SECTION LOCAL DEFAULT 4
+ 6: 00000000 0 SECTION LOCAL DEFAULT 5