mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 14:39:09 +08:00
Unnecessary load_lib in ld testsuite
ld-lib.exp is loaded in config/defaults.exp * testsuite/ld-scripts/include.exp: Don't load ld-lib.exp. * testsuite/ld-scripts/phdrs3.exp: Likewise. * testsuite/ld-scripts/rgn-at.exp: Likewise. * testsuite/ld-scripts/rgn-over.exp: Likewise. * testsuite/ld-scripts/sort.exp: Likewise. * testsuite/ld-discard/discard.exp: Likewise. Use is_elf_format.
This commit is contained in:
@ -1,3 +1,12 @@
|
|||||||
|
2020-06-15 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
|
* testsuite/ld-scripts/include.exp: Don't load ld-lib.exp.
|
||||||
|
* testsuite/ld-scripts/phdrs3.exp: Likewise.
|
||||||
|
* testsuite/ld-scripts/rgn-at.exp: Likewise.
|
||||||
|
* testsuite/ld-scripts/rgn-over.exp: Likewise.
|
||||||
|
* testsuite/ld-scripts/sort.exp: Likewise.
|
||||||
|
* testsuite/ld-discard/discard.exp: Likewise. Use is_elf_format.
|
||||||
|
|
||||||
2020-06-15 Alan Modra <amodra@gmail.com>
|
2020-06-15 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
PR 26103
|
PR 26103
|
||||||
|
@ -25,17 +25,10 @@
|
|||||||
# Test for ELF here, so we don't have to qualify on ELF specifically
|
# Test for ELF here, so we don't have to qualify on ELF specifically
|
||||||
# in every .d-file.
|
# in every .d-file.
|
||||||
|
|
||||||
if { ![istarget *-*-linux*]
|
if { ![is_elf_format] } {
|
||||||
&& ![istarget *-*-gnu*]
|
|
||||||
&& ![istarget *-*-nacl*]
|
|
||||||
&& ![istarget hppa*64*-*-hpux*]
|
|
||||||
&& ![istarget arm*-*-uclinuxfdpiceabi]
|
|
||||||
&& ![istarget *-*-elf] } {
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
load_lib ld-lib.exp
|
|
||||||
|
|
||||||
set test_list [lsort [glob -nocomplain $srcdir/$subdir/*.d]]
|
set test_list [lsort [glob -nocomplain $srcdir/$subdir/*.d]]
|
||||||
for { set i 0 } { $i < [llength $test_list] } { incr i } {
|
for { set i 0 } { $i < [llength $test_list] } { incr i } {
|
||||||
# We need to strip the ".d", but can leave the dirname.
|
# We need to strip the ".d", but can leave the dirname.
|
||||||
|
@ -18,8 +18,6 @@
|
|||||||
# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
|
# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
|
||||||
# MA 02110-1301, USA.
|
# MA 02110-1301, USA.
|
||||||
|
|
||||||
load_lib ld-lib.exp
|
|
||||||
|
|
||||||
if [is_aout_format] {
|
if [is_aout_format] {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -24,8 +24,6 @@ if ![is_elf_format] {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
load_lib ld-lib.exp
|
|
||||||
|
|
||||||
set testname "PHDRS headers"
|
set testname "PHDRS headers"
|
||||||
|
|
||||||
set old_ldflags $LDFLAGS
|
set old_ldflags $LDFLAGS
|
||||||
|
@ -22,8 +22,6 @@ if ![is_elf_format] {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
load_lib ld-lib.exp
|
|
||||||
|
|
||||||
set test_list [lsort [glob -nocomplain $srcdir/$subdir/rgn-at*.d]]
|
set test_list [lsort [glob -nocomplain $srcdir/$subdir/rgn-at*.d]]
|
||||||
foreach test_file $test_list {
|
foreach test_file $test_list {
|
||||||
set test_name [file rootname $test_file]
|
set test_name [file rootname $test_file]
|
||||||
|
@ -22,8 +22,6 @@ if ![is_elf_format] {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
load_lib ld-lib.exp
|
|
||||||
|
|
||||||
set old_ldflags $LDFLAGS
|
set old_ldflags $LDFLAGS
|
||||||
if { [istarget spu*-*-*] } {
|
if { [istarget spu*-*-*] } {
|
||||||
set LDFLAGS "$LDFLAGS --no-overlays"
|
set LDFLAGS "$LDFLAGS --no-overlays"
|
||||||
|
@ -30,8 +30,6 @@ if [istarget "h8300-*-*"] {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
load_lib ld-lib.exp
|
|
||||||
|
|
||||||
set sort_test_list [lsort [glob -nocomplain $srcdir/$subdir/sort*.d]]
|
set sort_test_list [lsort [glob -nocomplain $srcdir/$subdir/sort*.d]]
|
||||||
for { set i 0 } { $i < [llength $sort_test_list] } { incr i } {
|
for { set i 0 } { $i < [llength $sort_test_list] } { incr i } {
|
||||||
verbose [file rootname [lindex $sort_test_list $i]]
|
verbose [file rootname [lindex $sort_test_list $i]]
|
||||||
|
Reference in New Issue
Block a user