mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-21 02:24:17 +08:00
* ld-scripts/section-flags.exp: Pass --local-store 0:0 for
spu. Rewrite using foreach.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2011-07-14 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
|
* ld-scripts/section-flags.exp: Pass --local-store 0:0 for
|
||||||
|
spu. Rewrite using foreach.
|
||||||
|
|
||||||
2011-07-14 Alan Modra <amodra@gmail.com>
|
2011-07-14 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
* ld-powerpc/tlsexe.d, * ld-powerpc/tlsexe.g. *ld-powerpc/tlsexe.r,
|
* ld-powerpc/tlsexe.d, * ld-powerpc/tlsexe.g. *ld-powerpc/tlsexe.r,
|
||||||
|
@ -17,36 +17,25 @@
|
|||||||
# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
|
# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
|
||||||
# MA 02110-1301, USA.
|
# MA 02110-1301, USA.
|
||||||
|
|
||||||
set testname "SECTION_FLAGS-1"
|
# These tests only work for ELF targets
|
||||||
|
|
||||||
|
|
||||||
# This test only works for ELF targets
|
|
||||||
if {! [is_elf_format]} {
|
if {! [is_elf_format]} {
|
||||||
unsupported $testname
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if ![ld_assemble $as $srcdir/$subdir/section-flags-1.s tmpdir/section-flags-1.o] {
|
set ldcmd $ld
|
||||||
unresolved $testname
|
if { [istarget spu*-*-*] } {
|
||||||
return
|
set ldcmd "$ldcmd --local-store 0:0"
|
||||||
}
|
}
|
||||||
|
|
||||||
if ![ld_simple_link $ld tmpdir/section-flags-1 "-T $srcdir/$subdir/section-flags-1.t tmpdir/section-flags-1.o"] {
|
foreach test {"section-flags-1" "section-flags-2"} {
|
||||||
fail $testname
|
if ![ld_assemble $as $srcdir/$subdir/$test.s tmpdir/$test.o] {
|
||||||
return
|
unresolved $test
|
||||||
|
} else {
|
||||||
|
if ![ld_simple_link $ldcmd tmpdir/$test \
|
||||||
|
"-T $srcdir/$subdir/$test.t tmpdir/$test.o"] {
|
||||||
|
fail $test
|
||||||
|
} else {
|
||||||
|
pass $test
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pass $testname
|
|
||||||
|
|
||||||
set testname "SECTION_FLAGS-2"
|
|
||||||
if ![ld_assemble $as $srcdir/$subdir/section-flags-2.s tmpdir/section-flags-2.o] {
|
|
||||||
unresolved $testname
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
if ![ld_simple_link $ld tmpdir/section-flags-2 "-T $srcdir/$subdir/section-flags-2.t tmpdir/section-flags-1.o tmpdir/section-flags-2.o"] {
|
|
||||||
fail $testname
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
pass $testname
|
|
||||||
|
Reference in New Issue
Block a user