summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-scripts/phdrs2.exp
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2006-10-25 06:49:21 +0000
committerAlan Modra <amodra@bigpond.net.au>2006-10-25 06:49:21 +0000
commit999aabcd698783c01f555bd0fc792886c11c1be5 (patch)
tree7625efc29c4c2d73ea1dacacbdbcba37ba3dd1d7 /ld/testsuite/ld-scripts/phdrs2.exp
parent31056e74b127811aee756c89d5e80f9fce7e914e (diff)
downloadbinutils-redhat-999aabcd698783c01f555bd0fc792886c11c1be5.tar.gz
New Cell SPU port.
Diffstat (limited to 'ld/testsuite/ld-scripts/phdrs2.exp')
-rw-r--r--ld/testsuite/ld-scripts/phdrs2.exp8
1 files changed, 7 insertions, 1 deletions
diff --git a/ld/testsuite/ld-scripts/phdrs2.exp b/ld/testsuite/ld-scripts/phdrs2.exp
index 5fbc2fa453..8c41ffe317 100644
--- a/ld/testsuite/ld-scripts/phdrs2.exp
+++ b/ld/testsuite/ld-scripts/phdrs2.exp
@@ -36,6 +36,11 @@ if { [istarget *-*-linux*aout*] \
set testname "PHDRS2"
+set ldopt ""
+if { [istarget spu*-*-*] } {
+ set ldopt "--local-store 0:0"
+}
+
if ![ld_assemble $as $srcdir/$subdir/phdrs2.s tmpdir/phdrs2.o] {
unresolved $testname
return
@@ -44,7 +49,8 @@ if ![ld_assemble $as $srcdir/$subdir/phdrs2.s tmpdir/phdrs2.o] {
set phdrs_regexp \
".*Program Header:.*LOAD *off *0x00\[0-9a-f\]* *vaddr *0x00*800000 *paddr *0x00*800000.*filesz *0x0\[0-9a-f\]* *memsz *0x0\[0-9a-f\]*.*LOAD *off *0x00\[0-9a-f\]* *vaddr *0x00*800004 *paddr *0x00*800004.*filesz *0x00*\[0-9a-f\]* *memsz *0x0\[0-9a-f\]* *flags rw.*"
-if ![ld_simple_link $ld tmpdir/phdrs2 "-T $srcdir/$subdir/phdrs2.t tmpdir/phdrs2.o"] {
+set ldopt "$ldopt -T $srcdir/$subdir/phdrs2.t tmpdir/phdrs2.o"
+if ![ld_simple_link $ld tmpdir/phdrs2 $ldopt] {
fail $testname
} else {
if {[which $objdump] == 0} {