aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elfcomm
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2003-06-18 03:38:05 +0000
committerHans-Peter Nilsson <hp@axis.com>2003-06-18 03:38:05 +0000
commita42ec05b092b6235d86297779ec32b42731772e4 (patch)
tree48cbe67ec8498356fb15db8971d71b7ab04ba777 /ld/testsuite/ld-elfcomm
parent9f2b53d7841efc0d15bc5ceb3f2af4b3f8749065 (diff)
downloadgdb-a42ec05b092b6235d86297779ec32b42731772e4.zip
gdb-a42ec05b092b6235d86297779ec32b42731772e4.tar.gz
gdb-a42ec05b092b6235d86297779ec32b42731772e4.tar.bz2
* ld-elfcomm/elfcomm.exp (dump_common1): Use $READELF, not plain
readelf as found using default path.
Diffstat (limited to 'ld/testsuite/ld-elfcomm')
-rw-r--r--ld/testsuite/ld-elfcomm/elfcomm.exp5
1 files changed, 3 insertions, 2 deletions
diff --git a/ld/testsuite/ld-elfcomm/elfcomm.exp b/ld/testsuite/ld-elfcomm/elfcomm.exp
index 80ede64..e5bd29b 100644
--- a/ld/testsuite/ld-elfcomm/elfcomm.exp
+++ b/ld/testsuite/ld-elfcomm/elfcomm.exp
@@ -41,9 +41,10 @@ if { [which $CC] == 0 } {
proc dump_common1 { testname } {
global exec_output
+ global READELF
- send_log "readelf -s tmpdir/common1.o | grep foo\n"
- catch "exec readelf -s tmpdir/common1.o | grep foo" exec_output
+ send_log "$READELF -s tmpdir/common1.o | grep foo\n"
+ catch "exec $READELF -s tmpdir/common1.o | grep foo" exec_output
if { ![regexp "(\[ \]*)(\[0-9\]+):(\[ \]*)(\[0\]*)80(\[ \]+)4(\[ \]+)OBJECT(\[ \]+)GLOBAL(\[ \]+)DEFAULT(\[ \]+)COM(\[ \]+)_?foo2" $exec_output]
|| ![regexp "(\[ \]*)(\[0-9\]+):(\[ \]*)(\[0-9\]+)(\[ \]+)21(\[ \]+)OBJECT(\[ \]+)GLOBAL(\[ \]+)DEFAULT(\[ \]+)(\[0-9\]+)(\[ \]+)_?foo1" $exec_output] } {
send_log "$exec_output\n"