From: Ken Raeburn Date: Sun, 3 Jan 1999 23:27:11 +0000 (+0000) Subject: sanitization for new test case. discard it when sanitizing, until it gets X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6772620740a0da51175f547d54e60a7a07732cc1;p=binutils-gdb.git sanitization for new test case. discard it when sanitizing, until it gets rewritten or assigned to the fsf. --- diff --git a/ld/testsuite/ld-shared/.Sanitize b/ld/testsuite/ld-shared/.Sanitize index fb9f20c5413..0858c5df3eb 100644 --- a/ld/testsuite/ld-shared/.Sanitize +++ b/ld/testsuite/ld-shared/.Sanitize @@ -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. diff --git a/ld/testsuite/ld-shared/elf-offset.ld b/ld/testsuite/ld-shared/elf-offset.ld index 1edf1a71a3a..10f1fd32c79 100644 --- a/ld/testsuite/ld-shared/elf-offset.ld +++ b/ld/testsuite/ld-shared/elf-offset.ld @@ -5,7 +5,7 @@ PHDRS { } MEMORY { - RAM : ORIGIN = 0x10000, LENGTH = 0x7fffff + RAM : ORIGIN = 0x10000, LENGTH = 0x7ffffff } SECTIONS { diff --git a/ld/testsuite/ld-shared/shared.exp b/ld/testsuite/ld-shared/shared.exp index 217efa7d6a1..5eab42b7246 100644 --- a/ld/testsuite/ld-shared/shared.exp +++ b/ld/testsuite/ld-shared/shared.exp @@ -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.