diff options
author | Alan Modra <amodra@gmail.com> | 2020-06-15 12:58:26 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2020-06-15 15:07:13 +0930 |
commit | 1298463902e9c367c8a3751c11d9cc9ecd0b015b (patch) | |
tree | b5bcde4cecd6aac9ae901a56eabd521088704158 /ld | |
parent | ea4b3731ecd4b00afa199cdcf988e6b1c706f7de (diff) | |
download | gdb-1298463902e9c367c8a3751c11d9cc9ecd0b015b.zip gdb-1298463902e9c367c8a3751c11d9cc9ecd0b015b.tar.gz gdb-1298463902e9c367c8a3751c11d9cc9ecd0b015b.tar.bz2 |
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.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/ChangeLog | 9 | ||||
-rw-r--r-- | ld/testsuite/ld-discard/discard.exp | 9 | ||||
-rw-r--r-- | ld/testsuite/ld-scripts/include.exp | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-scripts/phdrs3.exp | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-scripts/rgn-at.exp | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-scripts/rgn-over.exp | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-scripts/sort.exp | 2 |
7 files changed, 10 insertions, 18 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 5ecd26a..c6de044 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,5 +1,14 @@ 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> + PR 26103 * testsuite/ld-linkonce/ref1.s, * testsuite/ld-linkonce/ref2.s, diff --git a/ld/testsuite/ld-discard/discard.exp b/ld/testsuite/ld-discard/discard.exp index 52c7de6..ad1ebf4 100644 --- a/ld/testsuite/ld-discard/discard.exp +++ b/ld/testsuite/ld-discard/discard.exp @@ -25,17 +25,10 @@ # Test for ELF here, so we don't have to qualify on ELF specifically # in every .d-file. -if { ![istarget *-*-linux*] - && ![istarget *-*-gnu*] - && ![istarget *-*-nacl*] - && ![istarget hppa*64*-*-hpux*] - && ![istarget arm*-*-uclinuxfdpiceabi] - && ![istarget *-*-elf] } { +if { ![is_elf_format] } { return } -load_lib ld-lib.exp - set test_list [lsort [glob -nocomplain $srcdir/$subdir/*.d]] for { set i 0 } { $i < [llength $test_list] } { incr i } { # We need to strip the ".d", but can leave the dirname. diff --git a/ld/testsuite/ld-scripts/include.exp b/ld/testsuite/ld-scripts/include.exp index 39da5df..d74f30e 100644 --- a/ld/testsuite/ld-scripts/include.exp +++ b/ld/testsuite/ld-scripts/include.exp @@ -18,8 +18,6 @@ # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, # MA 02110-1301, USA. -load_lib ld-lib.exp - if [is_aout_format] { return } diff --git a/ld/testsuite/ld-scripts/phdrs3.exp b/ld/testsuite/ld-scripts/phdrs3.exp index 24b7bc0..af91814 100644 --- a/ld/testsuite/ld-scripts/phdrs3.exp +++ b/ld/testsuite/ld-scripts/phdrs3.exp @@ -24,8 +24,6 @@ if ![is_elf_format] { return } -load_lib ld-lib.exp - set testname "PHDRS headers" set old_ldflags $LDFLAGS diff --git a/ld/testsuite/ld-scripts/rgn-at.exp b/ld/testsuite/ld-scripts/rgn-at.exp index c0308a0..2d246be 100644 --- a/ld/testsuite/ld-scripts/rgn-at.exp +++ b/ld/testsuite/ld-scripts/rgn-at.exp @@ -22,8 +22,6 @@ if ![is_elf_format] { return } -load_lib ld-lib.exp - set test_list [lsort [glob -nocomplain $srcdir/$subdir/rgn-at*.d]] foreach test_file $test_list { set test_name [file rootname $test_file] diff --git a/ld/testsuite/ld-scripts/rgn-over.exp b/ld/testsuite/ld-scripts/rgn-over.exp index 0985d16..d0ec266 100644 --- a/ld/testsuite/ld-scripts/rgn-over.exp +++ b/ld/testsuite/ld-scripts/rgn-over.exp @@ -22,8 +22,6 @@ if ![is_elf_format] { return } -load_lib ld-lib.exp - set old_ldflags $LDFLAGS if { [istarget spu*-*-*] } { set LDFLAGS "$LDFLAGS --no-overlays" diff --git a/ld/testsuite/ld-scripts/sort.exp b/ld/testsuite/ld-scripts/sort.exp index 0d6832b..a57a58a 100644 --- a/ld/testsuite/ld-scripts/sort.exp +++ b/ld/testsuite/ld-scripts/sort.exp @@ -30,8 +30,6 @@ if [istarget "h8300-*-*"] { return } -load_lib ld-lib.exp - set sort_test_list [lsort [glob -nocomplain $srcdir/$subdir/sort*.d]] for { set i 0 } { $i < [llength $sort_test_list] } { incr i } { verbose [file rootname [lindex $sort_test_list $i]] |