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-checks | |
parent | 13e86dcf7a02f38a308279dc4272fe3bd3597c3d (diff) | |
download | fsf-binutils-gdb-740341b9be657772538f9cf0b563c49798f47b3c.zip fsf-binutils-gdb-740341b9be657772538f9cf0b563c49798f47b3c.tar.gz fsf-binutils-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-checks')
-rw-r--r-- | ld/testsuite/ld-checks/checks.exp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ld/testsuite/ld-checks/checks.exp b/ld/testsuite/ld-checks/checks.exp index fbda5e7..8c5bf91 100644 --- a/ld/testsuite/ld-checks/checks.exp +++ b/ld/testsuite/ld-checks/checks.exp @@ -21,7 +21,7 @@ # Written by Nick Clifton (nickc@cygnus.com) proc section_check {} { - global ld_flags + global LDFLAGS global as global ld global srcdir @@ -33,7 +33,7 @@ proc section_check {} { } set test "check sections 1" - set ldflags "--check-sections -e foo" + set ldflags "$LDFLAGS --check-sections -e foo" if { ![ld_assemble $as $srcdir/$subdir/asm.s tmpdir/asm.o]} { unresolved $test @@ -50,7 +50,7 @@ proc section_check {} { # Change the linker flags so that our "buggy" linker # script is used. - set ldflags "--check-sections -T $srcdir/$subdir/script -e foo" + set ldflags "$LDFLAGS --check-sections -T $srcdir/$subdir/script -e foo" # Perform the equivalent of invoking ld_link # except that we need to massage the output further. |