This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
testsuite tweak for spu
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: binutils at sourceware dot org
- Date: Sat, 15 Dec 2007 08:24:18 +1030
- Subject: testsuite tweak for spu
The SPU linker decides that the overlap in this test is an overlay.
Since the idea is to trigger a warning about overlap, disable
overlays.
* ld-scripts/rgn-over.exp: Add --no-overlays for spu.
Index: ld/testsuite/ld-scripts/rgn-over.exp
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-scripts/rgn-over.exp,v
retrieving revision 1.1
diff -u -p -r1.1 rgn-over.exp
--- ld/testsuite/ld-scripts/rgn-over.exp 17 Oct 2007 19:26:10 -0000 1.1
+++ ld/testsuite/ld-scripts/rgn-over.exp 14 Dec 2007 21:32:37 -0000
@@ -24,6 +24,11 @@ if ![is_elf_format] {
load_lib ld-lib.exp
+set old_ldflags $LDFLAGS
+if { [istarget spu*-*-*] } {
+ set LDFLAGS "$LDFLAGS --no-overlays"
+}
+
set test_list [lsort [glob -nocomplain $srcdir/$subdir/rgn-over*.d]]
foreach test_file $test_list {
set test_name [file rootname $test_file]
@@ -44,3 +49,4 @@ foreach test_file $test_list {
untested $testname
}
}
+set LDFLAGS $old_ldflags
--
Alan Modra
Australia Development Lab, IBM