+1999-06-13 Ian Lance Taylor <ian@zembu.com>
+
+ * ld-checks/asm.s: Use a symbol name for .lcomm.
+ * ld-checks/checks.exp: Use different names for the two tests.
+ Don't add extra text when invoking fail.
+
1999-06-12 Ian Lance Taylor <ian@zembu.com>
* ld-scripts/phdrs.exp: Change target check from "*-*-linuxaout*"
global srcdir
global subdir
- set test "check sections"
+ set test "check sections 1"
set ldflags "--check-sections"
}
if ![ld_simple_link $ld tmpdir/asm.x "$ldflags tmpdir/asm.o"] {
- fail "$test : using default linker script"
+ fail $test
} else {
pass $test
}
+ set test "check sections 2"
+
# Change the linker flags so that our "buggy" linker
# script is used.
set ldflags "--check-sections -T $srcdir/$subdir/script -e foo"
# Make sure that we got some output from the linker
if [string match "" $exec_output] then {
- fail "$test - error message expected but not found"
+ fail $test
}
# Now remove our expected error message
pass $test
} else {
verbose -log "Unexpected linker message(s): $exec_output"
-
- fail "$test - using erroneous linker script"
+ fail $test
}
}