Provide dummy libraries for alpha-vms
authorAlan Modra <amodra@gmail.com>
Sun, 18 Oct 2020 22:19:32 +0000 (08:49 +1030)
committerAlan Modra <amodra@gmail.com>
Mon, 19 Oct 2020 05:58:43 +0000 (16:28 +1030)
commit740341b9be657772538f9cf0b563c49798f47b3c
tree016dc24ace4a05e744722c3c36ff45c8bd20a50d
parent13e86dcf7a02f38a308279dc4272fe3bd3597c3d
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.
ld/ChangeLog
ld/testsuite/config/default.exp
ld/testsuite/ld-checks/checks.exp
ld/testsuite/ld-scripts/assert.exp
ld/testsuite/ld-scripts/extern.exp
ld/testsuite/ld-scripts/log2.exp
ld/testsuite/ld-scripts/map-address.exp
ld/testsuite/ld-scripts/script.exp
ld/testsuite/ld-scripts/sizeof.exp
ld/testsuite/lib/ld-lib.exp