mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-26 13:56:22 +08:00
* 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.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
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>
|
1999-06-12 Ian Lance Taylor <ian@zembu.com>
|
||||||
|
|
||||||
* ld-scripts/phdrs.exp: Change target check from "*-*-linuxaout*"
|
* ld-scripts/phdrs.exp: Change target check from "*-*-linuxaout*"
|
||||||
|
@ -8,7 +8,4 @@ foo:
|
|||||||
bar:
|
bar:
|
||||||
.long 0x87654321
|
.long 0x87654321
|
||||||
|
|
||||||
.lcomm 0x12
|
.lcomm dummy, 0x12
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ proc section_check {} {
|
|||||||
global srcdir
|
global srcdir
|
||||||
global subdir
|
global subdir
|
||||||
|
|
||||||
set test "check sections"
|
set test "check sections 1"
|
||||||
|
|
||||||
set ldflags "--check-sections"
|
set ldflags "--check-sections"
|
||||||
|
|
||||||
@ -34,11 +34,13 @@ proc section_check {} {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ![ld_simple_link $ld tmpdir/asm.x "$ldflags tmpdir/asm.o"] {
|
if ![ld_simple_link $ld tmpdir/asm.x "$ldflags tmpdir/asm.o"] {
|
||||||
fail "$test : using default linker script"
|
fail $test
|
||||||
} else {
|
} else {
|
||||||
pass $test
|
pass $test
|
||||||
}
|
}
|
||||||
|
|
||||||
|
set test "check sections 2"
|
||||||
|
|
||||||
# Change the linker flags so that our "buggy" linker
|
# Change the linker flags so that our "buggy" linker
|
||||||
# script is used.
|
# script is used.
|
||||||
set ldflags "--check-sections -T $srcdir/$subdir/script -e foo"
|
set ldflags "--check-sections -T $srcdir/$subdir/script -e foo"
|
||||||
@ -51,7 +53,7 @@ proc section_check {} {
|
|||||||
|
|
||||||
# Make sure that we got some output from the linker
|
# Make sure that we got some output from the linker
|
||||||
if [string match "" $exec_output] then {
|
if [string match "" $exec_output] then {
|
||||||
fail "$test - error message expected but not found"
|
fail $test
|
||||||
}
|
}
|
||||||
|
|
||||||
# Now remove our expected error message
|
# Now remove our expected error message
|
||||||
@ -62,8 +64,7 @@ proc section_check {} {
|
|||||||
pass $test
|
pass $test
|
||||||
} else {
|
} else {
|
||||||
verbose -log "Unexpected linker message(s): $exec_output"
|
verbose -log "Unexpected linker message(s): $exec_output"
|
||||||
|
fail $test
|
||||||
fail "$test - using erroneous linker script"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user