2003-04-22 H.J. Lu <hjl@gnu.org>
* ld-elfcomm/elfcomm.exp: Support 64bit targets.
This commit is contained in:
parent
14604c6bf7
commit
ab7be2df2a
2 changed files with 7 additions and 3 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2003-04-22 H.J. Lu <hjl@gnu.org>
|
||||||
|
|
||||||
|
* ld-elfcomm/elfcomm.exp: Support 64bit targets.
|
||||||
|
|
||||||
2003-04-21 Stephane Carrez <stcarrez@nerim.fr>
|
2003-04-21 Stephane Carrez <stcarrez@nerim.fr>
|
||||||
|
|
||||||
* ld-m68hc11/far-hc11.s: New file.
|
* ld-m68hc11/far-hc11.s: New file.
|
||||||
|
|
|
@ -40,7 +40,7 @@ proc dump_common1 { testname } {
|
||||||
send_log "readelf -s tmpdir/common1.o | grep foo\n"
|
send_log "readelf -s tmpdir/common1.o | grep foo\n"
|
||||||
catch "exec readelf -s tmpdir/common1.o | grep foo" exec_output
|
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]
|
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"
|
send_log "$exec_output\n"
|
||||||
verbose $exec_output
|
verbose $exec_output
|
||||||
fail $testname
|
fail $testname
|
||||||
|
@ -65,7 +65,7 @@ if { [ld_simple_link $ld tmpdir/common1.o "-r tmpdir/common1a.o tmpdir/common1b.
|
||||||
return
|
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] } {
|
|| ![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)"
|
fail "$test1 (warning 1)"
|
||||||
} else {
|
} else {
|
||||||
|
@ -81,7 +81,7 @@ if { [ld_simple_link $ld tmpdir/common1.o "-r tmpdir/common1b.o tmpdir/common1a.
|
||||||
return
|
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)"
|
fail "$test1 (warning 2)"
|
||||||
} else {
|
} else {
|
||||||
pass "$test1 (warning 2)"
|
pass "$test1 (warning 2)"
|
||||||
|
|
Loading…
Reference in a new issue