aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-scripts/sizeof.exp
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2020-10-19 08:49:32 +1030
committerAlan Modra <amodra@gmail.com>2020-10-19 16:28:43 +1030
commit740341b9be657772538f9cf0b563c49798f47b3c (patch)
tree016dc24ace4a05e744722c3c36ff45c8bd20a50d /ld/testsuite/ld-scripts/sizeof.exp
parent13e86dcf7a02f38a308279dc4272fe3bd3597c3d (diff)
downloadgdb-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/sizeof.exp')
-rw-r--r--ld/testsuite/ld-scripts/sizeof.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/testsuite/ld-scripts/sizeof.exp b/ld/testsuite/ld-scripts/sizeof.exp
index 4381573..e4f0219 100644
--- a/ld/testsuite/ld-scripts/sizeof.exp
+++ b/ld/testsuite/ld-scripts/sizeof.exp
@@ -27,7 +27,7 @@ if ![ld_assemble $as $srcdir/$subdir/sizeof.s tmpdir/sizeof.o] {
return
}
-if ![ld_link $ld tmpdir/sizeof "-T $srcdir/$subdir/sizeof.t tmpdir/sizeof.o"] {
+if ![ld_link $ld tmpdir/sizeof "$LDFLAGS -T $srcdir/$subdir/sizeof.t tmpdir/sizeof.o"] {
fail $testname
return
}