diff options
author | Alan Modra <amodra@gmail.com> | 2000-07-10 17:02:16 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2000-07-10 17:02:16 +0000 |
commit | 36a3dc51192b775f628fe5f2d95863af6d164dfc (patch) | |
tree | 2345f9f623e2d5ce5cd437758b1f2033cead925c /ld/testsuite/ld-scripts | |
parent | e0e338392edde37519408aaf5b8a770a026b4c5d (diff) | |
download | fsf-binutils-gdb-36a3dc51192b775f628fe5f2d95863af6d164dfc.zip fsf-binutils-gdb-36a3dc51192b775f628fe5f2d95863af6d164dfc.tar.gz fsf-binutils-gdb-36a3dc51192b775f628fe5f2d95863af6d164dfc.tar.bz2 |
Even more hppa testsuite patches.
Diffstat (limited to 'ld/testsuite/ld-scripts')
-rw-r--r-- | ld/testsuite/ld-scripts/crossref.exp | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-scripts/weak.exp | 8 |
2 files changed, 8 insertions, 2 deletions
diff --git a/ld/testsuite/ld-scripts/crossref.exp b/ld/testsuite/ld-scripts/crossref.exp index fee9759..d5bcc49 100644 --- a/ld/testsuite/ld-scripts/crossref.exp +++ b/ld/testsuite/ld-scripts/crossref.exp @@ -28,7 +28,7 @@ if [istarget a29k*-*-*] { # hppa-elf needs a definition for $global$. if [istarget hppa*-*-*] { - set flags "$flags --defsym '\$global\$'=0" + set flags "$flags --defsym \\\$global\\\$=0" } verbose -log "$ld $flags -o tmpdir/cross1 -T $srcdir/$subdir/cross1.t tmpdir/cross1.o tmpdir/cross2.o" diff --git a/ld/testsuite/ld-scripts/weak.exp b/ld/testsuite/ld-scripts/weak.exp index e965967..47651c0 100644 --- a/ld/testsuite/ld-scripts/weak.exp +++ b/ld/testsuite/ld-scripts/weak.exp @@ -35,7 +35,13 @@ set weak_regexp_big \ set weak_regexp_little \ ".*Contents of section .text:.*1000 08100000 0c200000 12121212 34343434.*Contents of section .data:.*2000 08100000 0c200000 56565656 78787878.*" -if {! [ld_simple_link $ld tmpdir/weak "-T $srcdir/$subdir/weak.t tmpdir/weak1.o tmpdir/weak2.o"] } then { +# hppa-elf needs a definition for $global$. +set flags "" +if [istarget hppa*-*-*] { + set flags "--defsym \\\$global\\\$=0" +} + +if {! [ld_simple_link $ld tmpdir/weak "$flags -T $srcdir/$subdir/weak.t tmpdir/weak1.o tmpdir/weak2.o"] } then { fail $testname } else { if {[which $objdump] == 0} then { |