X-Git-Url: https://oss.titaniummirror.com/gitweb?p=msp430-binutils.git;a=blobdiff_plain;f=ld%2Ftestsuite%2Fld-elf%2Fsec64k.exp;fp=ld%2Ftestsuite%2Fld-elf%2Fsec64k.exp;h=285e83af5bab276510d32b25eb74c13e2eceb942;hp=8b7cade6cb148e8605d22e764958202c8c4ee791;hb=88750007d7869f178f0ba528f41efd3b74c424cf;hpb=6df9443a374e2b81278c61b8afc0a1eef7db280b diff --git a/ld/testsuite/ld-elf/sec64k.exp b/ld/testsuite/ld-elf/sec64k.exp index 8b7cade..285e83a 100644 --- a/ld/testsuite/ld-elf/sec64k.exp +++ b/ld/testsuite/ld-elf/sec64k.exp @@ -1,5 +1,6 @@ # Expect script for tests for >64k sections -# Copyright 2002, 2003, 2006, 2007 Free Software Foundation, Inc. +# Copyright 2002, 2003, 2005, 2006, 2007, 2008 +# Free Software Foundation, Inc. # # This file is part of the GNU Binutils. # @@ -69,16 +70,28 @@ for { set i 0 } { $i < $max_sec / $secs_per_file } { incr i } { # They should get separate section entries even without -r. puts $ofd " .altmacro" puts $ofd " .macro sec secn, secp" - puts $ofd " .section .foo.\\secn,\"ax\"" + if {![istarget "frv-*-*linux*"]} then { + puts $ofd " .section .foo.\\secn,\"ax\"" + } else { + puts $ofd " .section .foo.\\secn,\"aw\"" + } puts $ofd " .global foo_\\secn" puts $ofd "foo_\\secn:" puts $ofd " .dc.a foo_\\secp" puts $ofd "bar_\\secn:" puts $ofd " .dc.a bar_\\secn" puts $ofd " .endm" - puts $ofd " secn = [expr $i * $secs_per_file]" + if {![istarget "bfin-*-*"]} then { + puts $ofd " secn = [expr $i * $secs_per_file]" + } else { + puts $ofd " .set secn, [expr $i * $secs_per_file]" + } puts $ofd " .rept $secs_per_file" - puts $ofd " secn = secn + 1" + if {![istarget "bfin-*-*"]} then { + puts $ofd " secn = secn + 1" + } else { + puts $ofd " .set secn, secn + 1" + } puts $ofd " sec %(secn), %(secn-1)" puts $ofd " .endr" @@ -106,12 +119,12 @@ if {![istarget "m32r-*-*"]} then { puts $ofd "#readelf: -W -Ss" puts $ofd "There are 680.. section headers.*:" puts $ofd "#..." - puts $ofd " \\\[ 0\\\] .* 682\[0-9\]\[0-9\]\[ \]+0\[ \]+0" + puts $ofd " \\\[ 0\\\] .* 680\[0-9\]\[0-9\]\[ \]+0\[ \]+0" puts $ofd "#..." puts $ofd " \\\[ \[0-9\]\\\] \.foo\.1\[ \]+PROGBITS\[ \]+.*" puts $ofd "#..." puts $ofd " \\\[65279\\\] (.rel\[a\]?)?\\.foo\\.\[0-9\]+ .*" - puts $ofd " \\\[65536\\\] (.rel\[a\]?)?\\.foo\\.\[0-9\]+ .*" + puts $ofd " \\\[65280\\\] (.rel\[a\]?)?\\.foo\\.\[0-9\]+ .*" puts $ofd "#..." puts $ofd " 340..: 0+\[ \]+0\[ \]+SECTION\[ \]+LOCAL\[ \]+DEFAULT\[ \]+68... " puts $ofd "#..." @@ -144,12 +157,12 @@ if { [istarget spu*-*-*] } { puts $ofd "#readelf: -W -Ss" puts $ofd "There are 660.. section headers.*:" puts $ofd "#..." -puts $ofd " \\\[ 0\\\] .* 662..\[ \]+0\[ \]+0" +puts $ofd " \\\[ 0\\\] .* 660..\[ \]+0\[ \]+0" puts $ofd "#..." puts $ofd " \\\[65279\\\] \\.foo\\.\[0-9\]+ .*" -puts $ofd " \\\[65536\\\] \\.foo\\.\[0-9\]+ .*" +puts $ofd " \\\[65280\\\] \\.foo\\.\[0-9\]+ .*" puts $ofd "#..." -puts $ofd " 660..: \[0-9a-f\]+\[ \]+0\[ \]+SECTION\[ \]+LOCAL\[ \]+DEFAULT\[ \]+662.. " +puts $ofd " 660..: \[0-9a-f\]+\[ \]+0\[ \]+SECTION\[ \]+LOCAL\[ \]+DEFAULT\[ \]+660.. " puts $ofd "#..." puts $ofd " 660..: \[0-9a-f\]+\[ \]+0\[ \]+NOTYPE\[ \]+LOCAL\[ \]+DEFAULT\[ \]+\[0-9\] bar_1$" puts $ofd "#..."