aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@cygnus>1999-01-03 23:27:11 +0000
committerKen Raeburn <raeburn@cygnus>1999-01-03 23:27:11 +0000
commit6772620740a0da51175f547d54e60a7a07732cc1 (patch)
tree116433f19b017bf247c566b2c4dde3c7e8480c2a /ld
parentc81b48112fda6d461bd9e8b2ab68e62bd24601ac (diff)
downloadgdb-6772620740a0da51175f547d54e60a7a07732cc1.zip
gdb-6772620740a0da51175f547d54e60a7a07732cc1.tar.gz
gdb-6772620740a0da51175f547d54e60a7a07732cc1.tar.bz2
sanitization for new test case. discard it when sanitizing, until it gets
rewritten or assigned to the fsf.
Diffstat (limited to 'ld')
-rw-r--r--ld/testsuite/ld-shared/.Sanitize2
-rw-r--r--ld/testsuite/ld-shared/elf-offset.ld2
-rw-r--r--ld/testsuite/ld-shared/shared.exp17
3 files changed, 13 insertions, 8 deletions
diff --git a/ld/testsuite/ld-shared/.Sanitize b/ld/testsuite/ld-shared/.Sanitize
index fb9f20c..0858c5d 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 1edf1a7..10f1fd3 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 217efa7d..5eab42b 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.