diff options
author | Alan Modra <amodra@gmail.com> | 2020-10-19 08:49:32 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2020-10-19 16:28:43 +1030 |
commit | 740341b9be657772538f9cf0b563c49798f47b3c (patch) | |
tree | 016dc24ace4a05e744722c3c36ff45c8bd20a50d /ld/testsuite/ld-scripts/log2.exp | |
parent | 13e86dcf7a02f38a308279dc4272fe3bd3597c3d (diff) | |
download | gdb-740341b9be657772538f9cf0b563c49798f47b3c.zip gdb-740341b9be657772538f9cf0b563c49798f47b3c.tar.gz gdb-740341b9be657772538f9cf0b563c49798f47b3c.tar.bz2 |
Provide dummy libraries for alpha-vms
alpha-dec-vms always loads a number of libraries, -limagelib,
-lstarlet, and -lsys$public_vectors. When running the ld testsuite
without a full cross-build environment, those libraries are missing
and cause fails. This patch provides dummies, and tidies default.exp
a little.
* testsuite/config/default.exp: Provide dummy libraries for
alpha-dec-vms.
(compiler_supports): New proc. Use it for compiler tests.
* testsuite/lib/ld-lib.exp (default_ld_assemble): Don't die if
subdir not set.
(run_ld_link_tests): Pass LDFLAGS to ld.
* testsuite/ld-checks/checks.exp (section_check): Likewise.
* testsuite/ld-scripts/assert.exp: Likewise.
* testsuite/ld-scripts/extern.exp: Likewise.
* testsuite/ld-scripts/log2.exp: Likewise.
* testsuite/ld-scripts/map-address.exp: Likewise.
* testsuite/ld-scripts/script.exp: Likewise.
* testsuite/ld-scripts/sizeof.exp: Likewise.
Diffstat (limited to 'ld/testsuite/ld-scripts/log2.exp')
-rw-r--r-- | ld/testsuite/ld-scripts/log2.exp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/testsuite/ld-scripts/log2.exp b/ld/testsuite/ld-scripts/log2.exp index d67504b..228cd5c 100644 --- a/ld/testsuite/ld-scripts/log2.exp +++ b/ld/testsuite/ld-scripts/log2.exp @@ -26,7 +26,7 @@ if {![ld_assemble $as $srcdir/$subdir/log2.s tmpdir/log2.o]} { return } -if {![ld_link $ld tmpdir/log2 "-T $srcdir/$subdir/log2.t tmpdir/log2.o"]} { +if {![ld_link $ld tmpdir/log2 "$LDFLAGS -T $srcdir/$subdir/log2.t tmpdir/log2.o"]} { fail $testname } else { pass $testname |