aboutsummaryrefslogtreecommitdiff
path: root/binutils/testsuite
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2001-05-25 18:58:10 +0000
committerH.J. Lu <hjl.tools@gmail.com>2001-05-25 18:58:10 +0000
commiteed3fa3bb39ad154cb98898fbe0189c47e0cc2db (patch)
tree53d778316e2432bbfd38f36cb5b38c990e704cce /binutils/testsuite
parentff8715d024d202808806a43f6a9f17d3129aee4c (diff)
downloadfsf-binutils-gdb-eed3fa3bb39ad154cb98898fbe0189c47e0cc2db.zip
fsf-binutils-gdb-eed3fa3bb39ad154cb98898fbe0189c47e0cc2db.tar.gz
fsf-binutils-gdb-eed3fa3bb39ad154cb98898fbe0189c47e0cc2db.tar.bz2
2001-05-25 H.J. Lu <hjl@gnu.org>
* binutils-all/readelf.exp (readelf_test): Set target_machine to tmips for traditional mips. * binutils-all/readelf.s: Support traditional mips. * binutils-all/readelf.ss-tmips: New for traditional mips.
Diffstat (limited to 'binutils/testsuite')
-rw-r--r--binutils/testsuite/ChangeLog9
-rw-r--r--binutils/testsuite/binutils-all/readelf.exp6
-rw-r--r--binutils/testsuite/binutils-all/readelf.s8
-rw-r--r--binutils/testsuite/binutils-all/readelf.ss-tmips15
4 files changed, 34 insertions, 4 deletions
diff --git a/binutils/testsuite/ChangeLog b/binutils/testsuite/ChangeLog
index 0d8d323..594c4a4 100644
--- a/binutils/testsuite/ChangeLog
+++ b/binutils/testsuite/ChangeLog
@@ -1,3 +1,12 @@
+2001-05-25 H.J. Lu <hjl@gnu.org>
+
+ * binutils-all/readelf.exp (readelf_test): Set target_machine
+ to tmips for traditional mips.
+
+ * binutils-all/readelf.s: Support traditional mips.
+
+ * binutils-all/readelf.ss-tmips: New for traditional mips.
+
2001-05-25 Alan Modra <amodra@one.net.au>
* binutils-all/readelf.exp: Replace linuxoldld with linux*oldld
diff --git a/binutils/testsuite/binutils-all/readelf.exp b/binutils/testsuite/binutils-all/readelf.exp
index 66b6e22..162fc66 100644
--- a/binutils/testsuite/binutils-all/readelf.exp
+++ b/binutils/testsuite/binutils-all/readelf.exp
@@ -192,7 +192,11 @@ proc readelf_test { options binary_file regexp_file xfails } {
set target_machine ""
if [istarget "mips*-*-*"] then {
- set target_machine mips
+ if { [istarget mips*el-*-*] || [istarget "mips*-*-*linux*"] } then {
+ set target_machine tmips
+ } else {
+ set target_machine mips
+ }
}
if { $target_machine != "" && [file exists $srcdir/$subdir/$regexp_file-$readelf_size-$target_machine] } then {
diff --git a/binutils/testsuite/binutils-all/readelf.s b/binutils/testsuite/binutils-all/readelf.s
index 9c7c388..e3995f4 100644
--- a/binutils/testsuite/binutils-all/readelf.s
+++ b/binutils/testsuite/binutils-all/readelf.s
@@ -3,12 +3,14 @@ There are .* section headers, starting at offset .*:
Section Headers:
\[Nr\] Name Type Addr Off Size ES Flg Lk Inf Al
\[ 0\] NULL 00000000 000000 000000 00 +0 +0 +0
- \[ 1\] .text PROGBITS 00000000 000034 000008 00 +AX +0 +0 +.
+# On the normal MIPS systems, sections must be aligned to 16 byte
+# boundaries.
+ \[ 1\] .text PROGBITS 00000000 0000(34|40) 0000(08|10) 00 +AX +0 +0 +(.|..)
\[ 2\] .rel.+text +REL. +0+ 0+.* 00000. 0. +. +1 +4
# MIPS targets put .rela.text here.
#...
- \[ .\] .data PROGBITS 00000000 00003c 000004 00 WA +0 +0 +.
- \[ .\] .bss NOBITS 00000000 000040 000000 00 WA +0 +0 +.
+ \[ .\] .data PROGBITS 00000000 0000(3c|50) 0000(04|10) 00 WA +0 +0 +(.|..)
+ \[ .\] .bss NOBITS 00000000 0000(4|6)0 000000 00 WA +0 +0 +(.|..)
# MIPS targets put .reginfo and .mdebug here.
# v850 targets put .call_table_data and .call_table_text here.
#...
diff --git a/binutils/testsuite/binutils-all/readelf.ss-tmips b/binutils/testsuite/binutils-all/readelf.ss-tmips
new file mode 100644
index 0000000..410daca
--- /dev/null
+++ b/binutils/testsuite/binutils-all/readelf.ss-tmips
@@ -0,0 +1,15 @@
+
+Symbol table '.symtab' contains 12 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 4
+ 3: 00000000 0 SECTION LOCAL DEFAULT 5
+ 4: 00000000 0 NOTYPE LOCAL DEFAULT 1 static_text_symbol
+ 5: 00000000 0 NOTYPE LOCAL DEFAULT 4 static_data_symbol
+ 6: 00000000 0 SECTION LOCAL DEFAULT 6
+ 7: 00000000 0 SECTION LOCAL DEFAULT 7
+ 8: 00000000 0 OBJECT GLOBAL DEFAULT 1 text_symbol
+ 9: 00000000 0 NOTYPE GLOBAL DEFAULT UND external_symbol
+ 10: 00000000 0 OBJECT GLOBAL DEFAULT 4 data_symbol
+ 11: 00000004 4 OBJECT GLOBAL DEFAULT PRC common_symbol