diff options
Diffstat (limited to 'ld/testsuite')
-rw-r--r-- | ld/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/shared.exp | 12 |
2 files changed, 12 insertions, 5 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 57dd141..48f0f33 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2011-05-23 Nick Clifton <nickc@redhat.com> + + * ld-elf/shared.exp: Revert previous delta. Do not build + libraries in a non-native environment. + 2011-05-23 Alan Modra <amodra@gmail.com> PR 12763 diff --git a/ld/testsuite/ld-elf/shared.exp b/ld/testsuite/ld-elf/shared.exp index 016d270..eea9c7e 100644 --- a/ld/testsuite/ld-elf/shared.exp +++ b/ld/testsuite/ld-elf/shared.exp @@ -21,6 +21,13 @@ # Exclude non-ELF targets. +# The following tests require running the executable generated by ld, +# or enough of a build environment to create a fully linked executable. +# This is not commonly available when testing a cross-built linker. +if ![isnative] { + return +} + if ![is_elf_format] { return } @@ -154,11 +161,6 @@ set build_tests { run_cc_link_tests $build_tests -# The following tests require running the executable generated by ld. -if ![isnative] { - return -} - set run_tests { {"Run normal with libfoo.so" "tmpdir/begin.o tmpdir/libfoo.so tmpdir/end.o" "" |