Handle ports which do not support the --shared switch
authorNick Clifton <nickc@redhat.com>
Mon, 21 Jun 2004 10:24:39 +0000 (10:24 +0000)
committerNick Clifton <nickc@redhat.com>
Mon, 21 Jun 2004 10:24:39 +0000 (10:24 +0000)
ld/testsuite/ChangeLog
ld/testsuite/ld-elf/frame.exp

index 468549250fbfd00d6ca874675c5c33ed169fe83b..f825698f6a4c1d72fbef81222eede5be2e831f3d 100644 (file)
@@ -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
index cfeeb29199aa1caf1ce8883bde530078d0741b6d..b2ff8221009a6de5207e08ac03b45799ad1164b1 100644 (file)
@@ -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"
+    }
 }
This page took 0.026138 seconds and 4 git commands to generate.