aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elfcomm
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2003-04-22 15:00:02 +0000
committerH.J. Lu <hjl.tools@gmail.com>2003-04-22 15:00:02 +0000
commitab7be2df2ab9fca2e19916e612433b63b0c87a08 (patch)
tree4e0fc8239fdcbadaa50ae408eba59ef60e908b7c /ld/testsuite/ld-elfcomm
parent14604c6bf7d6225412df40ed3a3094372208bccc (diff)
downloadgdb-ab7be2df2ab9fca2e19916e612433b63b0c87a08.zip
gdb-ab7be2df2ab9fca2e19916e612433b63b0c87a08.tar.gz
gdb-ab7be2df2ab9fca2e19916e612433b63b0c87a08.tar.bz2
2003-04-22 H.J. Lu <hjl@gnu.org>
* ld-elfcomm/elfcomm.exp: Support 64bit targets.
Diffstat (limited to 'ld/testsuite/ld-elfcomm')
-rw-r--r--ld/testsuite/ld-elfcomm/elfcomm.exp6
1 files changed, 3 insertions, 3 deletions
diff --git a/ld/testsuite/ld-elfcomm/elfcomm.exp b/ld/testsuite/ld-elfcomm/elfcomm.exp
index a205f56..37e5ede 100644
--- a/ld/testsuite/ld-elfcomm/elfcomm.exp
+++ b/ld/testsuite/ld-elfcomm/elfcomm.exp
@@ -40,7 +40,7 @@ proc dump_common1 { testname } {
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\]*)1(\[ \]+)21(\[ \]+)OBJECT(\[ \]+)GLOBAL(\[ \]+)DEFAULT(\[ \]+)(\[0-9\]+)(\[ \]+)foo1" $exec_output] } {
+ || ![regexp "(\[ \]*)(\[0-9\]+):(\[ \]*)(\[0-9\]+)(\[ \]+)21(\[ \]+)OBJECT(\[ \]+)GLOBAL(\[ \]+)DEFAULT(\[ \]+)(\[0-9\]+)(\[ \]+)foo1" $exec_output] } {
send_log "$exec_output\n"
verbose $exec_output
fail $testname
@@ -65,7 +65,7 @@ if { [ld_simple_link $ld tmpdir/common1.o "-r tmpdir/common1a.o tmpdir/common1b.
return
}
-if { ![regexp "Warning: alignment 1 of symbol \`foo1\' in tmpdir/common1b.o is smaller than 64 in tmpdir/common1a.o" $link_output]
+if { ![regexp "Warning: alignment (\[0-9\]+) of symbol \`foo1\' in tmpdir/common1b.o is smaller than 64 in tmpdir/common1a.o" $link_output]
|| ![regexp "Warning: size of symbol \`foo1\' changed from 2 in tmpdir/common1a.o to 21 in tmpdir/common1b.o" $link_output] } {
fail "$test1 (warning 1)"
} else {
@@ -81,7 +81,7 @@ if { [ld_simple_link $ld tmpdir/common1.o "-r tmpdir/common1b.o tmpdir/common1a.
return
}
-if { ![regexp "Warning: alignment 1 of symbol \`foo1\' in tmpdir/common1b.o is smaller than 64 in tmpdir/common1a.o" $link_output] } {
+if { ![regexp "Warning: alignment (\[0-9\]+) of symbol \`foo1\' in tmpdir/common1b.o is smaller than 64 in tmpdir/common1a.o" $link_output] } {
fail "$test1 (warning 2)"
} else {
pass "$test1 (warning 2)"