PATCH: Add notype
H. J. Lu
hjl@lucon.org
Sat May 3 07:39:00 GMT 2003
On Fri, May 02, 2003 at 11:25:33PM -0700, cgd@broadcom.com wrote:
> At Fri, 2 May 2003 03:04:03 +0000 (UTC), "H. J. Lu" wrote:
> > I tested it for Linux/x86 and Linux/mips. Let me know if it fails on
> > others.
>
> i tested:
>
> mips-elf mips64-elf mipsel-linux mipsisa64el-elf
> mips-linux mips64el-elf mipsel-netbsd
> mips-netbsd mipsel-elf mipsisa64-elf
>
> 'elf type list' fails for all but the *-linux and *-netbsd targets.
>
Try this one.
H.J.
-------------- next part --------------
2003-05-03 H.J. Lu <hjl@gnu.org>
* gas/elf/elf.exp (run_list_test): Support pipe for readelf.
* gas/elf/type.e-m32r: Removed.
* gas/elf/type.e-mips: Likewise.
* gas/elf/type.e-miwmmxt: Likewise.
* gas/elf/type.e: Updated.
--- gas/testsuite/gas/elf/elf.exp.pipe 2003-05-03 00:06:40.000000000 -0700
+++ gas/testsuite/gas/elf/elf.exp 2003-05-03 00:33:37.000000000 -0700
@@ -2,7 +2,7 @@
# elf tests
#
-proc run_list_test { name suffix opts } {
+proc run_list_test { name suffix opts readelf_pipe } {
global READELF
global srcdir subdir
set testname "elf $name list"
@@ -15,7 +15,7 @@ proc run_list_test { name suffix opts }
return
}
send_log "$READELF -s dump.o > dump.out\n"
- catch "exec $READELF -s dump.o > dump.out\n" comp_output
+ catch "exec $READELF -s dump.o $readelf_pipe > dump.out\n" comp_output
if ![string match "" $comp_output] then {
send_log "$comp_output\n"
fail $testname
@@ -53,7 +53,7 @@ if { ([istarget "*-*-elf*"]
run_dump_test "ehopt0"
run_dump_test "section0"
run_dump_test "section1"
- run_list_test "section2" "$target_machine" "-al"
+ run_list_test "section2" "$target_machine" "-al" ""
run_dump_test "symver"
- run_list_test "type" "$target_machine" ""
+ run_list_test "type" "" "" "| grep \"1 \\\[FONT\\\]\""
}
--- gas/testsuite/gas/elf/type.e-m32r.pipe 2003-05-01 20:00:49.000000000 -0700
+++ gas/testsuite/gas/elf/type.e-m32r 2003-05-03 00:34:58.000000000 -0700
@@ -1,12 +0,0 @@
-
-Symbol table '.symtab' contains 9 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 1 FUNC LOCAL DEFAULT . function
- 5: 0+0 1 OBJECT LOCAL DEFAULT . object
- 6: 0+1 1 TLS LOCAL DEFAULT . tls_object
- 7: 0+2 1 NOTYPE LOCAL DEFAULT . notype
- 8: 0+0 0 SECTION LOCAL DEFAULT .
--- gas/testsuite/gas/elf/type.e-mips.pipe 2003-05-01 20:00:49.000000000 -0700
+++ gas/testsuite/gas/elf/type.e-mips 2003-05-03 00:34:58.000000000 -0700
@@ -1,13 +0,0 @@
-
-Symbol table '.symtab' contains 10 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 1 FUNC LOCAL DEFAULT . function
- 5: 0+0 1 OBJECT LOCAL DEFAULT . object
- 6: 0+1 1 TLS LOCAL DEFAULT . tls_object
- 7: 0+2 1 NOTYPE LOCAL DEFAULT . notype
- 8: 0+0 0 SECTION LOCAL DEFAULT .
- 9: 0+0 0 SECTION LOCAL DEFAULT .
--- gas/testsuite/gas/elf/type.e-miwmmxt.pipe 2003-05-01 20:00:49.000000000 -0700
+++ gas/testsuite/gas/elf/type.e-miwmmxt 2003-05-03 00:34:58.000000000 -0700
@@ -1,12 +0,0 @@
-
-Symbol table '.symtab' contains 9 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 1 FUNC LOCAL DEFAULT . function
- 5: 0+0 1 OBJECT LOCAL DEFAULT . object
- 6: 0+1 1 TLS LOCAL DEFAULT . tls_object
- 7: 0+2 1 NOTYPE LOCAL DEFAULT . notype
- 8: 0+0 0 SECTION LOCAL DEFAULT .
--- gas/testsuite/gas/elf/type.e.pipe 2003-05-01 20:00:49.000000000 -0700
+++ gas/testsuite/gas/elf/type.e 2003-05-03 00:30:13.000000000 -0700
@@ -1,11 +1,4 @@
-
-Symbol table '.symtab' contains 8 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 1 FUNC LOCAL DEFAULT . function
- 5: 0+0 1 OBJECT LOCAL DEFAULT . object
- 6: 0+1 1 TLS LOCAL DEFAULT . tls_object
- 7: 0+2 1 NOTYPE LOCAL DEFAULT . notype
+ .: 0+0 1 FUNC LOCAL DEFAULT . function
+ .: 0+0 1 OBJECT LOCAL DEFAULT . object
+ .: 0+1 1 TLS LOCAL DEFAULT . tls_object
+ .: 0+2 1 NOTYPE LOCAL DEFAULT . notype
More information about the Binutils
mailing list