aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2004-06-21 10:24:39 +0000
committerNick Clifton <nickc@redhat.com>2004-06-21 10:24:39 +0000
commite6f12cf6cb14938e25027faeaaf83b30837e9b91 (patch)
treeba52712b6d7259fb229eff6246fd9f42ec8c38a1 /ld/testsuite
parent8d5df71af067d55d19d56462c4d4ab08716f3e23 (diff)
downloadgdb-e6f12cf6cb14938e25027faeaaf83b30837e9b91.zip
gdb-e6f12cf6cb14938e25027faeaaf83b30837e9b91.tar.gz
gdb-e6f12cf6cb14938e25027faeaaf83b30837e9b91.tar.bz2
Handle ports which do not support the --shared switch
Diffstat (limited to 'ld/testsuite')
-rw-r--r--ld/testsuite/ChangeLog5
-rw-r--r--ld/testsuite/ld-elf/frame.exp12
2 files changed, 15 insertions, 2 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index 4685492..f825698 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2004-06-21 Nick Clifton <nickc@redhat.com>
+
+ * ld-elf/frame.exp: Handle ports which do not support the --shared
+ linker switch.
+
2004-06-18 Jan Beulich <jbeulich@novell.com>
* ld-elfvsb/main.c: Ensure visibility_def and visibility_func are
diff --git a/ld/testsuite/ld-elf/frame.exp b/ld/testsuite/ld-elf/frame.exp
index cfeeb29..b2ff822 100644
--- a/ld/testsuite/ld-elf/frame.exp
+++ b/ld/testsuite/ld-elf/frame.exp
@@ -40,7 +40,11 @@ if { ![ld_assemble $as $srcdir/$subdir/tbss.s tmpdir/tbss.o ]
if { [ld_simple_link $ld tmpdir/frame.so "--shared tmpdir/frame.o tmpdir/tbss.o"] } {
pass "$test1"
} else {
- fail "$test1"
+ if [string match "*shared not supported*" $link_output] {
+ unsupported "-shared is not supported by this target"
+ } else {
+ fail "$test1"
+ }
}
if ![ld_assemble $as $srcdir/$subdir/table.s tmpdir/table.o ] {
@@ -51,5 +55,9 @@ if ![ld_assemble $as $srcdir/$subdir/table.s tmpdir/table.o ] {
if { [ld_simple_link $ld tmpdir/table.so "--shared tmpdir/table.o tmpdir/tbss.o"] } {
pass "$test2"
} else {
- fail "$test2"
+ if [string match "*shared not supported*" $link_output] {
+ unsupported "-shared is not supported by this target"
+ } else {
+ fail "$test2"
+ }
}