sanitization for new test case. discard it when sanitizing, until it gets
authorKen Raeburn <raeburn@cygnus>
Sun, 3 Jan 1999 23:27:11 +0000 (23:27 +0000)
committerKen Raeburn <raeburn@cygnus>
Sun, 3 Jan 1999 23:27:11 +0000 (23:27 +0000)
rewritten or assigned to the fsf.

ld/testsuite/ld-shared/.Sanitize
ld/testsuite/ld-shared/elf-offset.ld
ld/testsuite/ld-shared/shared.exp

index fb9f20c5413572840e834fd701fc68c9240851bc..0858c5df3eb80fb433633ee48c98b308b7a8c20c 100644 (file)
@@ -33,6 +33,8 @@ xcoff.dat
 
 Things-to-lose:
 
+elf-offset.ld
+
 # The lines between the "Do-last:" line and the end of the file
 # are executed as a /bin/sh shell script after everything else is
 # done.
index 1edf1a71a3acab12d6c793c6a6621a0ede9771c1..10f1fd32c798703bdd77ac8c249161f5460bf2dc 100644 (file)
@@ -5,7 +5,7 @@ PHDRS {
 }
 
 MEMORY {
-       RAM : ORIGIN = 0x10000, LENGTH = 0x7fffff
+       RAM : ORIGIN = 0x10000, LENGTH = 0x7ffffff
 }
 
 SECTIONS {
index 217efa7d6a18f5479883f186843b92654652462a..5eab42b7246d208217af2bf722b85f38342f9952 100644 (file)
@@ -202,13 +202,16 @@ if ![ld_compile "$CC $CFLAGS $SHCFLAG" $srcdir/$subdir/main.c $tmpdir/mainnp.o]
        setup_xfail "*-*-sunos4*"
        shared_test shnp "shared (non PIC)" mainnp.o sh1np.o sh2np.o shared
 
-       # Test ELF shared library relocations with a non-zero load
-       # address for the library.  Near as I can tell, the R_*_RELATIVE
-       # relocations for various targets are broken in the case where
-       # the load address is not zero (which is the default).
-       setup_xfail "*-*-sunos4*"
-       shared_test shnp "shared (non PIC, load offset)" \
-               mainnp.o sh1np.o sh2np.o shared "$srcdir/$subdir/elf-offset.ld"
+       if [file exists "$srcdir/$subdir/elf-offset.ld"] {
+           # Test ELF shared library relocations with a non-zero load
+           # address for the library.  Near as I can tell, the R_*_RELATIVE
+           # relocations for various targets are broken in the case where
+           # the load address is not zero (which is the default).
+           setup_xfail "*-*-sunos4*"
+           shared_test shnp "shared (non PIC, load offset)" \
+                   mainnp.o sh1np.o sh2np.o shared \
+                   "$srcdir/$subdir/elf-offset.ld"
+       }
     } }
 
     # Now compile the code using -fpic.