diff options
Diffstat (limited to 'binutils/testsuite/binutils-all')
88 files changed, 0 insertions, 3074 deletions
diff --git a/binutils/testsuite/binutils-all/alias.def b/binutils/testsuite/binutils-all/alias.def deleted file mode 100644 index d59d4a0..0000000 --- a/binutils/testsuite/binutils-all/alias.def +++ /dev/null @@ -1,2 +0,0 @@ -EXPORTS -symbol=nothing diff --git a/binutils/testsuite/binutils-all/ar.exp b/binutils/testsuite/binutils-all/ar.exp deleted file mode 100644 index 02d1235..0000000 --- a/binutils/testsuite/binutils-all/ar.exp +++ /dev/null @@ -1,256 +0,0 @@ -# Copyright 1995, 1997, 2002, 2004 Free Software Foundation, Inc. - -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - -# Please email any bugs, comments, and/or additions to this file to: -# bug-dejagnu@prep.ai.mit.edu - -# Written by Ian Lance Taylor <ian@cygnus.com> - -if ![is_remote host] { - if {[which $AR] == 0} then { - perror "$AR does not exist" - return - } -} - -# send_user "Version [binutil_version $AR]" - -# Test long file name support - -proc long_filenames { } { - global AR - global host_triplet - - set testname "ar long file names" - - set n1 "abcdefghijklmnopqrstuvwxyz1" - set n2 "abcdefghijklmnopqrstuvwxyz2" - set file1 tmpdir/$n1 - set file2 tmpdir/$n2 - - remote_file build delete $file1 - - # Some file systems truncate file names at 14 characters, which - # makes it impossible to run this test. Check for that now. - set status [catch "set f [open tmpdir/$n1 w]" errs] - if { $status != 0 } { - verbose -log "open tmpdir/$n1 returned $errs" - unsupported $testname - return - } - puts $f "first" - close $f - - - remote_file build delete $file2 - - set status [catch "set f [open tmpdir/$n2 w]" errs] - if { $status != 0 } { - verbose -log "open tmpdir/$n2 returned $errs" - unsupported $testname - return - } - puts $f "second" - close $f - - if [is_remote host] { - set file1 [remote_download host $file1] - set file2 [remote_download host $file2] - set dest artest.a - } else { - set dest tmpdir/artest.a - } - - remote_file host delete $dest - - set got [binutils_run $AR "rc $dest $file1 $file2"] - if [is_remote host] { - remote_upload host $file1 tmpdir/$n1 - } - - set f [open tmpdir/$n1 r] - gets $f string - close $f - if ![string match "first" $string] { - verbose -log "reading tmpdir/$n1 returned $string" - unsupported $testname - return - } - - remote_file host delete $dest - set got [binutils_run $AR "rc $dest $file1 $file2"] - - if ![string match "" $got] { - fail $testname - return - } - - remote_file build delete tmpdir/$n1 - remote_file build delete tmpdir/$n2 - - set got [binutils_run $AR "t $dest"] - regsub "\[\r\n \t\]*$" "$got" "" got - if ![string match "$n1*$n2" $got] { - fail $testname - return - } - - if [is_remote host] { - remote_file host delete $file1 - remote_file host delete $file2 - } - - verbose -log "$AR x $dest" - set exec_output [binutils_run $AR "x $dest"] - set exec_output [prune_warnings $exec_output] - if ![string match "" $exec_output] { - verbose -log $exec_output - fail $testname - return - } - - if [is_remote host] { - remote_upload host $n1 tmpdir/$n1 - remote_upload host $n2 tmpdir/$n2 - set file1 tmpdir/$n1 - set file2 tmpdir/$n2 - } else { - set file1 $n1 - set file2 $n2 - } - - if ![file exists $file1] { - verbose -log "$file1 does not exist" - fail $testname - return - } - if ![file exists $file2] { - verbose -log "$file2 does not exist" - fail $testname - return - } - - set f [open $file1 r] - if { [gets $f line] == -1 || $line != "first" } { - verbose -log "$file1 contents:" - verbose -log "$line" - close $f - fail $testname - return - } - close $f - - set f [open $file2 r] - if { [gets $f line] == -1 || $line != "second" } { - verbose -log "$file2 contents:" - verbose -log "$line" - close $f - fail $testname - return - } - close $f - - file delete $file1 $file2 - pass $testname -} - -# Test building the symbol table. - -proc symbol_table { } { - global AR - global AS - global NM - global srcdir - global subdir - - set testname "ar symbol table" - - if ![binutils_assemble $srcdir/$subdir/bintest.s tmpdir/bintest.o] { - unresolved $testname - return - } - - if [is_remote host] { - set archive artest.a - set objfile [remote_download host tmpdir/bintest.o] - remote_file host delete $archive - } else { - set archive tmpdir/artest.a - set objfile tmpdir/bintest.o - } - - remote_file build delete tmpdir/artest.a - - set got [binutils_run $AR "rc $archive ${objfile}"] - if ![string match "" $got] { - fail $testname - return - } - - set got [binutils_run $NM "--print-armap $archive"] - if { ![string match "*text_symbol in bintest.o*" $got] \ - || ![string match "*data_symbol in bintest.o*" $got] \ - || ![string match "*common_symbol in bintest.o*" $got] \ - || [string match "*static_text_symbol in bintest.o*" $got] \ - || [string match "*static_data_symbol in bintest.o*" $got] \ - || [string match "*external_symbol in bintest.o*" $got] } { - fail $testname - return - } - - pass $testname -} - -# Test POSIX-compatible argument parsing. - -proc argument_parsing { } { - global AR - global AS - global srcdir - global subdir - - set testname "ar argument parsing" - - if ![binutils_assemble $srcdir/$subdir/bintest.s tmpdir/bintest.o] { - unresolved $testname - return - } - - if [is_remote host] { - set archive artest.a - set objfile [remote_download host tmpdir/bintest.o] - remote_file host delete $archive - } else { - set archive tmpdir/artest.a - set objfile tmpdir/bintest.o - } - - remote_file build delete tmpdir/artest.a - - set got [binutils_run $AR "-r -c $archive ${objfile}"] - if ![string match "" $got] { - fail $testname - return - } - - pass $testname -} - -# Run the tests. - -long_filenames -symbol_table -argument_parsing diff --git a/binutils/testsuite/binutils-all/arm/objdump.exp b/binutils/testsuite/binutils-all/arm/objdump.exp deleted file mode 100644 index 8ee3fd1..0000000 --- a/binutils/testsuite/binutils-all/arm/objdump.exp +++ /dev/null @@ -1,63 +0,0 @@ -# Copyright 2004 -# Free Software Foundation, Inc. - -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - -if {![istarget "arm*-*-*"]} then { - return -} - -if {[which $OBJDUMP] == 0} then { - perror "$OBJDUMP does not exist" - return -} - -send_user "Version [binutil_version $OBJDUMP]" - -########################### -# Set up the test of movem.s -########################### - -if {![binutils_assemble $srcdir/$subdir/thumb2-cond.s tmpdir/thumb2-cond.o]} then { - return -} - -if [is_remote host] { - set objfile [remote_download host tmpdir/thumb2-cond.o] -} else { - set objfile tmpdir/thumb2-cond.o -} - -# Make sure that conditional instructions are correctly decoded. - -set got [binutils_run $OBJDUMP "$OBJDUMPFLAGS --disassemble --start-address=6 $objfile"] - -set want "bcc.w\te12.*bx\tlr" - -if [regexp $want $got] then { - pass "thumb2-cond test1" -} else { - fail "thumb2-cond test1" -} - -set got [binutils_run $OBJDUMP "$OBJDUMPFLAGS --disassemble --start-address=10 $objfile"] - -set want "bx\tlr" - -if [regexp $want $got] then { - pass "thumb2-cond test1" -} else { - fail "thumb2-cond test1" -} diff --git a/binutils/testsuite/binutils-all/arm/thumb2-cond.s b/binutils/testsuite/binutils-all/arm/thumb2-cond.s deleted file mode 100644 index 95761e1..0000000 --- a/binutils/testsuite/binutils-all/arm/thumb2-cond.s +++ /dev/null @@ -1,6 +0,0 @@ -.thumb -foo: -.short 0xf000, 0xf800 -.short 0xbf38 -.short 0xf000, 0xbf04 -bx lr diff --git a/binutils/testsuite/binutils-all/bintest.s b/binutils/testsuite/binutils-all/bintest.s deleted file mode 100644 index 9e00650..0000000 --- a/binutils/testsuite/binutils-all/bintest.s +++ /dev/null @@ -1,12 +0,0 @@ - .globl text_symbol - .text -text_symbol: -static_text_symbol: - .long 1 - .long external_symbol - .globl data_symbol - .data -data_symbol: -static_data_symbol: - .long 2 - .comm common_symbol,4 diff --git a/binutils/testsuite/binutils-all/copy-1.d b/binutils/testsuite/binutils-all/copy-1.d deleted file mode 100644 index f2b0d9e..0000000 --- a/binutils/testsuite/binutils-all/copy-1.d +++ /dev/null @@ -1,13 +0,0 @@ -#PROG: objcopy -#objdump: -h -#objcopy: --set-section-flags .post_text_reserve=contents,alloc,load,readonly,code -#name: copy with setting section flags 1 - -.*: +file format .* - -Sections: -Idx.* -#... - [0-9]* .post_text_reserve.* - CONTENTS, ALLOC, LOAD, READONLY, CODE -#... diff --git a/binutils/testsuite/binutils-all/copy-1.s b/binutils/testsuite/binutils-all/copy-1.s deleted file mode 100644 index 32864de..0000000 --- a/binutils/testsuite/binutils-all/copy-1.s +++ /dev/null @@ -1,6 +0,0 @@ - .globl text_symbol - .text -text_symbol: - .long 1 - .section .post_text_reserve,"w", %nobits - .space 160 diff --git a/binutils/testsuite/binutils-all/copy-2.d b/binutils/testsuite/binutils-all/copy-2.d deleted file mode 100644 index 8a1ab59..0000000 --- a/binutils/testsuite/binutils-all/copy-2.d +++ /dev/null @@ -1,18 +0,0 @@ -#PROG: objcopy -#objdump: -h -#objcopy: --set-section-flags foo=contents,alloc,load,code -#name: copy with setting section flags 2 -#source: copytest.s -#not-target: *-*-aout -# Note - we use copytest.s and a section named "foo" rather -# than .text because for some file formats (eg PE) the .text -# section has a fixed set of flags and these cannot be changed. - -.*: +file format .* - -Sections: -Idx.* -#... - [0-9]* foo.* - CONTENTS, ALLOC, LOAD, CODE -#... diff --git a/binutils/testsuite/binutils-all/copy-3.d b/binutils/testsuite/binutils-all/copy-3.d deleted file mode 100644 index be3eea4..0000000 --- a/binutils/testsuite/binutils-all/copy-3.d +++ /dev/null @@ -1,17 +0,0 @@ -#PROG: objcopy -#objdump: -h -#objcopy: --set-section-flags .text=alloc,data -#name: copy with setting section flags 3 -#source: bintest.s -#not-target: *-*-aout *-*-*pe *-*-*coff i*86-*-cygwin* i*86-*-mingw32* -# The .text # section in PE/COFF has a fixed set of flags and these -# cannot be changed. We skip it for them. - -.*: +file format .* - -Sections: -Idx.* -#... - [0-9]* .text.* - CONTENTS, ALLOC, LOAD, RELOC, DATA -#... diff --git a/binutils/testsuite/binutils-all/copytest.s b/binutils/testsuite/binutils-all/copytest.s deleted file mode 100644 index 33c13b8..0000000 --- a/binutils/testsuite/binutils-all/copytest.s +++ /dev/null @@ -1,7 +0,0 @@ - .globl foo_symbol - .section foo -foo_symbol: - .long 1 - .section bar -bar_symbol: - .long 2 diff --git a/binutils/testsuite/binutils-all/dlltool.exp b/binutils/testsuite/binutils-all/dlltool.exp deleted file mode 100644 index 6ddfcfa..0000000 --- a/binutils/testsuite/binutils-all/dlltool.exp +++ /dev/null @@ -1,80 +0,0 @@ -# Copyright 2002, 2004 Free Software Foundation, Inc. - -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - -if {![istarget "i*86-*-*"]} { - return -} - -if {![istarget "i*86-*-*pe*"] \ - && ![istarget "i*86-*-cygwin*"] \ - && ![istarget "i*86-*-mingw32*"] } { - set target_xfail "yes" -} else { - set target_xfail "no" -} - -if {![info exists DLLTOOL]} then { - return -} - -if {[which $DLLTOOL] == 0} then { - return -} - -verbose "$DLLTOOL -d $srcdir/$subdir/fastcall.def" 1 -catch "exec $DLLTOOL -d $srcdir/$subdir/fastcall.def" err - -if ![string match "" $err] then { - send_log "$err\n" - verbose "$err" 1 - fail "dlltool (fastcall export)" -} else { - pass "dlltool (fastcall export)" -} - -if { "$target_xfail" == "yes" } { - setup_xfail *-* -} - -verbose "$DLLTOOL -p prefix -l tmpdir/libalias.a -d $srcdir/$subdir/alias.def $dlltool_gas_flag" 1 -catch "exec $DLLTOOL -p prefix -l tmpdir/libalias.a -d $srcdir/$subdir/alias.def $dlltool_gas_flag" err - -if ![string match "" $err] then { - send_log "$err\n" - verbose "$err" 1 - fail "dlltool -p (execution)" - continue -} - -pass "dlltool -p (execution)" - -set got [binutils_run $NM "tmpdir/libalias.a"] -set want "00000000 I __imp__prefix_symbol.*00000000 T _prefix_symbol.*00000000 I __imp__symbol.*00000000 T _symbol" - -if [regexp $want $got] then { - pass "dlltool -p (symbol names)" -} else { - fail "dlltool -p (symbol names)" -} - -set got [binutils_run $OBJDUMP "-s -j .idata\$6 tmpdir/libalias.a"] -set want "(Contents of section .idata\\\$6:.*\\.\\.symbol\\.\\..*){2,2}" - -if [regexp $want $got] then { - pass "dlltool -p (import name)" -} else { - fail "dlltool -p (import name)" -} diff --git a/binutils/testsuite/binutils-all/fastcall.def b/binutils/testsuite/binutils-all/fastcall.def deleted file mode 100644 index bef4968..0000000 --- a/binutils/testsuite/binutils-all/fastcall.def +++ /dev/null @@ -1,2 +0,0 @@ -EXPORTS -@fastcall@4 diff --git a/binutils/testsuite/binutils-all/group.s b/binutils/testsuite/binutils-all/group.s deleted file mode 100644 index 21aa4be..0000000 --- a/binutils/testsuite/binutils-all/group.s +++ /dev/null @@ -1,8 +0,0 @@ - .section .text,"axG",%progbits,foo_group,comdat - .global foo -foo: - .word 0 - .section .data,"awG",%progbits,foo_group,comdat - .global bar -bar: - .word 0 diff --git a/binutils/testsuite/binutils-all/hppa/addendbug.s b/binutils/testsuite/binutils-all/hppa/addendbug.s deleted file mode 100644 index 659306f..0000000 --- a/binutils/testsuite/binutils-all/hppa/addendbug.s +++ /dev/null @@ -1,23 +0,0 @@ - .SPACE $PRIVATE$ - .SUBSPA $DATA$,QUAD=1,ALIGN=8,ACCESS=31 - .SUBSPA $BSS$,QUAD=1,ALIGN=8,ACCESS=31,ZERO,SORT=82 - .SPACE $TEXT$ - .SUBSPA $LIT$,QUAD=0,ALIGN=8,ACCESS=44 - .SUBSPA $CODE$,QUAD=0,ALIGN=8,ACCESS=44,CODE_ONLY - .IMPORT $global$,DATA - .IMPORT $$dyncall,MILLICODE -; gcc_compiled.: - .SPACE $TEXT$ - .SUBSPA $CODE$ - - .align 4 - .EXPORT initialize_char_syntax,CODE - .EXPORT initialize_char_syntax,ENTRY,PRIV_LEV=3,RTNVAL=GR -initialize_char_syntax - .PROC - .CALLINFO FRAME=64,NO_CALLS,SAVE_SP,ENTRY_GR=3 - .ENTRY - addil L'is_idchar-$global$-32,%r27 - .EXIT - .PROCEND -is_idchar .comm 256 diff --git a/binutils/testsuite/binutils-all/hppa/freg.s b/binutils/testsuite/binutils-all/hppa/freg.s deleted file mode 100644 index 501e10f..0000000 --- a/binutils/testsuite/binutils-all/hppa/freg.s +++ /dev/null @@ -1,23 +0,0 @@ - .LEVEL 2.0 - .SPACE $PRIVATE$ - .SUBSPA $DATA$,QUAD=1,ALIGN=8,ACCESS=31 - .SUBSPA $BSS$,QUAD=1,ALIGN=8,ACCESS=31,ZERO,SORT=82 - .SPACE $TEXT$ - .SUBSPA $LIT$,QUAD=0,ALIGN=8,ACCESS=44 - .SUBSPA $CODE$,QUAD=0,ALIGN=8,ACCESS=44,CODE_ONLY - .IMPORT $global$,DATA - .IMPORT $$dyncall,MILLICODE -; gcc_compiled.: - .SPACE $TEXT$ - .SUBSPA $CODE$ - - .align 4 - .NSUBSPA $CODE$,QUAD=0,ALIGN=8,ACCESS=44,CODE_ONLY - .EXPORT main,ENTRY,PRIV_LEV=3,RTNVAL=GR -main - .PROC - .CALLINFO FRAME=64,CALLS,SAVE_RP - .ENTRY - fmpyfadd,sgl %fr4L,%fr4R,%fr5R,%fr5L - .EXIT - .PROCEND diff --git a/binutils/testsuite/binutils-all/hppa/objdump.exp b/binutils/testsuite/binutils-all/hppa/objdump.exp deleted file mode 100644 index a445125..0000000 --- a/binutils/testsuite/binutils-all/hppa/objdump.exp +++ /dev/null @@ -1,96 +0,0 @@ -# Copyright 1993, 1994, 1995, 1997, 1999, 2000, 2002 -# Free Software Foundation, Inc. - -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - -# Please email any bugs, comments, and/or additions to this file to: -# bug-dejagnu@prep.ai.mit.edu - -# This file was written by Rob Savoye <rob@cygnus.com> -# and rewritten by Ian Lance Taylor <ian@cygnus.com> - -if ![istarget hppa*-*-*] then { - return -} - -# These tests are not suitable for wide mode. -if [istarget hppa*w-*-*] then { - return -} - -# elf hppa assembler doesn't support .subspa -if {[istarget *64*-*-*] || [istarget *-*-*elf*] || [istarget *-*-linux*]} then { - return -} - -if {[which $OBJDUMP] == 0} then { - perror "$OBJDUMP does not exist" - return -} - -send_user "Version [binutil_version $OBJDUMP]" - -if {![binutils_assemble $srcdir/$subdir/addendbug.s tmpdir/addendbug.o]} then { - return -} - -if [is_remote host] { - set objfile [remote_download host tmpdir/addendbug.o] -} else { - set objfile tmpdir/addendbug.o -} - -# Make sure the SOM BFD code sign extends constants in R_DATA_OVERRIDE fixups. - -set got [binutils_run $OBJDUMP "$OBJDUMPFLAGS -r $objfile"] - -if [istarget hppa*-*-*elf*] then { - set want "00000000 R_PARISC_DPREL21L\[ \]+is_idchar\\+0xffffffe0.*" -} else { - set want "00000000 R_DP_RELATIVE\[ \]+is_idchar\\+0xffffffe0.*" -} - - -if [regexp $want $got] then { - pass "addendbug test" -} else { - fail "addendbug test" -} - -########################### -# Set up the test of freg.s -########################### - -if {![binutils_assemble $srcdir/$subdir/freg.s tmpdir/freg.o]} then { - return -} - -if [is_remote host] { - set objfile [remote_download host tmpdir/freg.o] -} else { - set objfile tmpdir/freg.o -} - -# Make sure that we get R float regs like we're supposed to - -set got [binutils_run $OBJDUMP "$OBJDUMPFLAGS --disassemble $objfile"] - -set want "fmpyfadd,sgl fr4,fr4R,fr5R,fr5" - -if [regexp $want $got] then { - pass "freg test" -} else { - fail "freg test" -} diff --git a/binutils/testsuite/binutils-all/link-order.s b/binutils/testsuite/binutils-all/link-order.s deleted file mode 100644 index 5994cb8..0000000 --- a/binutils/testsuite/binutils-all/link-order.s +++ /dev/null @@ -1,13 +0,0 @@ - .text - .align 16 - .global foo# - .proc foo# -foo: - .prologue 2, 2 - .vframe r2 - mov r2 = r12 - .body - .restore sp - mov r12 = r2 - br.ret.sptk.many b0 - .endp foo# diff --git a/binutils/testsuite/binutils-all/localize-hidden-1.d b/binutils/testsuite/binutils-all/localize-hidden-1.d deleted file mode 100644 index a5286ed..0000000 --- a/binutils/testsuite/binutils-all/localize-hidden-1.d +++ /dev/null @@ -1,19 +0,0 @@ -#PROG: objcopy -#objdump: --syms -#objcopy: --localize-hidden -#name: --localize-hidden test 1 -#... -0+1200 l .*\*ABS\* 0+ \.hidden Lhidden -0+1300 l .*\*ABS\* 0+ \.internal Linternal -0+1400 l .*\*ABS\* 0+ \.protected Lprotected -0+1100 l .*\*ABS\* 0+ Ldefault -#... -0+2200 l .*\*ABS\* 0+ \.hidden Ghidden -0+2300 l .*\*ABS\* 0+ \.internal Ginternal -0+3200 l .*\*ABS\* 0+ \.hidden Whidden -0+3300 l .*\*ABS\* 0+ \.internal Winternal -0+2100 g .*\*ABS\* 0+ Gdefault -0+2400 g .*\*ABS\* 0+ \.protected Gprotected -0+3100 w.*\*ABS\* 0+ Wdefault -0+3400 w.*\*ABS\* 0+ \.protected Wprotected -#pass diff --git a/binutils/testsuite/binutils-all/localize-hidden-1.s b/binutils/testsuite/binutils-all/localize-hidden-1.s deleted file mode 100644 index bdaa69d..0000000 --- a/binutils/testsuite/binutils-all/localize-hidden-1.s +++ /dev/null @@ -1,36 +0,0 @@ - .globl Gdefault - .globl Ghidden - .globl Ginternal - .globl Gprotected - - .weak Wdefault - .weak Whidden - .weak Winternal - .weak Wprotected - - .hidden Lhidden - .hidden Ghidden - .hidden Whidden - - .internal Linternal - .internal Ginternal - .internal Winternal - - .protected Lprotected - .protected Gprotected - .protected Wprotected - - .equ Ldefault, 0x1100 - .equ Lhidden, 0x1200 - .equ Linternal, 0x1300 - .equ Lprotected, 0x1400 - - .equ Gdefault, 0x2100 - .equ Ghidden, 0x2200 - .equ Ginternal, 0x2300 - .equ Gprotected, 0x2400 - - .equ Wdefault, 0x3100 - .equ Whidden, 0x3200 - .equ Winternal, 0x3300 - .equ Wprotected, 0x3400 diff --git a/binutils/testsuite/binutils-all/localize-hidden-2.d b/binutils/testsuite/binutils-all/localize-hidden-2.d deleted file mode 100644 index ed3807a..0000000 --- a/binutils/testsuite/binutils-all/localize-hidden-2.d +++ /dev/null @@ -1,7 +0,0 @@ -#PROG: objcopy -#nm: -n -#objcopy: --localize-hidden -#name: --localize-hidden test 2 -#... -0+100 A G -#pass diff --git a/binutils/testsuite/binutils-all/localize-hidden-2.s b/binutils/testsuite/binutils-all/localize-hidden-2.s deleted file mode 100644 index d428c3a..0000000 --- a/binutils/testsuite/binutils-all/localize-hidden-2.s +++ /dev/null @@ -1,2 +0,0 @@ - .globl G - .equ G,0x100 diff --git a/binutils/testsuite/binutils-all/m68k/movem.s b/binutils/testsuite/binutils-all/m68k/movem.s deleted file mode 100644 index b3718d5..0000000 --- a/binutils/testsuite/binutils-all/m68k/movem.s +++ /dev/null @@ -1,2 +0,0 @@ - movem.l %d0-%d3,-(%sp) - movem.l %d0-%d3,(%sp) diff --git a/binutils/testsuite/binutils-all/m68k/objdump.exp b/binutils/testsuite/binutils-all/m68k/objdump.exp deleted file mode 100644 index 4f56889..0000000 --- a/binutils/testsuite/binutils-all/m68k/objdump.exp +++ /dev/null @@ -1,53 +0,0 @@ -# Copyright 2004 -# Free Software Foundation, Inc. - -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - -if {![istarget "m68*-*-*"] || [istarget "m68h*-*-*"] || [istarget "m681*-*-*"]} then { - return -} - -if {[which $OBJDUMP] == 0} then { - perror "$OBJDUMP does not exist" - return -} - -send_user "Version [binutil_version $OBJDUMP]" - -########################### -# Set up the test of movem.s -########################### - -if {![binutils_assemble $srcdir/$subdir/movem.s tmpdir/movem.o]} then { - return -} - -if [is_remote host] { - set objfile [remote_download host tmpdir/movem.o] -} else { - set objfile tmpdir/movem.o -} - -# Make sure that the movem is correctly decoded. - -set got [binutils_run $OBJDUMP "$OBJDUMPFLAGS --disassemble $objfile"] - -set want "moveml %d0-%d3,%sp@-.*moveml %d0-%d3,%sp@\[\r\n\]" - -if [regexp $want $got] then { - pass "movem test" -} else { - fail "movem test" -} diff --git a/binutils/testsuite/binutils-all/nm.exp b/binutils/testsuite/binutils-all/nm.exp deleted file mode 100644 index 865e5d3..0000000 --- a/binutils/testsuite/binutils-all/nm.exp +++ /dev/null @@ -1,123 +0,0 @@ -# Copyright 1993, 1994, 1995, 1997 Free Software Foundation, Inc. - -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - -# Please email any bugs, comments, and/or additions to this file to: -# bug-dejagnu@prep.ai.mit.edu - -# This file was written by Rob Savoye <rob@cygnus.com> -# and rewritten by Ian Lance Taylor <ian@cygnus.com> - -if ![is_remote host] { - if {[which $NM] == 0} then { - perror "$NM does not exist" - return - } -} - -send_user "Version [binutil_version $NM]" - - -if {![binutils_assemble $srcdir/$subdir/bintest.s tmpdir/bintest.o]} then { - return -} - -if [is_remote host] { - set tempfile [remote_download host tmpdir/bintest.o] -} else { - set tempfile tmpdir/bintest.o -} - -# Test nm with no arguments. - -# This test does not work correctly on ECOFF targets, because ECOFF -# stores most symbols twice, which messes up the nm output. -setup_xfail "alpha*-*-osf*" "alpha*-*-netware*" -setup_xfail "mips*-*-ultrix*" "mips*-*-ecoff*" "mips*-*-irix4*" -setup_xfail "mips*-*-riscos*" "mips*-*-sysv3*" "mips*-sony-bsd*" - -# This test does not work correctly on XCOFF targets, because XCOFF -# does not enter static symbols in the symbol table. -setup_xfail "*-*-aix*" - -set got [binutils_run $NM "$NMFLAGS $tempfile"] - -if [info exists vars] then { unset vars } -while {[regexp "(\[a-zA-Z\]) (\[a-z_\]*_symbol)(.*)" $got all type symbol rest]} { - set vars($symbol) $type - set got $rest -} - -if {![info exists vars(text_symbol)] \ - || $vars(text_symbol) != "T" \ - || ![info exists vars(data_symbol)] \ - || $vars(data_symbol) != "D" \ - || ![info exists vars(common_symbol)] \ - || $vars(common_symbol) != "C" \ - || ![info exists vars(external_symbol)] \ - || $vars(external_symbol) != "U" \ - || ![info exists vars(static_text_symbol)] \ - || $vars(static_text_symbol) != "t" \ - || ![info exists vars(static_data_symbol)] \ - || $vars(static_data_symbol) != "d"} { - fail "nm (no arguments)" -} else { - pass "nm (no arguments)" -} - -# Test nm -g - -set got [binutils_run $NM "$NMFLAGS -g $tempfile"] - -if [info exists vars] then { unset vars } -while {[regexp "(\[a-z_\]*_symbol)(.*)" $got all symbol rest]} { - set vars($symbol) 1 - set got $rest -} - -if {![info exists vars(text_symbol)] \ - || ![info exists vars(data_symbol)] \ - || ![info exists vars(common_symbol)] \ - || ![info exists vars(external_symbol)] \ - || [info exists vars(static_text_symbol)] \ - || [info exists vars(static_data_symbol)]} { - fail "nm -g" -} else { - pass "nm -g" -} - -# Test nm -P - -# This test does not work correctly on ECOFF targets, because ECOFF -# stores most symbols twice, which messes up the nm output. -setup_xfail "alpha*-*-osf*" "alpha*-*-netware*" -setup_xfail "mips*-*-ultrix*" "mips*-*-ecoff*" "mips*-*-irix4*" -setup_xfail "mips*-*-riscos*" "mips*-*-sysv3*" "mips*-sony-bsd*" - -# This test does not work correctly on XCOFF targets, because XCOFF -# does not enter static symbols in the symbol table. -setup_xfail "*-*-aix*" - -set got [binutils_run $NM "$NMFLAGS -P $tempfile"] - -set want "common_symbol C \[0\]*4.*data_symbol D \[0-9a-fA-F\]*.*external_symbol U.*static_data_symbol d \[0-9a-fA-F\]*.*static_text_symbol t \[0-9a-fA-F\]*.*text_symbol T \[0-9a-fA-F\]*" - -if [regexp $want $got] then { - pass "nm -P" -} else { - fail "nm -P" -} - -# There are certainly other tests that could be run. diff --git a/binutils/testsuite/binutils-all/objcopy.exp b/binutils/testsuite/binutils-all/objcopy.exp deleted file mode 100644 index 679eea5..0000000 --- a/binutils/testsuite/binutils-all/objcopy.exp +++ /dev/null @@ -1,735 +0,0 @@ -# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, -# 2004 -# Free Software Foundation, Inc. - -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - -# Please email any bugs, comments, and/or additions to this file to: -# bug-dejagnu@prep.ai.mit.edu - -# Written by Ian Lance Taylor <ian@cygnus.com> - -if ![is_remote host] { - if {[which $OBJCOPY] == 0} then { - perror "$OBJCOPY does not exist" - return - } -} - -send_user "Version [binutil_version $OBJCOPY]" - -if ![is_remote host] { - set tempfile tmpdir/bintest.o - set copyfile tmpdir/copy -} else { - set tempfile [remote_download host tmpdir/bintest.o] - set copyfile copy -} - -# Test that objcopy does not modify a file when copying it. - -proc objcopy_test {testname srcfile} { - global OBJCOPY - global OBJCOPYFLAGS - global srcdir - global subdir - global tempfile - global copyfile - - if {![binutils_assemble $srcdir/$subdir/${srcfile} tmpdir/bintest.o]} then { - perror "unresolved $testname" - unresolved "objcopy ($testname)" - return - } - - set got [binutils_run $OBJCOPY "$OBJCOPYFLAGS $tempfile ${copyfile}.o"] - - if ![string match "" $got] then { - fail "objcopy ($testname)" - } else { - send_log "cmp $tempfile ${copyfile}.o\n" - verbose "cmp $tempfile ${copyfile}.o" - if [is_remote host] { - set src1 tmpdir/bintest.o - set src2 tmpdir/copy.o - remote_upload host $tempfile $src1 - remote_upload host ${copyfile}.o $src2 - } else { - set src1 ${tempfile} - set src2 ${copyfile}.o - } - set status [remote_exec build cmp "${src1} ${src2}"] - set exec_output [lindex $status 1] - set exec_output [prune_warnings $exec_output] - - # On some systems the result of objcopy will not be identical. - # Usually this is just because gas isn't using bfd to write the - # files in the first place, and may order things a little - # differently. Those systems should use setup_xfail here. - - setup_xfail "h8300-*-rtems*" "h8300-*-coff" - setup_xfail "h8500-*-rtems*" "h8500-*-coff" - setup_xfail "hppa*-*-*" - setup_xfail "i960-*" - setup_xfail "m68*-*-*coff" "m68*-*-hpux*" "m68*-*-lynxos*" - setup_xfail "m68*-*-sysv*" "m68*-apple-aux*" - setup_xfail "m8*-*" - setup_xfail "or32-*-rtems*" "or32-*-coff" - setup_xfail "sh-*-coff*" "sh-*-rtems*" - setup_xfail "tic4x-*-*" "tic80-*-*" "w65-*" - - clear_xfail "hppa*64*-*-hpux*" "hppa*-*-linux*" "hppa*-*-lites*" - clear_xfail "hppa*-*-*n*bsd*" "hppa*-*-rtems*" "*-*-*elf*" - clear_xfail "m68*-*-sysv4*" - - if [string match "" $exec_output] then { - pass "objcopy ($testname)" - } else { - send_log "$exec_output\n" - verbose "$exec_output" 1 - - # On OSF/1, this succeeds with gas and fails with /bin/as. - setup_xfail "alpha*-*-osf*" - - # This fails for COFF i960-vxworks targets. - setup_xfail "i960-*-vxworks*" - - fail "objcopy ($testname)" - } - } -} - -objcopy_test "simple copy" bintest.s - -# Test generating S records. - -# We make the srec filename 8.3 compatible. Note that the header string -# matched against depends on the name of the file. Ugh. - -if [is_remote host] { - set srecfile copy.sre - set header_string S00B0000636F70792E737265C1 -} else { - set srecfile ${copyfile}.srec - set header_string S0130000746D706469722F636F70792E7372656397 -} - -set got [binutils_run $OBJCOPY "$OBJCOPYFLAGS -O srec $tempfile ${srecfile}"] - -if ![string match "" $got] then { - fail "objcopy -O srec" -} else { - if [is_remote host] { - remote_upload host ${srecfile} tmpdir/copy.srec - set srecfile tmpdir/copy.srec - } - set file [open ${srecfile} r] - - # The first S record is fixed by the file name we are using. - gets $file line - send_log "$line\n" - verbose $line - if ![regexp "$header_string.*" $line] { - send_log "bad header\n" - fail "objcopy -O srec" - } else { - while {[gets $file line] != -1 \ - && [regexp "^S\[123\]\[0-9a-fA-F\]+\[\r\n\]*$" $line]} { - send_log "$line\n" - verbose $line - set line "**EOF**" - } - send_log "$line\n" - verbose $line - if ![regexp "^S\[789\]\[0-9a-fA-F\]+\[\r\n\]*$" $line] then { - send_log "bad trailer\n" - fail "objcopy -O srec" - } else { - if {[gets $file line] != -1} then { - send_log "garbage at end\n" - send_log "$line\n" - verbose $line - fail "objcopy -O srec" - } else { - set got [binutils_run $OBJDUMP "$OBJDUMPFLAGS -f ${copyfile}.srec"] - if ![regexp "file format srec" $got] then { - send_log "objdump failed\n" - fail "objcopy -O srec" - } else { - pass "objcopy -O srec" - } - } - } - } - - close $file -} - -# Test setting and adjusting the start address. We only test this -# while generating S records, because we may not be able to set the -# start address for other object file formats, and the S record case -# is the only useful one anyhow. - -set got [binutils_run $OBJDUMP "$OBJDUMPFLAGS -f $tempfile"] -if ![regexp "start address (\[0-9a-fA-FxX\]+)" $got all origstart] then { - perror "objdump can not recognize bintest.o" - set origstart "" -} else { - set got [binutils_run $OBJCOPY "$OBJCOPYFLAGS -O srec --set-start 0x7654 $tempfile ${copyfile}.srec"] - if ![string match "" $got] then { - fail "objcopy --set-start" - } else { - set got [binutils_run $OBJDUMP "$OBJDUMPFLAGS -f ${copyfile}.srec"] - if ![regexp "file format srec.*start address (\[0-9a-fA-FxX\]+)" $got all srecstart] then { - fail "objcopy --set-start" - } else { - if {$srecstart != 0x7654} then { - send_log "$srecstart != 0x7654\n" - fail "objcopy --set-start" - } else { - pass "objcopy --set-start" - } - } - } - - set got [binutils_run $OBJCOPY "$OBJCOPYFLAGS -O srec --adjust-start 0x123 $tempfile ${copyfile}.srec"] - if ![string match "" $got] then { - fail "objcopy --adjust-start" - } else { - set got [binutils_run $OBJDUMP "$OBJDUMPFLAGS -f ${copyfile}.srec"] - if ![regexp "file format srec.*start address (\[0-9a-fA-FxX\]+)" $got all srecstart] then { - fail "objcopy --adjust-start" - } else { - if {$srecstart != $origstart + 0x123} then { - send_log "$srecstart != $origstart + 0x123\n" - fail "objcopy --adjust-start" - } else { - pass "objcopy --adjust-start" - } - } - } -} - -# Test adjusting the overall VMA, and adjusting the VMA of a -# particular section. We again only test this when generating S -# records. - -set low "" -set lowname "" - -set headers [binutils_run $OBJDUMP "$OBJDUMPFLAGS -h $tempfile"] - -set headers_regexp "\[ 0-9\]+(\[^ \]+)\[ \]*(\[0-9a-fA-F\]+)\[ \]+\[0-9a-fA-F\]+\[ \]+(\[0-9a-fA-F\]+)\[ \]+\[0-9a-fA-F\]+\[ \]+2\[*\]\[*\]\[0-9\]+(.*)" - -set got $headers -while {[regexp $headers_regexp $got all name size vma rest]} { - set vma 0x$vma - set size 0x$size - if {$size != 0} { - if {$low == "" || $vma < $low} { - set low $vma - set lowname $name - } - } - set got $rest -} - -if {$low == "" || $origstart == ""} then { - perror "objdump can not recognize bintest.o" -} else { - set got [binutils_run $OBJCOPY "$OBJCOPYFLAGS -O srec --adjust-vma 0x123 $tempfile ${copyfile}.srec"] - if ![string match "" $got] then { - fail "objcopy --adjust-vma" - } else { - set got [binutils_run $OBJDUMP "$OBJDUMPFLAGS -fh ${copyfile}.srec"] - set want "file format srec.*start address\[ \]*(\[0-9a-fA-FxX\]+).*sec1\[ \]+\[0-9a-fA-F\]+\[ \]+(\[0-9a-fA-F\]+)" - if ![regexp $want $got all start vma] then { - fail "objcopy --adjust-vma" - } else { - set vma 0x$vma - if {$vma != $low + 0x123} then { - send_log "$vma != $low + 0x123\n" - fail "objcopy --adjust-vma" - } else { - if {$start != $origstart + 0x123} then { - send_log "$start != $origstart + 0x123\n" - fail "objcopy --adjust-vma" - } else { - pass "objcopy --adjust-vma" - } - } - } - } - - set arg "" - set got $headers - while {[regexp $headers_regexp $got all name size vma rest]} { - set vma 0x$vma - if {$vma == $low} then { - set arg "$arg --adjust-section-vma $name+4" - } - set got $rest - } - - set got [binutils_run $OBJCOPY "$OBJCOPYFLAGS -O srec $arg $tempfile ${copyfile}.srec"] - if ![string match "" $got] then { - fail "objcopy --adjust-section-vma +" - } else { - set got [binutils_run $OBJDUMP "$OBJDUMPFLAGS -h ${copyfile}.srec"] - set want "file format srec.*sec1\[ \]+\[0-9a-fA-F\]+\[ \]+(\[0-9a-fA-F\]+)" - if ![regexp $want $got all vma] then { - fail "objcopy --adjust-section-vma +" - } else { - set vma 0x$vma - if {$vma != $low + 4} then { - send_log "$vma != $low + 4\n" - fail "objcopy --adjust-section-vma +" - } else { - pass "objcopy --adjust-section-vma +" - } - } - } - - regsub -all "\\+4" $arg "=[expr $low + 4]" argeq - set got [binutils_run $OBJCOPY "$OBJCOPYFLAGS -O srec $argeq $tempfile ${copyfile}.srec"] - if ![string match "" $got] then { - fail "objcopy --adjust-section-vma =" - } else { - set got [binutils_run $OBJDUMP "$OBJDUMPFLAGS -h ${copyfile}.srec"] - set want "file format srec.*sec1\[ \]+\[0-9a-fA-F\]+\[ \]+(\[0-9a-fA-F\]+)" - if ![regexp $want $got all vma] then { - fail "objcopy --adjust-section-vma =" - } else { - set vma 0x$vma - if {$vma != $low + 4} then { - send_log "$vma != $low + 4\n" - fail "objcopy --adjust-section-vma =" - } else { - pass "objcopy --adjust-section-vma =" - } - } - } -} - -# Test stripping an object. - -proc strip_test { } { - global AR - global CC - global STRIP - global STRIPFLAGS - global NM - global NMFLAGS - global srcdir - global subdir - - set test "strip" - - if { [target_compile $srcdir/$subdir/testprog.c tmpdir/testprog.o object debug] != "" } { - untested $test - return - } - - if [is_remote host] { - set archive libstrip.a - set objfile [remote_download host tmpdir/testprog.o] - remote_file host delete $archive - } else { - set archive tmpdir/libstrip.a - set objfile tmpdir/testprog.o - } - - remote_file build delete tmpdir/libstrip.a - - set exec_output [binutils_run $AR "rc $archive ${objfile}"] - if ![string match "" $exec_output] { - fail $test - return - } - - set exec_output [binutils_run $STRIP "-g $archive"] - if ![string match "" $exec_output] { - fail $test - return - } - - set exec_output [binutils_run $STRIP "$STRIPFLAGS $archive"] - if ![string match "" $exec_output] { - fail $test - return - } - - if { [target_compile $srcdir/$subdir/testprog.c tmpdir/testprog.o object debug] != "" } { - untested $test - return - } - - if [is_remote host] { - set objfile [remote_download host tmpdir/testprog.o] - } else { - set objfile tmpdir/testprog.o - } - - set exec_output [binutils_run $STRIP "$STRIPFLAGS $objfile"] - if ![string match "" $exec_output] { - fail $test - return - } - - set exec_output [binutils_run $NM "-a $NMFLAGS $objfile"] - if ![string match "*: no symbols*" $exec_output] { - fail $test - return - } - - pass $test -} - -strip_test - -# Test stripping an object file with saving a symbol - -proc strip_test_with_saving_a_symbol { } { - global CC - global STRIP - global STRIPFLAGS - global NM - global NMFLAGS - global srcdir - global subdir - - set test "strip with saving a symbol" - - if { [target_compile $srcdir/$subdir/testprog.c tmpdir/testprog.o object debug] != "" } { - untested $test - return - } - - if [is_remote host] { - set objfile [remote_download host tmpdir/testprog.o] - } else { - set objfile tmpdir/testprog.o - } - - set exec_output [binutils_run $STRIP "$STRIPFLAGS -K main -K _main $objfile"] - if ![string match "" $exec_output] { - fail $test - return - } - - set exec_output [binutils_run $NM "$NMFLAGS $objfile"] - if {![regexp {^([0-9a-fA-F]+)?[ ]+[TD] main} $exec_output] \ - && ![regexp {^([0-9a-fA-F]+)?[ ]+T _main} $exec_output]} { - fail $test - return - } - - pass $test -} - -strip_test_with_saving_a_symbol - -# Build a final executable. - -if { [istarget *-*-cygwin] || [istarget *-*-mingw32] } { - set test_prog "testprog.exe" -} else { - set test_prog "testprog" -} - -proc copy_setup { } { - global srcdir - global subdir - global gcc_gas_flag - global test_prog - - set res [build_wrapper testglue.o] - set flags { debug } - - if { $res != "" } { - lappend flags "additional_flags=[lindex $res 1]" - set add_libs "testglue.o" - } else { - set add_libs "" - } - - if { [istarget *-*-linux*] } { - foreach i $gcc_gas_flag { - set flags "additional_flags=$i $flags" - } - } - if { [target_compile "$srcdir/$subdir/testprog.c $add_libs" tmpdir/$test_prog executable $flags] != "" } { - return 2 - } - - set result [remote_load target tmpdir/$test_prog] - set status [lindex $result 0] - - if { $status != "pass" } { - perror "unresolved setup, status = $status" - return 3 - } - - return 0 -} - -# Test copying an executable. - -proc copy_executable { prog flags test1 test2 } { - global test_prog - - if [is_remote host] { - set testfile [remote_download host tmpdir/$test_prog] - set testcopy copyprog - } else { - set testfile tmpdir/$test_prog - set testcopy tmpdir/copyprog - } - remote_file host delete $testcopy - - set exec_output [binutils_run $prog "$flags $testfile $testcopy"] - - if ![string match "" $exec_output] { - fail $test1 - fail $test2 - return - } - - if [is_remote host] { - remote_upload host $testcopy tmpdir/copyprog - } - - set status [remote_exec build "cmp" "tmpdir/$test_prog tmpdir/copyprog"] - set exec_output [lindex $status 1] - - if [string match "" $exec_output] then { - pass $test1 - } else { - send_log "$exec_output\n" - verbose "$exec_output" - - # This will fail for many reasons. For example, it will most - # likely fail if a non-GNU linker is used. Therefore, we do - # not insist that it pass. If you are using an assembler and - # linker based on the same BFD as objcopy, it is worth - # investigating to see why this failure occurs. If we are - # cross compiling, we assume that a GNU linker is being used, - # and expect it to succeed. - if {[isnative]} then { - setup_xfail "*-*-*" - } - - # This also fails for mips*-*-elf targets. See elf32-mips.c - # mips_elf_sym_is_global. - setup_xfail "mips*-*-elf" - - setup_xfail "*arm*-*-coff" - setup_xfail "xscale-*-coff" - setup_xfail "arm*-*-pe" - setup_xfail "thumb*-*-coff" - setup_xfail "thumb*-*-pe" - - fail $test1 - } - - set output [remote_load target tmpdir/copyprog] - set status [lindex $output 0] - if { $status != "pass" } { - fail $test2 - } else { - pass $test2 - } -} - -# Test stripping an executable - -proc strip_executable { prog flags test } { - global NM - global NMFLAGS - - remote_download build tmpdir/copyprog tmpdir/striprog - if [is_remote host] { - set copyfile [remote_download host tmpdir/striprog] - } else { - set copyfile tmpdir/striprog - } - - set exec_output [binutils_run $prog "$flags ${copyfile}"] - if ![string match "" $exec_output] { - fail $test - return - } - - if [is_remote host] { - remote_upload host ${copyfile} tmpdir/striprog - } - - set result [remote_load target tmpdir/striprog] - set status [lindex $result 0] - if { $status != "pass" } { - fail $test - return - } - - set exec_output [binutils_run $NM "$NMFLAGS ${copyfile}"] - if ![string match "*: no symbols*" $exec_output] { - fail $test - return - } - pass $test -} - -# Test stripping an executable with saving a symbol - -proc strip_executable_with_saving_a_symbol { prog flags test } { - global NM - global NMFLAGS - - remote_download build tmpdir/copyprog tmpdir/striprog - if [is_remote host] { - set copyfile [remote_download host tmpdir/striprog] - } else { - set copyfile tmpdir/striprog - } - - set exec_output [binutils_run $prog "$flags ${copyfile}"] - if ![string match "" $exec_output] { - fail $test - return - } - - if [is_remote host] { - remote_upload host ${copyfile} tmpdir/striprog - } - - set result [remote_load target tmpdir/striprog] - set status [lindex $result 0] - if { $status != "pass" } { - fail $test - return - } - - set exec_output [binutils_run $NM "$NMFLAGS ${copyfile}"] - if { [istarget mmix-knuth-mmixware] } { - # Whenever there's a symbol in the mmo format, there's the symbol - # Main, so remove it manually from the expected output for sake of - # this test. - - # Using "" not {} to get the \n and \r translated. - regsub "^\[0-9a-fA-F\]+\[ \]+T Main\[\n\r\]+" $exec_output "" exec_output - } - - if {![regexp {^([0-9a-fA-F]+)?[ ]+[TD] main} $exec_output] \ - && ![regexp {^([0-9a-fA-F]+)?[ ]+[TD] _main} $exec_output]} { - fail $test - return - } - pass $test -} - -set test1 "simple objcopy of executable" -set test2 "run objcopy of executable" -set test3 "run stripped executable" -set test4 "run stripped executable with saving a symbol" - -switch [copy_setup] { - "1" { - # do nothing - } - "2" { - untested $test1 - untested $test2 - untested $test3 - untested $test4 - } - "3" { - unresolved $test1 - unresolved $test2 - unresolved $test3 - unresolved $test4 - } - "0" { - copy_executable "$OBJCOPY" "$OBJCOPYFLAGS" "$test1" "$test2" - strip_executable "$STRIP" "$STRIPFLAGS" "$test3" - strip_executable_with_saving_a_symbol "$STRIP" "-K main -K _main $STRIPFLAGS" "$test4" - } -} - -proc objcopy_test_readelf {testname srcfile} { - global OBJCOPY - global OBJCOPYFLAGS - global READELF - global srcdir - global subdir - - if {![binutils_assemble $srcdir/$subdir/${srcfile} tmpdir/bintest.o]} then { - unresolved "objcopy ($testname)" - return - } - - verbose -log "$OBJCOPY $OBJCOPYFLAGS tmpdir/bintest.o tmpdir/copy.o" - catch "exec $OBJCOPY $OBJCOPYFLAGS tmpdir/bintest.o tmpdir/copy.o" exec_output - if ![string match "" $exec_output] then { - fail "objcopy ($testname)" - return - } - - verbose -log "$READELF -a tmpdir/bintest.o > tmpdir/bintest.o.out" - catch "exec $READELF -a tmpdir/bintest.o > tmpdir/bintest.o.out" exec_output - set exec_output [prune_warnings $exec_output] - if ![string match "" $exec_output] then { - unresolved "objcopy ($testname)" - return - } - - verbose -log "$READELF -a tmpdir/copy.o > tmpdir/copy.o.out" - catch "exec $READELF -a tmpdir/copy.o > tmpdir/copy.o.out" exec_output - set exec_output [prune_warnings $exec_output] - if ![string match "" $exec_output] then { - unresolved "objcopy ($testname)" - return - } - - verbose -log "diff tmpdir/bintest.o.out tmpdir/copy.o.out" - catch "exec diff tmpdir/bintest.o.out tmpdir/copy.o.out" exec_output - set exec_output [prune_warnings $exec_output] - - if [string match "" $exec_output] then { - pass "objcopy ($testname)" - } else { - fail "objcopy ($testname)" - } -} - -# ia64 specific tests -if { ([istarget "ia64-*-elf*"] - || [istarget "ia64-*-linux*"]) } { - objcopy_test "ia64 link order" link-order.s -} - -# ELF specific tests -if [is_elf_format] { - objcopy_test "ELF unknown section type" unknown.s - objcopy_test_readelf "ELF group" group.s - run_dump_test "copy-1" -} - -run_dump_test "copy-2" -run_dump_test "copy-3" - -if [is_elf_format] { - run_dump_test "localize-hidden-1" -} -run_dump_test "localize-hidden-2" diff --git a/binutils/testsuite/binutils-all/objdump.exp b/binutils/testsuite/binutils-all/objdump.exp deleted file mode 100644 index 1774c85..0000000 --- a/binutils/testsuite/binutils-all/objdump.exp +++ /dev/null @@ -1,164 +0,0 @@ -# Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004 -# Free Software Foundation, Inc. - -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - -# Please email any bugs, comments, and/or additions to this file to: -# bug-dejagnu@prep.ai.mit.edu - -# This file was written by Rob Savoye <rob@cygnus.com> -# and rewritten by Ian Lance Taylor <ian@cygnus.com> - -if ![is_remote host] { - if {[which $OBJDUMP] == 0} then { - perror "$OBJDUMP does not exist" - return - } -} - -send_user "Version [binutil_version $OBJDUMP]" - -# Simple test of objdump -i - -set got [binutils_run $OBJDUMP "$OBJDUMPFLAGS -i"] - -set cpus_expected [list] -lappend cpus_expected alpha arc arm cris -lappend cpus_expected d10v d30v fr30 fr500 fr550 h8 hppa i386 i860 i960 ip2022 -lappend cpus_expected m32r m68hc11 m68hc12 m68k m88k MCore -lappend cpus_expected mips mn10200 mn10300 msp ns32k pj powerpc pyramid -lappend cpus_expected romp rs6000 s390 sh sparc -lappend cpus_expected tahoe tic54x tic80 tms320c30 tms320c4x tms320c54x v850 -lappend cpus_expected vax we32k x86-64 xscale z8k z8001 z8002 - -# Make sure the target CPU shows up in the list. -lappend cpus_expected ${target_cpu} - -# Create regexp -set cpus_regex "([join $cpus_expected | ])" - -verbose -log "CPU regex: $cpus_regex" - -set want "BFD header file version.*srec\[^\n\]*\n\[^\n\]*header \[^\n\]*endian\[^\n\]*, data \[^\n\]*endian.*$cpus_regex" - -if [regexp $want $got] then { - pass "objdump -i" -} else { - fail "objdump -i" -} - -# The remaining tests require a test file. - - -if {![binutils_assemble $srcdir/$subdir/bintest.s tmpdir/bintest.o]} then { - return -} -if [is_remote host] { - set testfile [remote_download host tmpdir/bintest.o] -} else { - set testfile tmpdir/bintest.o -} - -# Test objdump -f - -set got [binutils_run $OBJDUMP "$OBJDUMPFLAGS -f $testfile"] - -set want "$testfile:\[ \]*file format.*architecture:\[ \]*${cpus_regex}.*HAS_RELOC.*HAS_SYMS" - -if ![regexp $want $got] then { - fail "objdump -f" -} else { - pass "objdump -f" -} - -# Test objdump -h - -set got [binutils_run $OBJDUMP "$OBJDUMPFLAGS -h $testfile"] - -set want "$testfile:\[ \]*file format.*Sections.*\[0-9\]+\[ \]+\[^ \]*(text|TEXT|\\\$CODE\\\$)\[^ \]*\[ \]*(\[0-9a-fA-F\]+).*\[0-9\]+\[ \]+\[^ \]*(\\.data|DATA)\[^ \]*\[ \]*(\[0-9a-fA-F\]+)" - -if ![regexp $want $got all text_name text_size data_name data_size] then { - fail "objdump -h" -} else { - verbose "text name is $text_name size is $text_size" - verbose "data name is $data_name size is $data_size" - set ets 8 - set eds 4 - # The [ti]c4x target has the property sizeof(char)=sizeof(long)=1 - if [istarget *c4x*-*-*] then { - set ets 2 - set eds 1 - } - # c54x section sizes are in bytes, not octets; adjust accordingly - if [istarget *c54x*-*-*] then { - set ets 4 - set eds 2 - } - if {[expr "0x$text_size"] < $ets || [expr "0x$data_size"] < $eds} then { - send_log "sizes too small\n" - fail "objdump -h" - } else { - pass "objdump -h" - } -} - -# Test objdump -t - -set got [binutils_run $OBJDUMP "$OBJDUMPFLAGS -t $testfile"] - -if [info exists vars] then { unset vars } -while {[regexp "(\[a-z\]*_symbol)(.*)" $got all symbol rest]} { - set vars($symbol) 1 - set got $rest -} - -if {![info exists vars(text_symbol)] \ - || ![info exists vars(data_symbol)] \ - || ![info exists vars(common_symbol)] \ - || ![info exists vars(external_symbol)]} then { - fail "objdump -t" -} else { - pass "objdump -t" -} - -# Test objdump -r - -set got [binutils_run $OBJDUMP "$OBJDUMPFLAGS -r $testfile"] - -set want "$testfile:\[ \]*file format.*RELOCATION RECORDS FOR \\\[\[^\]\]*(text|TEXT|\\\$CODE\\\$)\[^\]\]*\\\].*external_symbol" - -if [regexp $want $got] then { - pass "objdump -r" -} else { - fail "objdump -r" -} - -# Test objdump -s - -set got [binutils_run $OBJDUMP "$OBJDUMPFLAGS -s $testfile"] - -set want "$testfile:\[ \]*file format.*Contents.*(text|TEXT|\\\$CODE\\\$)\[^0-9\]*\[ \]*\[0-9a-fA-F\]*\[ \]*(00000001|01000000|00000100).*Contents.*(data|DATA)\[^0-9\]*\[ \]*\[0-9a-fA-F\]*\[ \]*(00000002|02000000|00000200)" - -if [regexp $want $got] then { - pass "objdump -s" -} else { - fail "objdump -s" -} - -# Options which are not tested: -a -d -D -R -T -x -l --stabs -# I don't see any generic way to test any of these other than -a. -# Tests could be written for specific targets, and that should be done -# if specific problems are found. diff --git a/binutils/testsuite/binutils-all/readelf.exp b/binutils/testsuite/binutils-all/readelf.exp deleted file mode 100644 index 8815fee..0000000 --- a/binutils/testsuite/binutils-all/readelf.exp +++ /dev/null @@ -1,343 +0,0 @@ -# Copyright 1999, 2000, 2001, 2003, 2004 Free Software Foundation, Inc. - -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - -# Please email any bugs, comments, and/or additions to this file to: -# bug-dejagnu@prep.ai.mit.edu - -# Written by Nick Clifton <nickc@cygnus.com> -# Based on scripts written by Ian Lance Taylor <ian@cygnus.com> -# and Ken Raeburn <raeburn@cygnus.com>. - -# First some helpful procedures, then the tests themselves - -# Return the contents of the filename given -proc file_contents { filename } { - set file [open $filename r] - set contents [read $file] - close $file - return $contents -} - -# regexp_diff, based on simple_diff taken from ld test suite -# compares two files line-by-line -# file1 contains strings, file2 contains regexps and #-comments -# blank lines are ignored in either file -# returns non-zero if differences exist -# -proc regexp_diff { file_1 file_2 } { - - set eof -1 - set end_1 0 - set end_2 0 - set differences 0 - set diff_pass 0 - - if [file exists $file_1] then { - set file_a [open $file_1 r] - } else { - warning "$file_1 doesn't exist" - return 1 - } - - if [file exists $file_2] then { - set file_b [open $file_2 r] - } else { - fail "$file_2 doesn't exist" - close $file_a - return 1 - } - - verbose " Regexp-diff'ing: $file_1 $file_2" 2 - - while { 1 } { - set line_a "" - set line_b "" - while { [string length $line_a] == 0 } { - if { [gets $file_a line_a] == $eof } { - set end_1 1 - break - } - } - while { [string length $line_b] == 0 || [string match "#*" $line_b] } { - if [ string match "#pass" $line_b ] { - set end_2 1 - set diff_pass 1 - break - } elseif [ string match "#..." $line_b ] { - if { [gets $file_b line_b] == $eof } { - set end_2 1 - break - } - verbose "looking for \"^$line_b$\"" 3 - while { ![regexp "^$line_b$" "$line_a"] } { - verbose "skipping \"$line_a\"" 3 - if { [gets $file_a line_a] == $eof } { - set end_1 1 - break - } - } - break - } - if { [gets $file_b line_b] == $eof } { - set end_2 1 - break - } - } - - if { $diff_pass } { - break - } elseif { $end_1 && $end_2 } { - break - } elseif { $end_1 } { - send_log "extra regexps in $file_2 starting with \"^$line_b$\"\nEOF from $file_1\n" - verbose "extra regexps in $file_2 starting with \"^$line_b$\"\nEOF from $file_1" 3 - set differences 1 - break - } elseif { $end_2 } { - send_log "extra lines in $file_1 starting with \"^$line_a$\"\nEOF from $file_2\n" - verbose "extra lines in $file_1 starting with \"^$line_a$\"\nEOF from $file_2\n" 3 - set differences 1 - break - } else { - verbose "regexp \"^$line_b$\"\nline \"$line_a\"" 3 - if ![regexp "^$line_b$" "$line_a"] { - send_log "regexp_diff match failure\n" - send_log "regexp \"^$line_b$\"\nline \"$line_a\"\n" - set differences 1 - } - } - } - - if { $differences == 0 && !$diff_pass && [eof $file_a] != [eof $file_b] } { - send_log "$file_1 and $file_2 are different lengths\n" - verbose "$file_1 and $file_2 are different lengths" 3 - set differences 1 - } - - close $file_a - close $file_b - - return $differences -} - -# Find out the size by reading the output of the EI_CLASS field. -# Similar to the test for readelf -h, but we're just looking for the -# EI_CLASS line here. -proc readelf_find_size { binary_file } { - global READELF - global READELFFLAGS - global readelf_size - - set readelf_size "" - set testname "finding out ELF size with readelf -h" - catch "exec $READELF $READELFFLAGS -h $binary_file > readelf.out" got - - if ![string match "" $got] then { - send_log $got - fail $testname - return - } - - if { ! [regexp "\n\[ \]*Class:\[ \]*ELF(\[0-9\]+)\n" \ - [file_contents readelf.out] nil readelf_size] } { - verbose -log "EI_CLASS field not found in output" - verbose -log "output is \n[file_contents readelf.out]" - fail $testname - return - } else { - verbose -log "ELF size is $readelf_size" - } - - pass $testname -} - -# Run an individual readelf test. -# Basically readelf is run on the binary_file with the given options. -# Readelf's output is captured and then compared against the contents -# of the regexp_file-readelf_size if it exists, else regexp_file. - -proc readelf_test { options binary_file regexp_file xfails } { - - global READELF - global READELFFLAGS - global readelf_size - global srcdir - global subdir - - send_log "exec $READELF $READELFFLAGS $options $binary_file > readelf.out\n" - catch "exec $READELF $READELFFLAGS $options $binary_file > readelf.out" got - - foreach xfail $xfails { - setup_xfail $xfail - } - - if ![string match "" $got] then { - fail "readelf $options (reason: unexpected output)" - send_log $got - send_log "\n" - return - } - - set target_machine "" - if [istarget "mips*-*-*"] then { - if { [istarget "mips*-*-*linux*"] } then { - set target_machine tmips - } else { - set target_machine mips - } - } - - if { $target_machine != "" && [file exists $srcdir/$subdir/$regexp_file-$readelf_size-$target_machine] } then { - set regexp_file $regexp_file-$readelf_size-$target_machine - } elseif { $target_machine != "" && [file exists $srcdir/$subdir/$regexp_file-$target_machine] } then { - set regexp_file $regexp_file-$target_machine - } elseif { [file exists $srcdir/$subdir/$regexp_file-$readelf_size] } then { - set regexp_file $regexp_file-$readelf_size - } - - if { [regexp_diff readelf.out $srcdir/$subdir/$regexp_file] } then { - fail "readelf $options" - verbose "output is \n[file_contents readelf.out]" 2 - return - } - - pass "readelf $options" -} - -# Simple proc to skip certain expected warning messages. - -proc prune_readelf_wi_warnings { text } { - regsub -all "(^|\n)(.*Skipping unexpected symbol type.*)" $text "\\1" text - return $text -} - -# Testing the "readelf -wi" option is difficult because there -# is no guaranteed order to the output, and because some ports -# will use indirect string references, whilst others will use -# direct references. So instead of having an expected output -# file, like the other readelf tests, we grep for strings that -# really ought to be there. - -proc readelf_wi_test {} { - global READELF - global READELFFLAGS - global srcdir - global subdir - - # Compile the second test file. - if { [target_compile $srcdir/$subdir/testprog.c tmpdir/testprog.o object debug] != "" } { - verbose "Unable to compile test file." - untested "readelf -wi" - return - } - - # Download it. - set tempfile [remote_download host tmpdir/testprog.o] - - # Run "readelf -wi" on it. - send_log "exec $READELF $READELFFLAGS -wi $tempfile > readelf.out\n" - catch "exec $READELF $READELFFLAGS -wi $tempfile > readelf.out" got - - # Upload the results. - set output [remote_upload host readelf.out] - - file_on_host delete $tempfile - - # Strip any superflous warnings. - set got [prune_readelf_wi_warnings $got] - - if ![string match "" $got] then { - fail "readelf $options (reason: unexpected output)" - send_log $got - send_log "\n" - return - } - - if ![file size $output] then { - # If the output file is empty, then this target does not - # generate dwarf2 output. This is not a failure. - verbose "No output from 'readelf -wi'" - untested "readelf -wi" - return - } - - # Search for strings that should be in the output. - set sought { - ".*DW_TAG_compile_unit.*" - ".*DW_TAG_subprogram.*" - ".*DW_TAG_base_type.*" - ".*DW_AT_producer.*(GNU C|indirect string).*" - ".*DW_AT_language.*ANSI C.*" - ".*DW_AT_name.*(testprog.c|indirect string).*" - ".*DW_AT_name.*fn.*" - ".*DW_AT_name.*(main|indirect string).*" - ".*\(DW_OP_addr: 0\).*" - } - - foreach looked_for $sought { - set lines [grep $output $looked_for] - if ![llength $lines] then { - fail "readelf -wi: missing: $looked_for" - send_log readelf.out - return - } - } - - file_on_host delete $output - - # All done. - pass "readelf -wi" -} - - -# Exclude non-ELF targets. -if ![is_elf_format] { - verbose "$READELF is only intended for ELF targets" 2 - return -} - -if ![is_remote host] { - if {[which $READELF] == 0} then { - perror "$READELF does not exist" - return - } -} - -send_user "Version [binutil_version $READELF]" - -# Assemble the test file. -if {![binutils_assemble $srcdir/$subdir/bintest.s tmpdir/bintest.o]} then { - perror "unresolved 1" - unresolved "readelf - failed to assemble" - return -} - -if ![is_remote host] { - set tempfile tmpdir/bintest.o -} else { - set tempfile [remote_download host tmpdir/bintest.o] -} - -# First, determine the size, so specific output matchers can be used. -readelf_find_size $tempfile - -# Run the tests. -readelf_test -h $tempfile readelf.h {} -readelf_test -S $tempfile readelf.s {} -readelf_test -s $tempfile readelf.ss {} -readelf_test -r $tempfile readelf.r {} - -readelf_wi_test diff --git a/binutils/testsuite/binutils-all/readelf.h b/binutils/testsuite/binutils-all/readelf.h deleted file mode 100644 index 01103fb..0000000 --- a/binutils/testsuite/binutils-all/readelf.h +++ /dev/null @@ -1,20 +0,0 @@ -ELF Header: - Magic: 7f 45 4c 46 0[12] 0[12] 01 .. .. 00 00 00 00 00 00 00 - Class: ELF[36][24] - Data: 2's complement,.* endian - Version: 1 \(current\) - OS/ABI: .* - ABI Version: .* - Type: REL \(Relocatable file\) - Machine: .* - Version: 0x1 - Entry point address: 0x0 - Start of program headers: 0 \(bytes into file\) - Start of section headers: .* \(bytes into file\) - Flags: .* - Size of this header: .* \(bytes\) - Size of program headers: 0 \(bytes\) - Number of program headers: 0 - Size of section headers: .* \(bytes\) - Number of section headers: .* - Section header string table index: .* diff --git a/binutils/testsuite/binutils-all/readelf.r b/binutils/testsuite/binutils-all/readelf.r deleted file mode 100644 index 689049f..0000000 --- a/binutils/testsuite/binutils-all/readelf.r +++ /dev/null @@ -1,4 +0,0 @@ - -Relocation section '.rel.*text' at offset 0x.* contains 1 entries: - Offset Info Type Sym.Value Sym. Name.* -00000004 [0-9A-Fa-f]+ *R_.*00000000 external_symbol.* diff --git a/binutils/testsuite/binutils-all/readelf.r-64 b/binutils/testsuite/binutils-all/readelf.r-64 deleted file mode 100644 index 3e3b0a4..0000000 --- a/binutils/testsuite/binutils-all/readelf.r-64 +++ /dev/null @@ -1,4 +0,0 @@ - -Relocation section '.rel.*text' at offset 0x.* contains 1 entries: - Offset Info Type Sym. Value Sym. Name.* -0+04 [0-9A-Fa-f]+ *R_.*0+00 external_symbol.* diff --git a/binutils/testsuite/binutils-all/readelf.s b/binutils/testsuite/binutils-all/readelf.s deleted file mode 100644 index 985a48b..0000000 --- a/binutils/testsuite/binutils-all/readelf.s +++ /dev/null @@ -1,24 +0,0 @@ -There are .* section headers, starting at offset .*: - -Section Headers: - \[Nr\] Name Type Addr Off Size ES Flg Lk Inf Al - \[ 0\] NULL 00000000 000000 000000 00 +0 +0 +0 -# On the normal MIPS systems, sections must be aligned to 16 byte -# boundaries. On IA64, text sections are aligned to 16 byte boundaries. - \[ 1\] .text PROGBITS 00000000 0000(34|40) 0000(08|10) 00 +AX +0 +0 +(.|..) - \[ 2\] .rel.+text +REL. +0+ 0+.* 00000. 0. +. +1 +4 -# MIPS targets put .rela.text here. -#... - \[ .\] .data PROGBITS 00000000 0000(3c|48|50) 0000(04|10) 00 WA +0 +0 +(.|..) - \[ .\] .bss NOBITS 00000000 0000(40|4c|60) 000000 00 WA +0 +0 +(.|..) -# MIPS targets put .reginfo and .mdebug here. -# v850 targets put .call_table_data and .call_table_text here. -#... - \[ .\] .shstrtab STRTAB 00000000 0+.* 0+.* 00 +0 +0 +. - \[ .\] .symtab SYMTAB 00000000 0+.* 0+.* 10 +.. +. +4 - \[..\] .strtab STRTAB 00000000 0+.* 0+.* 00 +0 +0 +1 -Key to Flags: - W \(write\), A \(alloc\), X \(execute\), M \(merge\), S \(strings\) - I \(info\), L \(link order\), G \(group\), x \(unknown\) - O \(extra OS processing required\) o \(OS specific\), p \(processor specific\) - diff --git a/binutils/testsuite/binutils-all/readelf.s-64 b/binutils/testsuite/binutils-all/readelf.s-64 deleted file mode 100644 index 5496b41..0000000 --- a/binutils/testsuite/binutils-all/readelf.s-64 +++ /dev/null @@ -1,25 +0,0 @@ -There are .* section headers, starting at offset .*: - -Section Headers: - \[Nr\] Name Type Address Offset - Size EntSize Flags Link Info Align - \[ 0\] NULL 0000000000000000 00000000 - 0000000000000000 0000000000000000 0 0 0 - \[ 1\] .text PROGBITS 0000000000000000 00000040 - 00000000000000.. 0000000000000000 AX 0 0 .* - \[ 2\] .rel.+text +REL. +0+ 0+.* - 000000000000001. 000000000000001. . 1 8 - \[ 3\] .data PROGBITS 0000000000000000 000000(48|50) - 000000000000000[48] 0000000000000000 WA 0 0 .* - \[ 4\] .bss NOBITS 0000000000000000 000000(4c|50|54|58) - 0000000000000000 0000000000000000 WA 0 0 .* - \[ 5\] .shstrtab STRTAB 0000000000000000 000000(4c|50|54|58) - 00000000000000.. 0000000000000000 0 0 .* - \[ 6\] .symtab SYMTAB 0000000000000000 0+.* - 0+.* 0000000000000018 7 6 8 - \[ 7\] .strtab STRTAB 0000000000000000 0+.* - 0+.* 0000000000000000 0 0 1 -Key to Flags: - W \(write\), A \(alloc\), X \(execute\), M \(merge\), S \(strings\) - I \(info\), L \(link order\), G \(group\), x \(unknown\) - O \(extra OS processing required\) o \(OS specific\), p \(processor specific\) diff --git a/binutils/testsuite/binutils-all/readelf.ss b/binutils/testsuite/binutils-all/readelf.ss deleted file mode 100644 index 7daee1b..0000000 --- a/binutils/testsuite/binutils-all/readelf.ss +++ /dev/null @@ -1,18 +0,0 @@ - -Symbol table '.symtab' contains .* entries: - Num: Value Size Type Bind Vis Ndx Name - 0: 00000000 0 NOTYPE LOCAL DEFAULT UND - 1: 00000000 0 SECTION LOCAL DEFAULT 1 - 2: 00000000 0 SECTION LOCAL DEFAULT [34] - 3: 00000000 0 SECTION LOCAL DEFAULT [45] - 4: 00000000 0 NOTYPE LOCAL DEFAULT 1 static_text_symbol -# arm-elf targets add the $d mapping symbol here... -#... - .: 00000000 0 NOTYPE LOCAL DEFAULT [34] static_data_symbol -# v850 targets include extra SECTION symbols here for the .call_table_data -# and .call_table_text sections. -#... -.* .: 00000000 0 NOTYPE GLOBAL DEFAULT 1 text_symbol - ..: 00000000 0 NOTYPE GLOBAL DEFAULT UND external_symbol - ..: 00000000 0 NOTYPE GLOBAL DEFAULT [34] data_symbol - ..: 00000004 4 OBJECT GLOBAL DEFAULT ( COM|ANSI_COM) common_symbol diff --git a/binutils/testsuite/binutils-all/readelf.ss-64 b/binutils/testsuite/binutils-all/readelf.ss-64 deleted file mode 100644 index b29276d..0000000 --- a/binutils/testsuite/binutils-all/readelf.ss-64 +++ /dev/null @@ -1,13 +0,0 @@ - -Symbol table '.symtab' contains .* entries: - Num: Value Size Type Bind Vis Ndx Name - 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND - 1: 0000000000000000 0 SECTION LOCAL DEFAULT 1 - 2: 0000000000000000 0 SECTION LOCAL DEFAULT 3 - 3: 0000000000000000 0 SECTION LOCAL DEFAULT 4 - 4: 0000000000000000 0 NOTYPE LOCAL DEFAULT 1 static_text_symbol - 5: 0000000000000000 0 NOTYPE LOCAL DEFAULT 3 static_data_symbol -.* .: 0000000000000000 0 NOTYPE GLOBAL DEFAULT 1 text_symbol - .: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND external_symbol - .: 0000000000000000 0 NOTYPE GLOBAL DEFAULT 3 data_symbol - .: 0000000000000004 4 OBJECT GLOBAL DEFAULT COM common_symbol diff --git a/binutils/testsuite/binutils-all/readelf.ss-mips b/binutils/testsuite/binutils-all/readelf.ss-mips deleted file mode 100644 index 073ade0..0000000 --- a/binutils/testsuite/binutils-all/readelf.ss-mips +++ /dev/null @@ -1,15 +0,0 @@ - -Symbol table '.symtab' contains 12 entries: - Num: Value Size Type Bind Vis Ndx Name - 0: 00000000 0 NOTYPE LOCAL DEFAULT UND - 1: 00000000 0 SECTION LOCAL DEFAULT . (|\.text) - 2: 00000000 0 SECTION LOCAL DEFAULT . (|\.data) - 3: 00000000 0 SECTION LOCAL DEFAULT . (|\.bss) - 4: 00000000 0 SECTION LOCAL DEFAULT . (|\.reginfo) - 5: 00000000 0 SECTION LOCAL DEFAULT . (|\.pdr) - 6: 00000000 0 OBJECT GLOBAL DEFAULT . text_symbol - 7: 00000000 0 NOTYPE LOCAL DEFAULT . static_text_symbol - 8: 00000000 0 NOTYPE GLOBAL DEFAULT UND external_symbol - 9: 00000000 0 OBJECT GLOBAL DEFAULT . data_symbol - 10: 00000000 0 NOTYPE LOCAL DEFAULT . static_data_symbol - 11: 00000004 4 OBJECT GLOBAL DEFAULT (PRC|COM) common_symbol diff --git a/binutils/testsuite/binutils-all/readelf.ss-tmips b/binutils/testsuite/binutils-all/readelf.ss-tmips deleted file mode 100644 index 4f2fba2..0000000 --- a/binutils/testsuite/binutils-all/readelf.ss-tmips +++ /dev/null @@ -1,15 +0,0 @@ - -Symbol table '.symtab' contains 12 entries: - Num: Value Size Type Bind Vis Ndx Name - 0: 00000000 0 NOTYPE LOCAL DEFAULT UND - 1: 00000000 0 SECTION LOCAL DEFAULT 1 - 2: 00000000 0 SECTION LOCAL DEFAULT 3 - 3: 00000000 0 SECTION LOCAL DEFAULT 4 - 4: 00000000 0 NOTYPE LOCAL DEFAULT 1 static_text_symbol - 5: 00000000 0 NOTYPE LOCAL DEFAULT 3 static_data_symbol - 6: 00000000 0 SECTION LOCAL DEFAULT 5 - 7: 00000000 0 SECTION LOCAL DEFAULT 6 - 8: 00000000 0 OBJECT GLOBAL DEFAULT 1 text_symbol - 9: 00000000 0 NOTYPE GLOBAL DEFAULT UND external_symbol - 10: 00000000 0 OBJECT GLOBAL DEFAULT 3 data_symbol - 11: 00000004 4 OBJECT GLOBAL DEFAULT (PRC|COM) common_symbol diff --git a/binutils/testsuite/binutils-all/size.exp b/binutils/testsuite/binutils-all/size.exp deleted file mode 100644 index de5c9b3..0000000 --- a/binutils/testsuite/binutils-all/size.exp +++ /dev/null @@ -1,81 +0,0 @@ -# Copyright 1993, 1994, 1995, 1997, 1998 Free Software Foundation, Inc. - -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - -# Please email any bugs, comments, and/or additions to this file to: -# bug-dejagnu@prep.ai.mit.edu - -# This file was written by Rob Savoye <rob@cygnus.com> -# and rewritten by Ian Lance Taylor <ian@cygnus.com> - -if ![is_remote host] { - if {[which $SIZE] == 0} then { - perror "$SIZE does not exist" - return - } -} - -send_user "Version [binutil_version $SIZE]" - - -if {![binutils_assemble $srcdir/$subdir/bintest.s tmpdir/bintest.o]} then { - return -} - -if [is_remote host] { - set testfile [remote_download host tmpdir/bintest.o] -} else { - set testfile tmpdir/bintest.o -} - -set dec "\[0-9\]+" -set hex "\[0-9a-fA-F\]+" - -# Test size with no arguments - -set got [binutils_run $SIZE "$SIZEFLAGS $testfile"] - -set want "($dec)\[ \]+($dec)\[ \]+($dec)\[ \]+($dec)\[ \]+($hex)\[ \]+${testfile}" - -if ![regexp $want $got all text data bss dtot hextot] then { - fail "size (no arguments)" -} else { - if {$text < 8 || $data < 4} then { - # The z80-coff port defaults to a "binary" like output - # file format which does not include a data section. - setup_xfail "z80-*-coff" - fail "size (no arguments)" - } else { - pass "size (no arguments)" - } -} - -# Test size -A - -set got [binutils_run $SIZE "$SIZEFLAGS -A ${testfile}"] - -set want "${testfile}.*(text|TEXT)\[^\n\r\]*\[ \]($dec)\[ \]+$dec.*(\\.data|DATA)\[^\n\r\]*\[ \]($dec)\[ \]+$dec" - -if ![regexp $want $got all textname textsize dataname datasize] then { - fail "size -A" -} else { - verbose "text size: $textsize" - verbose "data size: $datasize" - if {$textsize < 8 || $datasize < 4} then { - fail "size -A" - } else { - pass "size -A" - } -} diff --git a/binutils/testsuite/binutils-all/testprog.c b/binutils/testsuite/binutils-all/testprog.c deleted file mode 100644 index 6ead98e..0000000 --- a/binutils/testsuite/binutils-all/testprog.c +++ /dev/null @@ -1,31 +0,0 @@ -/* This program is used to test objcopy, readelf and strip. */ - -extern int strcmp (char *, const char *); -extern int printf (const char *, ...); - -int common; -int global = 1; -static int local = 2; -static char string[] = "string"; - -int -fn (void) -{ - return 3; -} - -int -main (void) -{ - if (common != 0 - || global != 1 - || local != 2 - || strcmp (string, "string") != 0) - { - printf ("failed\n"); - return 1; - } - - printf ("ok\n"); - return 0; -} diff --git a/binutils/testsuite/binutils-all/unknown.s b/binutils/testsuite/binutils-all/unknown.s deleted file mode 100644 index e1b53c0..0000000 --- a/binutils/testsuite/binutils-all/unknown.s +++ /dev/null @@ -1,4 +0,0 @@ - .section .foo,"a","note" - .global _start -_start: - .long 0 diff --git a/binutils/testsuite/binutils-all/vax/entrymask.s b/binutils/testsuite/binutils-all/vax/entrymask.s deleted file mode 100644 index 18f9010..0000000 --- a/binutils/testsuite/binutils-all/vax/entrymask.s +++ /dev/null @@ -1,11 +0,0 @@ -.text - -.global label1 -label1: - .word 0x0110 - -.global label2 -.type label2,@function -label2: - .word 0x0224 - diff --git a/binutils/testsuite/binutils-all/vax/objdump.exp b/binutils/testsuite/binutils-all/vax/objdump.exp deleted file mode 100644 index ada84be..0000000 --- a/binutils/testsuite/binutils-all/vax/objdump.exp +++ /dev/null @@ -1,64 +0,0 @@ -# -# Copyright 1993, 1994, 1995, 1997, 1999, 2000, 2002, 2005 -# Free Software Foundation, Inc. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. -# - -# -# This file was written by Jan-Benedict Glaw <jbglaw@lug-owl.de>. It's goal -# is to check the VAX-specific support of the -M entry:0xf00 switch, which -# allows to force function entry masks at given addresses. -# - -if ![istarget vax*-*-*] then { - return -} - -if {[which $OBJDUMP] == 0} then { - perror "$OBJDUMP does not exist" - return -} - -send_user "Version [binutil_version $OBJDUMP]" - -if {![binutils_assemble $srcdir/$subdir/entrymask.s tmpdir/entrymask.o]} then { - return -} - -if [is_remote host] { - set objfile [remote_download host tmpdir/entrymask.o] -} else { - set objfile tmpdir/entrymask.o -} - -# -# We check both function entry points. The second one at offset 2 will -# show up automatically on ELF targets, but needs to be set on a.out -# targets. -# -set got [binutils_run $OBJDUMP "$OBJDUMPFLAGS -d -M entry:0x0 -M entry:2 $objfile"] -set want1 "\[ \]+0:\[ \]+10 01\[ \]+\\.word 0x0110.\*r8 r4" -set want2 "\[ \]+2:\[ \]+24 02\[ \]+\\.word 0x0224.\*r9 r5 r2" -if [regexp $want1 $got] then { - pass "entrymask test 1" -} else { - fail "entrymask test 1" -} -if [regexp $want2 $got] then { - pass "entrymask test 2" -} else { - fail "entrymask test 2" -} diff --git a/binutils/testsuite/binutils-all/windres/README b/binutils/testsuite/binutils-all/windres/README deleted file mode 100644 index f990349..0000000 --- a/binutils/testsuite/binutils-all/windres/README +++ /dev/null @@ -1,26 +0,0 @@ -Instructions for adding tests: - -The files *.rc are hand-edited or copied from elsewhere. - -The script msupdate is used to generate the *.rsd files, which are -dumps of the RES formatted output of MSVC's RC utility. - -Within the *.rc file, the first N lines beginning with a special -comment can control the test. Comments are // /* or # (// is -recommended, as both rc and windres support those). Each line -contains one command: - - // parse-only - // xfail *-*-* - -parse-only must preceed any xfail commands, and indicates that a -comparison with the *.rsd file will not happen. xfail indicates when -a failure is expected. This should only be used for when you are -adding a new test that is known to fail because of a bug in windres, -and it should be removed when the bug is fixed. - -You can use pfail or cfail instead of xfail to indicate that only the -parsing or comparing should be xfailed. - -The windres tests only run for ix86 targets, because the -MSVC-generated *.rsd files are generated for that. diff --git a/binutils/testsuite/binutils-all/windres/bmp1.bmp b/binutils/testsuite/binutils-all/windres/bmp1.bmp Binary files differdeleted file mode 100644 index 208a8aa..0000000 --- a/binutils/testsuite/binutils-all/windres/bmp1.bmp +++ /dev/null diff --git a/binutils/testsuite/binutils-all/windres/bmpalign.rc b/binutils/testsuite/binutils-all/windres/bmpalign.rc deleted file mode 100644 index 7cb5583..0000000 --- a/binutils/testsuite/binutils-all/windres/bmpalign.rc +++ /dev/null @@ -1,9 +0,0 @@ -LANGUAGE 0, 0 - -A BITMAP MOVEABLE PURE DISCARDABLE "bmp1.bmp" - -AB BITMAP MOVEABLE PURE DISCARDABLE "bmp1.bmp" - -ABC BITMAP MOVEABLE PURE DISCARDABLE "bmp1.bmp" - -ABCD BITMAP MOVEABLE PURE DISCARDABLE "bmp1.bmp" diff --git a/binutils/testsuite/binutils-all/windres/bmpalign.rsd b/binutils/testsuite/binutils-all/windres/bmpalign.rsd deleted file mode 100644 index 3ee5396..0000000 --- a/binutils/testsuite/binutils-all/windres/bmpalign.rsd +++ /dev/null @@ -1,38 +0,0 @@ - 0000 00000000 20000000 ffff0000 ffff0000 .... ........... - 0010 00000000 00000000 00000000 00000000 ................ - 0020 6c000000 20000000 ffff0200 41000000 l... .......A... - 0030 00000000 30100000 00000000 00000000 ....0........... - 0040 28000000 01000000 01000000 01000400 (............... - 0050 00000000 04000000 00000000 00000000 ................ - 0060 00000000 00000000 00000000 00008000 ................ - 0070 00800000 00808000 80000000 80008000 ................ - 0080 80800000 c0c0c000 80808000 0000ff00 ................ - 0090 00ff0000 00ffff00 ff000000 ff00ff00 ................ - 00a0 ffff0000 ffffff00 90000000 6c000000 ............l... - 00b0 24000000 ffff0200 41004200 00000000 $.......A.B..... - 00c0 00000000 30100000 00000000 00000000 ....0........... - 00d0 28000000 01000000 01000000 01000400 (............... - 00e0 00000000 04000000 00000000 00000000 ................ - 00f0 00000000 00000000 00000000 00008000 ................ - 0100 00800000 00808000 80000000 80008000 ................ - 0110 80800000 c0c0c000 80808000 0000ff00 ................ - 0120 00ff0000 00ffff00 ff000000 ff00ff00 ................ - 0130 ffff0000 ffffff00 90000000 6c000000 ............l... - 0140 24000000 ffff0200 41004200 43000000 $.......A.B.C... - 0150 00000000 30100000 00000000 00000000 ....0........... - 0160 28000000 01000000 01000000 01000400 (............... - 0170 00000000 04000000 00000000 00000000 ................ - 0180 00000000 00000000 00000000 00008000 ................ - 0190 00800000 00808000 80000000 80008000 ................ - 01a0 80800000 c0c0c000 80808000 0000ff00 ................ - 01b0 00ff0000 00ffff00 ff000000 ff00ff00 ................ - 01c0 ffff0000 ffffff00 90000000 6c000000 ............l... - 01d0 28000000 ffff0200 41004200 43004400 (.......A.B.C.D. - 01e0 00000000 00000000 30100000 00000000 ........0....... - 01f0 00000000 28000000 01000000 01000000 ....(........... - 0200 01000400 00000000 04000000 00000000 ................ - 0210 00000000 00000000 00000000 00000000 ................ - 0220 00008000 00800000 00808000 80000000 ................ - 0230 80008000 80800000 c0c0c000 80808000 ................ - 0240 0000ff00 00ff0000 00ffff00 ff000000 ................ - 0250 ff00ff00 ffff0000 ffffff00 90000000 ................ diff --git a/binutils/testsuite/binutils-all/windres/capstyle.rc b/binutils/testsuite/binutils-all/windres/capstyle.rc deleted file mode 100644 index 238d21e..0000000 --- a/binutils/testsuite/binutils-all/windres/capstyle.rc +++ /dev/null @@ -1,5 +0,0 @@ -101 DIALOG DISCARDABLE 0, 0, 186, 95 -CAPTION "" -BEGIN - DEFPUSHBUTTON "OK",1,129,7,50,14 -END diff --git a/binutils/testsuite/binutils-all/windres/capstyle.rsd b/binutils/testsuite/binutils-all/windres/capstyle.rsd deleted file mode 100644 index fef8116..0000000 --- a/binutils/testsuite/binutils-all/windres/capstyle.rsd +++ /dev/null @@ -1,8 +0,0 @@ - 0000 00000000 20000000 ffff0000 ffff0000 .... ........... - 0010 00000000 00000000 00000000 00000000 ................ - 0020 36000000 20000000 ffff0500 ffff6500 6... .........e. - 0030 00000000 30100904 00000000 00000000 ....0........... - 0040 0000c880 00000000 01000000 0000ba00 ................ - 0050 5f000000 00000000 01000150 00000000 _..........P.... - 0060 81000700 32000e00 0100ffff 80004f00 ....2.........O. - 0070 4b000000 00000000 K....... diff --git a/binutils/testsuite/binutils-all/windres/checkbox.rc b/binutils/testsuite/binutils-all/windres/checkbox.rc deleted file mode 100644 index a941d6a..0000000 --- a/binutils/testsuite/binutils-all/windres/checkbox.rc +++ /dev/null @@ -1,5 +0,0 @@ -501 DIALOGEX DISCARDABLE 0, 0, 168, 137 -BEGIN - CHECKBOX 108, 1002, 12, 76, 123, 41 - CHECKBOX "tick me", 1001, 12, 15, 123, 41 -END diff --git a/binutils/testsuite/binutils-all/windres/checkbox.rsd b/binutils/testsuite/binutils-all/windres/checkbox.rsd deleted file mode 100644 index f3ea5a0..0000000 --- a/binutils/testsuite/binutils-all/windres/checkbox.rsd +++ /dev/null @@ -1,12 +0,0 @@ - 0000 00000000 20000000 ffff0000 ffff0000 .... ........... - 0010 00000000 00000000 00000000 00000000 ................ - 0020 72000000 20000000 ffff0500 fffff501 r... ........... - 0030 00000000 30100904 00000000 00000000 ....0........... - 0040 0100ffff 00000000 00000000 00008880 ................ - 0050 02000000 0000a800 89000000 00000000 ................ - 0060 00000000 00000000 02000150 0c004c00 ...........P..L. - 0070 7b002900 ea030000 ffff8000 ffff6c00 {.)...........l. - 0080 00000000 00000000 00000000 02000150 ...............P - 0090 0c000f00 7b002900 e9030000 ffff8000 ....{.)......... - 00a0 74006900 63006b00 20006d00 65000000 t.i.c.k. .m.e... - 00b0 00000000 .... diff --git a/binutils/testsuite/binutils-all/windres/combobox.rc b/binutils/testsuite/binutils-all/windres/combobox.rc deleted file mode 100644 index f9f52d1..0000000 --- a/binutils/testsuite/binutils-all/windres/combobox.rc +++ /dev/null @@ -1,8 +0,0 @@ -#define CBS_SIMPLE 0x1 -#define WS_TABSTOP 0x10000 - -501 DIALOG DISCARDABLE 0, 0, 168, 137 -BEGIN - COMBOBOX 1001,10,10,50,54, CBS_SIMPLE | WS_TABSTOP -END - diff --git a/binutils/testsuite/binutils-all/windres/combobox.rsd b/binutils/testsuite/binutils-all/windres/combobox.rsd deleted file mode 100644 index 509c738..0000000 --- a/binutils/testsuite/binutils-all/windres/combobox.rsd +++ /dev/null @@ -1,8 +0,0 @@ - 0000 00000000 20000000 ffff0000 ffff0000 .... ........... - 0010 00000000 00000000 00000000 00000000 ................ - 0020 32000000 20000000 ffff0500 fffff501 2... ........... - 0030 00000000 30100904 00000000 00000000 ....0........... - 0040 00008880 00000000 01000000 0000a800 ................ - 0050 89000000 00000000 01000150 00000000 ...........P.... - 0060 0a000a00 32003600 e903ffff 85000000 ....2.6......... - 0070 00000000 .... diff --git a/binutils/testsuite/binutils-all/windres/deflang.rc b/binutils/testsuite/binutils-all/windres/deflang.rc deleted file mode 100644 index 1f3c20f..0000000 --- a/binutils/testsuite/binutils-all/windres/deflang.rc +++ /dev/null @@ -1,4 +0,0 @@ -101 DIALOG DISCARDABLE 0, 0, 186, 95 -BEGIN - DEFPUSHBUTTON "OK",1,129,7,50,14 -END diff --git a/binutils/testsuite/binutils-all/windres/deflang.rsd b/binutils/testsuite/binutils-all/windres/deflang.rsd deleted file mode 100644 index 270b622..0000000 --- a/binutils/testsuite/binutils-all/windres/deflang.rsd +++ /dev/null @@ -1,8 +0,0 @@ - 0000 00000000 20000000 ffff0000 ffff0000 .... ........... - 0010 00000000 00000000 00000000 00000000 ................ - 0020 36000000 20000000 ffff0500 ffff6500 6... .........e. - 0030 00000000 30100904 00000000 00000000 ....0........... - 0040 00008880 00000000 01000000 0000ba00 ................ - 0050 5f000000 00000000 01000150 00000000 _..........P.... - 0060 81000700 32000e00 0100ffff 80004f00 ....2.........O. - 0070 4b000000 00000000 K....... diff --git a/binutils/testsuite/binutils-all/windres/dialog0.rc b/binutils/testsuite/binutils-all/windres/dialog0.rc deleted file mode 100644 index fba7ed7..0000000 --- a/binutils/testsuite/binutils-all/windres/dialog0.rc +++ /dev/null @@ -1,4 +0,0 @@ -101 DIALOG 0, 0, 186, 95
-BEGIN
- DEFPUSHBUTTON "OK", 1, 129, 7, 50, 14
-END
diff --git a/binutils/testsuite/binutils-all/windres/dialog0.rsd b/binutils/testsuite/binutils-all/windres/dialog0.rsd deleted file mode 100644 index 270b622..0000000 --- a/binutils/testsuite/binutils-all/windres/dialog0.rsd +++ /dev/null @@ -1,8 +0,0 @@ - 0000 00000000 20000000 ffff0000 ffff0000 .... ........... - 0010 00000000 00000000 00000000 00000000 ................ - 0020 36000000 20000000 ffff0500 ffff6500 6... .........e. - 0030 00000000 30100904 00000000 00000000 ....0........... - 0040 00008880 00000000 01000000 0000ba00 ................ - 0050 5f000000 00000000 01000150 00000000 _..........P.... - 0060 81000700 32000e00 0100ffff 80004f00 ....2.........O. - 0070 4b000000 00000000 K....... diff --git a/binutils/testsuite/binutils-all/windres/dialog1.rc b/binutils/testsuite/binutils-all/windres/dialog1.rc deleted file mode 100644 index 71deb4a..0000000 --- a/binutils/testsuite/binutils-all/windres/dialog1.rc +++ /dev/null @@ -1,5 +0,0 @@ -101 DIALOG DISCARDABLE 0, 0, 186, 95
-BEGIN
- DEFPUSHBUTTON "OK", 1, 129, 7, 50, 14
-END
-
diff --git a/binutils/testsuite/binutils-all/windres/dialog1.rsd b/binutils/testsuite/binutils-all/windres/dialog1.rsd deleted file mode 100644 index 270b622..0000000 --- a/binutils/testsuite/binutils-all/windres/dialog1.rsd +++ /dev/null @@ -1,8 +0,0 @@ - 0000 00000000 20000000 ffff0000 ffff0000 .... ........... - 0010 00000000 00000000 00000000 00000000 ................ - 0020 36000000 20000000 ffff0500 ffff6500 6... .........e. - 0030 00000000 30100904 00000000 00000000 ....0........... - 0040 00008880 00000000 01000000 0000ba00 ................ - 0050 5f000000 00000000 01000150 00000000 _..........P.... - 0060 81000700 32000e00 0100ffff 80004f00 ....2.........O. - 0070 4b000000 00000000 K....... diff --git a/binutils/testsuite/binutils-all/windres/dialogid.rc b/binutils/testsuite/binutils-all/windres/dialogid.rc deleted file mode 100644 index 43bf1ec..0000000 --- a/binutils/testsuite/binutils-all/windres/dialogid.rc +++ /dev/null @@ -1,9 +0,0 @@ -// Test created based on bug report submitted to binutils mailing list -// See: http://sources.redhat.com/ml/binutils/2003-03/msg00312.html - -101 DIALOGEX 0, 0, 200, 200 - -BEGIN -CONTROL 108, -1, "classname", 77, 11, 11, 83, 162 -CONTROL "stringid", 102, "classname", 0x5000120e, 5, 5, 10, 10 -END diff --git a/binutils/testsuite/binutils-all/windres/dialogid.rsd b/binutils/testsuite/binutils-all/windres/dialogid.rsd deleted file mode 100644 index 1e6bb18..0000000 --- a/binutils/testsuite/binutils-all/windres/dialogid.rsd +++ /dev/null @@ -1,18 +0,0 @@ - -fred.res: file format binary - -Contents of section .data: - 0000 00000000 20000000 ffff0000 ffff0000 .... ........... - 0010 00000000 00000000 00000000 00000000 ................ - 0020 94000000 20000000 ffff0500 ffff6500 .... .........e. - 0030 00000000 30100904 00000000 00000000 ....0........... - 0040 0100ffff 00000000 00000000 00008880 ................ - 0050 02000000 0000c800 c8000000 00000000 ................ - 0060 00000000 00000000 4d000050 0b000b00 ........M..P.... - 0070 5300a200 ffff0000 63006c00 61007300 S.......c.l.a.s. - 0080 73006e00 61006d00 65000000 ffff6c00 s.n.a.m.e.....l. - 0090 00000000 00000000 00000000 0e120050 ...............P - 00a0 05000500 0a000a00 66000000 63006c00 ........f...c.l. - 00b0 61007300 73006e00 61006d00 65000000 a.s.s.n.a.m.e... - 00c0 73007400 72006900 6e006700 69006400 s.t.r.i.n.g.i.d. - 00d0 00000000 .... diff --git a/binutils/testsuite/binutils-all/windres/dialogsignature.rc b/binutils/testsuite/binutils-all/windres/dialogsignature.rc deleted file mode 100644 index a05ce19..0000000 --- a/binutils/testsuite/binutils-all/windres/dialogsignature.rc +++ /dev/null @@ -1,5 +0,0 @@ -101 DIALOG DISCARDABLE 0, 0, 186, 95 -STYLE 1 -BEGIN - DEFPUSHBUTTON "OK",1,129,7,50,14 -END diff --git a/binutils/testsuite/binutils-all/windres/dialogsignature.rsd b/binutils/testsuite/binutils-all/windres/dialogsignature.rsd deleted file mode 100644 index a01c14d..0000000 --- a/binutils/testsuite/binutils-all/windres/dialogsignature.rsd +++ /dev/null @@ -1,8 +0,0 @@ - 0000 00000000 20000000 ffff0000 ffff0000 .... ........... - 0010 00000000 00000000 00000000 00000000 ................ - 0020 36000000 20000000 ffff0500 ffff6500 6... .........e. - 0030 00000000 30100904 00000000 00000000 ....0........... - 0040 01000000 00000000 01000000 0000ba00 ................ - 0050 5f000000 00000000 01000150 00000000 _..........P.... - 0060 81000700 32000e00 0100ffff 80004f00 ....2.........O. - 0070 4b000000 00000000 K....... diff --git a/binutils/testsuite/binutils-all/windres/dlgfont.rc b/binutils/testsuite/binutils-all/windres/dlgfont.rc deleted file mode 100644 index 9c763e5..0000000 --- a/binutils/testsuite/binutils-all/windres/dlgfont.rc +++ /dev/null @@ -1,29 +0,0 @@ -101 DIALOG DISCARDABLE 0, 0, 186, 95 -FONT 8, "Tahoma" -BEGIN - DEFPUSHBUTTON "OK", 1, 129, 7, 50, 14 -END - -102 DIALOGEX DISCARDABLE 0, 0, 186, 95 -FONT 8, "Tahoma" -BEGIN - DEFPUSHBUTTON "OK", 1, 129, 7, 50, 14 -END - -103 DIALOGEX DISCARDABLE 0, 0, 186, 95 -FONT 8, "Tahoma", 0 -BEGIN - DEFPUSHBUTTON "OK", 1, 129, 7, 50, 14 -END - -104 DIALOGEX DISCARDABLE 0, 0, 186, 95 -FONT 8, "Tahoma", 0, 0 -BEGIN - DEFPUSHBUTTON "OK", 1, 129, 7, 50, 14 -END - -105 DIALOGEX DISCARDABLE 0, 0, 186, 95 -FONT 8, "Tahoma", 0, 0, 1 -BEGIN - DEFPUSHBUTTON "OK", 1, 129, 7, 50, 14 -END diff --git a/binutils/testsuite/binutils-all/windres/dlgfont.rsd b/binutils/testsuite/binutils-all/windres/dlgfont.rsd deleted file mode 100644 index 8a25cfa..0000000 --- a/binutils/testsuite/binutils-all/windres/dlgfont.rsd +++ /dev/null @@ -1,39 +0,0 @@ - 0000 00000000 20000000 ffff0000 ffff0000 .... ........... - 0010 00000000 00000000 00000000 00000000 ................ - 0020 46000000 20000000 ffff0500 ffff6500 F... .........e. - 0030 00000000 30100904 00000000 00000000 ....0........... - 0040 40008880 00000000 01000000 0000ba00 @............... - 0050 5f000000 00000000 08005400 61006800 _.........T.a.h. - 0060 6f006d00 61000000 01000150 00000000 o.m.a......P.... - 0070 81000700 32000e00 0100ffff 80004f00 ....2.........O. - 0080 4b000000 00000000 58000000 20000000 K.......X... ... - 0090 ffff0500 ffff6600 00000000 30100904 ......f.....0... - 00a0 00000000 00000000 0100ffff 00000000 ................ - 00b0 00000000 40008880 01000000 0000ba00 ....@........... - 00c0 5f000000 00000000 08000000 00015400 _.............T. - 00d0 61006800 6f006d00 61000000 00000000 a.h.o.m.a....... - 00e0 00000000 01000150 81000700 32000e00 .......P....2... - 00f0 01000000 ffff8000 4f004b00 00000000 ........O.K..... - 0100 58000000 20000000 ffff0500 ffff6700 X... .........g. - 0110 00000000 30100904 00000000 00000000 ....0........... - 0120 0100ffff 00000000 00000000 40008880 ............@... - 0130 01000000 0000ba00 5f000000 00000000 ........_....... - 0140 08000000 00015400 61006800 6f006d00 ......T.a.h.o.m. - 0150 61000000 00000000 00000000 01000150 a..............P - 0160 81000700 32000e00 01000000 ffff8000 ....2........... - 0170 4f004b00 00000000 58000000 20000000 O.K.....X... ... - 0180 ffff0500 ffff6800 00000000 30100904 ......h.....0... - 0190 00000000 00000000 0100ffff 00000000 ................ - 01a0 00000000 40008880 01000000 0000ba00 ....@........... - 01b0 5f000000 00000000 08000000 00015400 _.............T. - 01c0 61006800 6f006d00 61000000 00000000 a.h.o.m.a....... - 01d0 00000000 01000150 81000700 32000e00 .......P....2... - 01e0 01000000 ffff8000 4f004b00 00000000 ........O.K..... - 01f0 58000000 20000000 ffff0500 ffff6900 X... .........i. - 0200 00000000 30100904 00000000 00000000 ....0........... - 0210 0100ffff 00000000 00000000 40008880 ............@... - 0220 01000000 0000ba00 5f000000 00000000 ........_....... - 0230 08000000 00015400 61006800 6f006d00 ......T.a.h.o.m. - 0240 61000000 00000000 00000000 01000150 a..............P - 0250 81000700 32000e00 01000000 ffff8000 ....2........... - 0260 4f004b00 00000000 O.K..... diff --git a/binutils/testsuite/binutils-all/windres/edittext.rc b/binutils/testsuite/binutils-all/windres/edittext.rc deleted file mode 100644 index 0fd7000..0000000 --- a/binutils/testsuite/binutils-all/windres/edittext.rc +++ /dev/null @@ -1,4 +0,0 @@ -501 DIALOG DISCARDABLE 0, 0, 168, 137 -BEGIN - EDITTEXT 1001, 28, 63, 137, 52 -END diff --git a/binutils/testsuite/binutils-all/windres/edittext.rsd b/binutils/testsuite/binutils-all/windres/edittext.rsd deleted file mode 100644 index 7132b20..0000000 --- a/binutils/testsuite/binutils-all/windres/edittext.rsd +++ /dev/null @@ -1,8 +0,0 @@ - 0000 00000000 20000000 ffff0000 ffff0000 .... ........... - 0010 00000000 00000000 00000000 00000000 ................ - 0020 32000000 20000000 ffff0500 fffff501 2... ........... - 0030 00000000 30100904 00000000 00000000 ....0........... - 0040 00008880 00000000 01000000 0000a800 ................ - 0050 89000000 00000000 00008150 00000000 ...........P.... - 0060 1c003f00 89003400 e903ffff 81000000 ..?...4......... - 0070 00000000 .... diff --git a/binutils/testsuite/binutils-all/windres/escapea.rc b/binutils/testsuite/binutils-all/windres/escapea.rc deleted file mode 100644 index 0e3e967..0000000 --- a/binutils/testsuite/binutils-all/windres/escapea.rc +++ /dev/null @@ -1,7 +0,0 @@ -20 MENU DISCARDABLE -BEGIN - POPUP "&File" - BEGIN - MENUITEM "&Open\a^O", 17 - END -END diff --git a/binutils/testsuite/binutils-all/windres/escapea.rsd b/binutils/testsuite/binutils-all/windres/escapea.rsd deleted file mode 100644 index c8a7f4e..0000000 --- a/binutils/testsuite/binutils-all/windres/escapea.rsd +++ /dev/null @@ -1,7 +0,0 @@ - 0000 00000000 20000000 ffff0000 ffff0000 .... ........... - 0010 00000000 00000000 00000000 00000000 ................ - 0020 28000000 20000000 ffff0400 ffff1400 (... ........... - 0030 00000000 30100904 00000000 00000000 ....0........... - 0040 00000000 90002600 46006900 6c006500 ......&.F.i.l.e. - 0050 00008000 11002600 4f007000 65006e00 ......&.O.p.e.n. - 0060 08005e00 4f000000 ..^.O... diff --git a/binutils/testsuite/binutils-all/windres/escapex-2.rc b/binutils/testsuite/binutils-all/windres/escapex-2.rc deleted file mode 100755 index ed35b21..0000000 --- a/binutils/testsuite/binutils-all/windres/escapex-2.rc +++ /dev/null @@ -1,5 +0,0 @@ -101 DIALOG DISCARDABLE 0, 0, 186, 95 -BEGIN - LTEXT "\xB0ABC",-1,23,46,28,8 -END - diff --git a/binutils/testsuite/binutils-all/windres/escapex-2.rsd b/binutils/testsuite/binutils-all/windres/escapex-2.rsd deleted file mode 100644 index 774c648..0000000 --- a/binutils/testsuite/binutils-all/windres/escapex-2.rsd +++ /dev/null @@ -1,8 +0,0 @@ - 0000 00000000 20000000 ffff0000 ffff0000 .... ........... - 0010 00000000 00000000 00000000 00000000 ................ - 0020 3a000000 20000000 ffff0500 ffff6500 :... .........e. - 0030 00000000 30100904 00000000 00000000 ....0........... - 0040 00008880 00000000 01000000 0000ba00 ................ - 0050 5f000000 00000000 00000250 00000000 _..........P.... - 0060 17002e00 1c000800 ffffffff 8200b000 ................ - 0070 41004200 43000000 00000000 A.B.C....... diff --git a/binutils/testsuite/binutils-all/windres/escapex.rc b/binutils/testsuite/binutils-all/windres/escapex.rc deleted file mode 100644 index 1a025f6..0000000 --- a/binutils/testsuite/binutils-all/windres/escapex.rc +++ /dev/null @@ -1,4 +0,0 @@ -101 DIALOG DISCARDABLE 0, 0, 186, 95 -BEGIN - LTEXT "\xB0",-1,23,46,28,8 -END diff --git a/binutils/testsuite/binutils-all/windres/escapex.rsd b/binutils/testsuite/binutils-all/windres/escapex.rsd deleted file mode 100644 index 280aead..0000000 --- a/binutils/testsuite/binutils-all/windres/escapex.rsd +++ /dev/null @@ -1,8 +0,0 @@ - 0000 00000000 20000000 ffff0000 ffff0000 .... ........... - 0010 00000000 00000000 00000000 00000000 ................ - 0020 34000000 20000000 ffff0500 ffff6500 4... .........e. - 0030 00000000 30100904 00000000 00000000 ....0........... - 0040 00008880 00000000 01000000 0000ba00 ................ - 0050 5f000000 00000000 00000250 00000000 _..........P.... - 0060 17002e00 1c000800 ffffffff 8200b000 ................ - 0070 00000000 .... diff --git a/binutils/testsuite/binutils-all/windres/lang.rc b/binutils/testsuite/binutils-all/windres/lang.rc deleted file mode 100644 index d894315..0000000 --- a/binutils/testsuite/binutils-all/windres/lang.rc +++ /dev/null @@ -1,15 +0,0 @@ -#include "windows.h" - -LANGUAGE 0, 0 - -1 MENU MOVEABLE PURE DISCARDABLE -LANGUAGE LANG_GERMAN, SUBLANG_GERMAN -BEGIN - POPUP "&Datei" { MENUITEM "foo", 1 } -END - -1 MENU MOVEABLE PURE DISCARDABLE -LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US -BEGIN - POPUP "&File" { MENUITEM "foo", 1 } -END diff --git a/binutils/testsuite/binutils-all/windres/lang.rsd b/binutils/testsuite/binutils-all/windres/lang.rsd deleted file mode 100644 index 9e0045f..0000000 --- a/binutils/testsuite/binutils-all/windres/lang.rsd +++ /dev/null @@ -1,10 +0,0 @@ - 0000 00000000 20000000 ffff0000 ffff0000 .... ........... - 0010 00000000 00000000 00000000 00000000 ................ - 0020 20000000 20000000 ffff0400 ffff0100 ... ........... - 0030 00000000 30100704 00000000 00000000 ....0........... - 0040 00000000 90002600 44006100 74006500 ......&.D.a.t.e. - 0050 69000000 80000100 66006f00 6f000000 i.......f.o.o... - 0060 1e000000 20000000 ffff0400 ffff0100 .... ........... - 0070 00000000 30100904 00000000 00000000 ....0........... - 0080 00000000 90002600 46006900 6c006500 ......&.F.i.l.e. - 0090 00008000 01006600 6f006f00 00000000 ......f.o.o..... diff --git a/binutils/testsuite/binutils-all/windres/listbox.rc b/binutils/testsuite/binutils-all/windres/listbox.rc deleted file mode 100644 index bb7c121..0000000 --- a/binutils/testsuite/binutils-all/windres/listbox.rc +++ /dev/null @@ -1,4 +0,0 @@ -501 DIALOG DISCARDABLE 0, 0, 168, 137 -BEGIN - LISTBOX 1001, 28, 63, 137, 52 -END diff --git a/binutils/testsuite/binutils-all/windres/listbox.rsd b/binutils/testsuite/binutils-all/windres/listbox.rsd deleted file mode 100644 index 4c3eadf..0000000 --- a/binutils/testsuite/binutils-all/windres/listbox.rsd +++ /dev/null @@ -1,8 +0,0 @@ - 0000 00000000 20000000 ffff0000 ffff0000 .... ........... - 0010 00000000 00000000 00000000 00000000 ................ - 0020 32000000 20000000 ffff0500 fffff501 2... ........... - 0030 00000000 30100904 00000000 00000000 ....0........... - 0040 00008880 00000000 01000000 0000a800 ................ - 0050 89000000 00000000 01008050 00000000 ...........P.... - 0060 1c003f00 89003400 e903ffff 83000000 ..?...4......... - 0070 00000000 .... diff --git a/binutils/testsuite/binutils-all/windres/msupdate b/binutils/testsuite/binutils-all/windres/msupdate deleted file mode 100755 index 31ceb07..0000000 --- a/binutils/testsuite/binutils-all/windres/msupdate +++ /dev/null @@ -1,40 +0,0 @@ -#!/bin/sh -# Copyright 2001 Free Software Foundation, Inc. - -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - -# Please email any bugs, comments, and/or additions to this file to: -# bug-dejagnu@prep.ai.mit.edu - -# Written by DJ Delorie <dj@redhat.com> - -# Run this on a machine with Cygwin and Microsoft Visual C to create -# the RES files we match against. - -RC="rc" -if test x"$1" != x"" -then - RC="$1" -fi - -for i in *.rc -do - o=`echo $i | sed s/.rc/.res/` - d=`echo $i | sed s/.rc/.rsd/` - echo "$i -> $o -> $d" - $RC /fo$o $i - objdump -b binary -s $o | sed -n '/^ [0-9a-f][0-9a-f]* /p' > $d - rm $o -done diff --git a/binutils/testsuite/binutils-all/windres/nocaption.rc b/binutils/testsuite/binutils-all/windres/nocaption.rc deleted file mode 100644 index 1f3c20f..0000000 --- a/binutils/testsuite/binutils-all/windres/nocaption.rc +++ /dev/null @@ -1,4 +0,0 @@ -101 DIALOG DISCARDABLE 0, 0, 186, 95 -BEGIN - DEFPUSHBUTTON "OK",1,129,7,50,14 -END diff --git a/binutils/testsuite/binutils-all/windres/nocaption.rsd b/binutils/testsuite/binutils-all/windres/nocaption.rsd deleted file mode 100644 index 270b622..0000000 --- a/binutils/testsuite/binutils-all/windres/nocaption.rsd +++ /dev/null @@ -1,8 +0,0 @@ - 0000 00000000 20000000 ffff0000 ffff0000 .... ........... - 0010 00000000 00000000 00000000 00000000 ................ - 0020 36000000 20000000 ffff0500 ffff6500 6... .........e. - 0030 00000000 30100904 00000000 00000000 ....0........... - 0040 00008880 00000000 01000000 0000ba00 ................ - 0050 5f000000 00000000 01000150 00000000 _..........P.... - 0060 81000700 32000e00 0100ffff 80004f00 ....2.........O. - 0070 4b000000 00000000 K....... diff --git a/binutils/testsuite/binutils-all/windres/printstyle.rc b/binutils/testsuite/binutils-all/windres/printstyle.rc deleted file mode 100644 index 0066c99..0000000 --- a/binutils/testsuite/binutils-all/windres/printstyle.rc +++ /dev/null @@ -1,6 +0,0 @@ -101 DIALOG DISCARDABLE 0, 0, 186, 95 -STYLE 0 -BEGIN - DEFPUSHBUTTON "OK",1,129,7,50,14 -END - diff --git a/binutils/testsuite/binutils-all/windres/printstyle.rsd b/binutils/testsuite/binutils-all/windres/printstyle.rsd deleted file mode 100644 index 6a4a919..0000000 --- a/binutils/testsuite/binutils-all/windres/printstyle.rsd +++ /dev/null @@ -1,8 +0,0 @@ - 0000 00000000 20000000 ffff0000 ffff0000 .... ........... - 0010 00000000 00000000 00000000 00000000 ................ - 0020 36000000 20000000 ffff0500 ffff6500 6... .........e. - 0030 00000000 30100904 00000000 00000000 ....0........... - 0040 00000000 00000000 01000000 0000ba00 ................ - 0050 5f000000 00000000 01000150 00000000 _..........P.... - 0060 81000700 32000e00 0100ffff 80004f00 ....2.........O. - 0070 4b000000 00000000 K....... diff --git a/binutils/testsuite/binutils-all/windres/quoteclass.rc b/binutils/testsuite/binutils-all/windres/quoteclass.rc deleted file mode 100644 index c1f98e1..0000000 --- a/binutils/testsuite/binutils-all/windres/quoteclass.rc +++ /dev/null @@ -1,8 +0,0 @@ -// parse-only - -101 DIALOG DISCARDABLE 0, 0, 186, 95 -CLASS "myclass" -BEGIN - DEFPUSHBUTTON "OK",1,129,7,50,14 -END - diff --git a/binutils/testsuite/binutils-all/windres/scrollbar.rc b/binutils/testsuite/binutils-all/windres/scrollbar.rc deleted file mode 100644 index 9391d1a..0000000 --- a/binutils/testsuite/binutils-all/windres/scrollbar.rc +++ /dev/null @@ -1,4 +0,0 @@ -501 DIALOGEX 0, 0, 168, 137 -BEGIN - SCROLLBAR 1001,43,68,105,10,0,0,0x81f503e9 -END diff --git a/binutils/testsuite/binutils-all/windres/scrollbar.rsd b/binutils/testsuite/binutils-all/windres/scrollbar.rsd deleted file mode 100644 index c509c4c..0000000 --- a/binutils/testsuite/binutils-all/windres/scrollbar.rsd +++ /dev/null @@ -1,8 +0,0 @@ - 0000 00000000 20000000 ffff0000 ffff0000 .... ........... - 0010 00000000 00000000 00000000 00000000 ................ - 0020 40000000 20000000 ffff0500 fffff501 @... ........... - 0030 00000000 30100904 00000000 00000000 ....0........... - 0040 0100ffff 00000000 00000000 00008880 ................ - 0050 01000000 0000a800 89000000 00000000 ................ - 0060 e903f581 00000000 00000050 2b004400 ...........P+.D. - 0070 69000a00 e9030000 ffff8400 00000000 i............... diff --git a/binutils/testsuite/binutils-all/windres/strtab1.rc b/binutils/testsuite/binutils-all/windres/strtab1.rc deleted file mode 100644 index a1a246d..0000000 --- a/binutils/testsuite/binutils-all/windres/strtab1.rc +++ /dev/null @@ -1,8 +0,0 @@ -#include "windows.h" - -LANGUAGE 0, 0 - -STRINGTABLE MOVEABLE PURE DISCARDABLE -BEGIN - 1 "hello, world" -END diff --git a/binutils/testsuite/binutils-all/windres/strtab1.rsd b/binutils/testsuite/binutils-all/windres/strtab1.rsd deleted file mode 100644 index 4d61073..0000000 --- a/binutils/testsuite/binutils-all/windres/strtab1.rsd +++ /dev/null @@ -1,8 +0,0 @@ - 0000 00000000 20000000 ffff0000 ffff0000 .... ........... - 0010 00000000 00000000 00000000 00000000 ................ - 0020 38000000 20000000 ffff0600 ffff0100 8... ........... - 0030 00000000 30100000 00000000 00000000 ....0........... - 0040 00000c00 68006500 6c006c00 6f002c00 ....h.e.l.l.o.,. - 0050 20007700 6f007200 6c006400 00000000 .w.o.r.l.d..... - 0060 00000000 00000000 00000000 00000000 ................ - 0070 00000000 00000000 ........ diff --git a/binutils/testsuite/binutils-all/windres/sublang.rc b/binutils/testsuite/binutils-all/windres/sublang.rc deleted file mode 100644 index a37921b..0000000 --- a/binutils/testsuite/binutils-all/windres/sublang.rc +++ /dev/null @@ -1,5 +0,0 @@ -LANGUAGE 9, 1 -101 DIALOG DISCARDABLE 0, 0, 186, 95 -BEGIN - DEFPUSHBUTTON "OK",1,129,7,50,14 -END diff --git a/binutils/testsuite/binutils-all/windres/sublang.rsd b/binutils/testsuite/binutils-all/windres/sublang.rsd deleted file mode 100644 index 270b622..0000000 --- a/binutils/testsuite/binutils-all/windres/sublang.rsd +++ /dev/null @@ -1,8 +0,0 @@ - 0000 00000000 20000000 ffff0000 ffff0000 .... ........... - 0010 00000000 00000000 00000000 00000000 ................ - 0020 36000000 20000000 ffff0500 ffff6500 6... .........e. - 0030 00000000 30100904 00000000 00000000 ....0........... - 0040 00008880 00000000 01000000 0000ba00 ................ - 0050 5f000000 00000000 01000150 00000000 _..........P.... - 0060 81000700 32000e00 0100ffff 80004f00 ....2.........O. - 0070 4b000000 00000000 K....... diff --git a/binutils/testsuite/binutils-all/windres/windres.exp b/binutils/testsuite/binutils-all/windres/windres.exp deleted file mode 100644 index 4189c55..0000000 --- a/binutils/testsuite/binutils-all/windres/windres.exp +++ /dev/null @@ -1,149 +0,0 @@ -# Copyright 2001, 2003, 2004 Free Software Foundation, Inc. - -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - -# Please email any bugs, comments, and/or additions to this file to: -# bug-dejagnu@prep.ai.mit.edu - -# Written by DJ Delorie <dj@redhat.com> - -if {![istarget "i*86-*-*"]} { - return -} - -if {![istarget "i*86-*-*pe*"] \ - && ![istarget "i*86-*-cygwin*"] \ - && ![istarget "i*86-*-mingw32*"] } { - set target_xfail "yes" -} else { - set target_xfail "no" -} - -if {![info exists WINDRES]} then { - return -} - -if {[which $WINDRES] == 0} then { - return -} - -set wr "$WINDRES --include-dir $srcdir/$subdir" - -if [file exists "$srcdir/../../winsup/w32api/include"] { - set wr "$wr --include-dir $srcdir/../../winsup/w32api/include" - set target_xfail "no" -} else { - send_log "\nWarning: Assuming windres can find the win32 headers\n\n" -} - -set res_list [lsort [glob -nocomplain $srcdir/$subdir/*.rc]] - -proc oneline { file } { - while { 1 } { - if { [gets $file line] == -1 } { - return "" - } - if [regexp "^ \[0-9a-z\]\[0-9a-z\]* " $line] { - return $line - } - } -} - -foreach res $res_list { - set sroot [file rootname $res] - set broot [file tail $sroot] - set done 0 - - set rc [open $res] - while { [gets $rc line] != -1 } { - if ![regexp "^(//|/\*|#)" $line] { - break - } - if [regexp "\[xp\]fail *(\[^ \]*)" $line junk sys] { - setup_xfail $sys - continue - } - } - - if { "$broot" != "bmpalign" && "$target_xfail" == "yes" } { - setup_xfail *-* - } - - verbose "$wr -J rc -O res $res tmpdir/$broot.res" 1 - catch "exec $wr -J rc -O res $res tmpdir/$broot.res" err - - if ![string match "" $err] then { - send_log "$err\n" - verbose "$err" 1 - fail "windres/$broot (parse)" - continue - } - pass "windres/$broot (parse)" - - set rc [open $res] - while { [gets $rc line] != -1 } { - if ![regexp "^(//|/\*|#)" $line] { - break - } - if [regexp "parse-only" $line] { - file delete "tmpdir/$broot.res" - set done 1 - break - } - if [regexp "\[xc\]fail *(\[^ \]*)" $line junk sys] { - setup_xfail $sys - continue - } - } - if { $done != 0 } { - continue - } - - if { "$broot" != "bmpalign" && "$target_xfail" == "yes" } { - setup_xfail *-* - } - - verbose "$OBJDUMP -b binary -s tmpdir/$broot.res > tmpdir/$broot.dump" 1 - catch "exec $OBJDUMP -b binary -s tmpdir/$broot.res > tmpdir/$broot.dump" err - - if ![string match "" $err] then { - send_log "$err\n" - verbose "$err" 1 - fail "windres/$broot (compare)" - continue - } - - set pat [open "$sroot.rsd"] - set out [open "tmpdir/$broot.dump"] - set patline "foo" - - while { ![string match $patline ""] } { - set patline [oneline $pat] - set outline [oneline $out] - - if ![string match $patline $outline] { - send_log "< $patline\n" - send_log "> $outline\n" - fail "windres/$broot (compare)" - set done 1 - break - } - } - if { $done == 0 } { - pass "windres/$broot (compare)" - file delete "tmpdir/$broot.res" - file delete "tmpdir/$broot.dump" - } -} |