aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2011-05-23 09:13:57 +0000
committerNick Clifton <nickc@redhat.com>2011-05-23 09:13:57 +0000
commit45394486ba9528f5af50a14bc0cb63756b4a0214 (patch)
tree3ef5444d3dc67f81232a7bf0d016eeda67dab547 /ld
parent6061a67d142a3c3cbe22903abbd24504a8aa80ec (diff)
downloadgdb-45394486ba9528f5af50a14bc0cb63756b4a0214.zip
gdb-45394486ba9528f5af50a14bc0cb63756b4a0214.tar.gz
gdb-45394486ba9528f5af50a14bc0cb63756b4a0214.tar.bz2
* ld-elf/shared.exp: Revert previous delta. Do not build
libraries in a non-native environment.
Diffstat (limited to 'ld')
-rw-r--r--ld/testsuite/ChangeLog5
-rw-r--r--ld/testsuite/ld-elf/shared.exp12
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" ""