bfd/
[binutils-gdb.git] / ld / testsuite / ld-shared / shared.exp
index 339d3a3abe91ce50273fcb84053d136d37d8cba5..a88cd1c8c8d3ab8418609965e57440e938ceca95 100644 (file)
@@ -203,6 +203,9 @@ if ![ld_compile "$CC $CFLAGS $SHCFLAG" $srcdir/$subdir/main.c $tmpdir/mainnp.o]
        if { ![istarget hppa*64*-*-linux*] } {
            setup_xfail "hppa*-*-linux*"
        }
+       if { [istarget sparc*-*-linux*] && [is_elf64 $tmpdir/mainnp.o] } {
+           setup_xfail "sparc*-*-linux*"
+       }
        setup_xfail "x86_64-*-linux*"
        setup_xfail "s390x-*-linux*"
        shared_test shnp "shared (non PIC)" mainnp.o sh1np.o sh2np.o shared
@@ -220,6 +223,9 @@ if ![ld_compile "$CC $CFLAGS $SHCFLAG" $srcdir/$subdir/main.c $tmpdir/mainnp.o]
        if { ![istarget hppa*64*-*-linux*] } {
            setup_xfail "hppa*-*-linux*"
        }
+       if { [istarget sparc*-*-linux*] && [is_elf64 $tmpdir/mainnp.o] } {
+           setup_xfail "sparc*-*-linux*"
+       }
        setup_xfail "x86_64-*-linux*"
        shared_test shnp "shared (non PIC, load offset)" \
                mainnp.o sh1np.o sh2np.o shared \
@@ -265,6 +271,9 @@ if ![ld_compile "$CC $CFLAGS $SHCFLAG $picflag" $srcdir/$subdir/main.c $tmpdir/m
            if { ![istarget hppa*64*-*-linux*] } {
                setup_xfail "hppa*-*-linux*"
            }
+           if { [istarget sparc*-*-linux*] && [is_elf64 $tmpdir/mainp.o] } {
+               setup_xfail "sparc*-*-linux*"
+           }
            setup_xfail "x86_64-*-linux*"
            setup_xfail "s390x-*-linux*"
            shared_test shmpnp "shared (PIC main, non PIC so)" mainp.o sh1np.o sh2np.o shared