diff options
Diffstat (limited to 'binutils-2.25/binutils/testsuite/binutils-all')
41 files changed, 353 insertions, 149 deletions
diff --git a/binutils-2.25/binutils/testsuite/binutils-all/aarch64/aarch64.exp b/binutils-2.25/binutils/testsuite/binutils-all/aarch64/aarch64.exp new file mode 100644 index 00000000..e1897113 --- /dev/null +++ b/binutils-2.25/binutils/testsuite/binutils-all/aarch64/aarch64.exp @@ -0,0 +1,30 @@ +# Copyright (C) 2014 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 3 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 "aarch64*-*-*"] + || ![is_elf_format]} then { + return +} + +set tempfile tmpdir/aarch64temp.o +set copyfile tmpdir/aarch64copy + +set test_list [lsort [glob -nocomplain $srcdir/$subdir/*.d]] +foreach t $test_list { + # We need to strip the ".d", but can leave the dirname. + verbose [file rootname $t] + run_dump_test [file rootname $t] +} diff --git a/binutils-2.25/binutils/testsuite/binutils-all/aarch64/unallocated-encoding.d b/binutils-2.25/binutils/testsuite/binutils-all/aarch64/unallocated-encoding.d new file mode 100644 index 00000000..64063e23 --- /dev/null +++ b/binutils-2.25/binutils/testsuite/binutils-all/aarch64/unallocated-encoding.d @@ -0,0 +1,29 @@ +#PROG: objcopy +#objdump: -dr +#name: Disassembler detects unallocated instruction encodings. + +.*: +file format .*aarch64.* + +Disassembly of section \.text: + +0000000000000000 <.*>: + 0: 0d0047de .inst 0x0d0047de ; undefined + 4: 0d2047dd .inst 0x0d2047dd ; undefined + 8: 0d0067dc .inst 0x0d0067dc ; undefined + c: 0d2067db .inst 0x0d2067db ; undefined + 10: 0d008bde .inst 0x0d008bde ; undefined + 14: 0d208bdd .inst 0x0d208bdd ; undefined + 18: 0d00abdc .inst 0x0d00abdc ; undefined + 1c: 0d20abdb .inst 0x0d20abdb ; undefined + 20: 0d008fde .inst 0x0d008fde ; undefined + 24: 0d208fdd .inst 0x0d208fdd ; undefined + 28: 0d00afdc .inst 0x0d00afdc ; undefined + 2c: 0d20afdb .inst 0x0d20afdb ; undefined + 30: 0d0097de .inst 0x0d0097de ; undefined + 34: 0d2097dd .inst 0x0d2097dd ; undefined + 38: 0d00b7dc .inst 0x0d00b7dc ; undefined + 3c: 0d20b7db .inst 0x0d20b7db ; undefined + 40: 0d009fde .inst 0x0d009fde ; undefined + 44: 0d209fdd .inst 0x0d209fdd ; undefined + 48: 0d00bfdc .inst 0x0d00bfdc ; undefined + 4c: 0d20bfdb .inst 0x0d20bfdb ; undefined diff --git a/binutils-2.25/binutils/testsuite/binutils-all/aarch64/unallocated-encoding.s b/binutils-2.25/binutils/testsuite/binutils-all/aarch64/unallocated-encoding.s new file mode 100644 index 00000000..fb96adc6 --- /dev/null +++ b/binutils-2.25/binutils/testsuite/binutils-all/aarch64/unallocated-encoding.s @@ -0,0 +1,51 @@ + .text +func: + //scale 1, size<0> check for H. + #st1 {v30.h}[0], [x30] + .inst 0x0d0043de | (1 << 10) + #st2 {v29.h, v30.h}[0], [x30] + .inst 0x0d2043dd | (1 << 10) + #st3 {v28.h, v29.h, v30.h}[0], [x30] + .inst 0x0d0063dc | (1 << 10) + #st4 {v27.h, v28.h, v29.h, v30.h}[0], [x30] + .inst 0x0d2063db | (1 << 10) + + //scale 2, size<1> check for S. + #st1 {v30.s}[0], [x30] + .inst 0x0d0083de | (1 << 11) + #st2 {v29.s, v30.s}[0], [x30] + .inst 0x0d2083dd | (1 << 11) + #st3 {v28.s, v29.s, v30.s}[0], [x30] + .inst 0x0d00a3dc | (1 << 11) + #st4 {v27.s, v28.s, v29.s, v30.s}[0], [x30] + .inst 0x0d20a3db | (1 << 11) + + //scale 2, size<1> check for D. + #st1 {v30.d}[0], [x30] + .inst 0x0d0087de | (1 << 11) + #st2 {v29.d, v30.d}[0], [x30] + .inst 0x0d2087dd | (1 << 11) + #st3 {v28.d, v29.d, v30.d}[0], [x30] + .inst 0x0d00a7dc | (1 << 11) + #st4 {v27.d, v28.d, v29.d, v30.d}[0], [x30] + .inst 0x0d20a7db | (1 << 11) + + //scale 2, S-bit check for D. + #st1 {v30.d}[0], [x30] + .inst 0x0d0087de | (2 << 11) + #st2 {v29.d, v30.d}[0], [x30] + .inst 0x0d2087dd | (2 << 11) + #st3 {v28.d, v29.d, v30.d}[0], [x30] + .inst 0x0d00a7dc | (2 << 11) + #st4 {v27.d, v28.d, v29.d, v30.d}[0], [x30] + .inst 0x0d20a7db | (2 << 11) + + //scale 2, size<1> & S-bit check for D. + #st1 {v30.d}[0], [x30] + .inst 0x0d0087de | (3 << 11) + #st2 {v29.d, v30.d}[0], [x30] + .inst 0x0d2087dd | (3 << 11) + #st3 {v28.d, v29.d, v30.d}[0], [x30] + .inst 0x0d00a7dc | (3 << 11) + #st4 {v27.d, v28.d, v29.d, v30.d}[0], [x30] + .inst 0x0d20a7db | (3 << 11) diff --git a/binutils-2.25/binutils/testsuite/binutils-all/ar.exp b/binutils-2.25/binutils/testsuite/binutils-all/ar.exp index 6efc1598..21b7a695 100644 --- a/binutils-2.25/binutils/testsuite/binutils-all/ar.exp +++ b/binutils-2.25/binutils/testsuite/binutils-all/ar.exp @@ -1,5 +1,4 @@ -# Copyright 1995, 1997, 2002, 2004, 2007, 2008, 2009, 2010, 2012 -# Free Software Foundation, Inc. +# Copyright (C) 1995-2014 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 @@ -558,16 +557,24 @@ proc move_an_element { } { # Run the tests. -set bfdtests [list bfdtest1 bfdtest2] +# Only run the bfdtest checks if the programs exist. Since these +# programs are built but not installed, running the testsuite on an +# installed toolchain will produce ERRORs about missing bfdtest1 and +# bfdtest2 executables. +if { [file exists $base_dir/bfdtest1] && [file exists $base_dir/bfdtest2] } { + set bfdtests [list bfdtest1 bfdtest2] + + long_filenames $bfdtests + thin_archive $bfdtests + thin_archive_with_nested $bfdtests +} -long_filenames $bfdtests symbol_table -thin_archive $bfdtests -thin_archive_with_nested $bfdtests argument_parsing deterministic_archive delete_an_element move_an_element + if { [is_elf_format] && ![istarget "*-*-hpux*"] && ![istarget "msp*-*-*"] } { diff --git a/binutils-2.25/binutils/testsuite/binutils-all/arm/objdump.exp b/binutils-2.25/binutils/testsuite/binutils-all/arm/objdump.exp index 321e2a93..93c44da3 100644 --- a/binutils-2.25/binutils/testsuite/binutils-all/arm/objdump.exp +++ b/binutils-2.25/binutils/testsuite/binutils-all/arm/objdump.exp @@ -1,5 +1,4 @@ -# Copyright 2004, 2007, 2009 -# Free Software Foundation, Inc. +# Copyright (C) 2004-2014 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 diff --git a/binutils-2.25/binutils/testsuite/binutils-all/bfin/objdump.exp b/binutils-2.25/binutils/testsuite/binutils-all/bfin/objdump.exp index df7d4da8..ba803ee4 100644 --- a/binutils-2.25/binutils/testsuite/binutils-all/bfin/objdump.exp +++ b/binutils-2.25/binutils/testsuite/binutils-all/bfin/objdump.exp @@ -1,5 +1,4 @@ -# Copyright 2009 -# Free Software Foundation, Inc. +# Copyright (C) 2009-2014 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 diff --git a/binutils-2.25/binutils/testsuite/binutils-all/compress.exp b/binutils-2.25/binutils/testsuite/binutils-all/compress.exp index 8cf61385..d74555dc 100644 --- a/binutils-2.25/binutils/testsuite/binutils-all/compress.exp +++ b/binutils-2.25/binutils/testsuite/binutils-all/compress.exp @@ -1,5 +1,4 @@ -# Copyright 2010, 2012 -# Free Software Foundation, Inc. +# Copyright (C) 2010-2014 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 @@ -174,3 +173,13 @@ if ![string match "" $got] then { fail "objcopy ($testname)" } } + +if ![is_remote host] { + set tempfile tmpdir/debug_str.o + set copyfile tmpdir/debug_str.copy +} else { + set tempfile [remote_download host tmpdir/debug_str.o] + set copyfile debug_str.copy +} + +run_dump_test "debug_str" diff --git a/binutils-2.25/binutils/testsuite/binutils-all/debug_str.d b/binutils-2.25/binutils/testsuite/binutils-all/debug_str.d new file mode 100644 index 00000000..eda1db14 --- /dev/null +++ b/binutils-2.25/binutils/testsuite/binutils-all/debug_str.d @@ -0,0 +1,9 @@ +#PROG: objcopy +#source: debug_str.s +#objdump: -h +#name: Uncompressed .debug_str section starting with ZLIB + +.*ebug_str.copy.o: file format .* +#... + . .debug_str 0+01. 0+0 0+0 0+0.. 2..0 +#... diff --git a/binutils-2.25/binutils/testsuite/binutils-all/debug_str.s b/binutils-2.25/binutils/testsuite/binutils-all/debug_str.s new file mode 100644 index 00000000..485d0cc3 --- /dev/null +++ b/binutils-2.25/binutils/testsuite/binutils-all/debug_str.s @@ -0,0 +1,12 @@ +/* This test is derived from a C source file which, when compiled by gcc + with debugging enabled, managed to create a .debug_str section whose + first string was ZLIB_VER_SUBVERSION. The code in bfd/compress.c + used to just check for the characters "ZLIB" at the start of a section + and then assume that the section was compressed. This meant that the BFD + library then processed the next 8 bytes as if they were the size of the + decompressed version of the section. Naturally with this test case the + resulting size was gigantic and consequently the library quickly ran out + of memory. */ + + .section .debug_str,"MS",@progbits,1 + .string "ZLIB_VER_SUBREVISION 0" diff --git a/binutils-2.25/binutils/testsuite/binutils-all/dlltool.exp b/binutils-2.25/binutils/testsuite/binutils-all/dlltool.exp index 1409d3cf..169fe2ca 100644 --- a/binutils-2.25/binutils/testsuite/binutils-all/dlltool.exp +++ b/binutils-2.25/binutils/testsuite/binutils-all/dlltool.exp @@ -1,4 +1,4 @@ -# Copyright 2002, 2004, 2006, 2007, 2009 Free Software Foundation, Inc. +# Copyright (C) 2002-2014 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 @@ -53,8 +53,8 @@ if { "$target_xfail" == "yes" } { setup_xfail *-* } -verbose "$DLLTOOL -l libversion.a --def $srcdir/$subdir/version.def" 1 -catch "exec $DLLTOOL -l libersion.a --def $srcdir/$subdir/version.def" err +verbose "$DLLTOOL -l libversion.a --def $srcdir/$subdir/version.def $dlltool_gas_flag" 1 +catch "exec $DLLTOOL -l libersion.a --def $srcdir/$subdir/version.def $dlltool_gas_flag" err if ![string match "" $err] then { send_log "$err\n" diff --git a/binutils-2.25/binutils/testsuite/binutils-all/dw2-1.S b/binutils-2.25/binutils/testsuite/binutils-all/dw2-1.S index ab12be60..234b11b3 100644 --- a/binutils-2.25/binutils/testsuite/binutils-all/dw2-1.S +++ b/binutils-2.25/binutils/testsuite/binutils-all/dw2-1.S @@ -1,6 +1,6 @@ /* This testcase is derived from a similar test in GDB. - Copyright 2008, 2009, 2010 Free Software Foundation, Inc. + Copyright (C) 2008-2014 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 @@ -20,13 +20,13 @@ .text .globl _start _start: - .int 0 + .4byte 0 .Lbegin_text1: .globl func_cu1 .type func_cu1, %function func_cu1: .Lbegin_func_cu1: - .int 0 + .4byte 0 .Lend_func_cu1: .size func_cu1, .-func_cu1 .Lend_text1: diff --git a/binutils-2.25/binutils/testsuite/binutils-all/dw2-1.W b/binutils-2.25/binutils/testsuite/binutils-all/dw2-1.W index 85ce9dd0..3811019e 100644 --- a/binutils-2.25/binutils/testsuite/binutils-all/dw2-1.W +++ b/binutils-2.25/binutils/testsuite/binutils-all/dw2-1.W @@ -9,24 +9,24 @@ Contents of the .debug_info section: Abbrev Offset: 0x0 Pointer Size: 4 <0><b>: Abbrev Number: 1 \(DW_TAG_compile_unit\) - <c> DW_AT_stmt_list : 0x0 - <10> DW_AT_high_pc : 0x. - <14> DW_AT_low_pc : 0x. - <18> DW_AT_name : file1.txt - <22> DW_AT_producer : GNU C 3.3.3 + <c> DW_AT_stmt_list : 0x0 + <10> DW_AT_high_pc : 0x. + <14> DW_AT_low_pc : 0x. + <18> DW_AT_name : file1.txt + <22> DW_AT_producer : GNU C 3.3.3 <2e> DW_AT_language : 1 \(ANSI C\) <1><2f>: Abbrev Number: 2 \(DW_TAG_subprogram\) - <30> DW_AT_external : 1 - <31> DW_AT_decl_file : 1 - <32> DW_AT_decl_line : 2 - <33> DW_AT_name : func_cu1 - <3c> DW_AT_type : <0x4a> - <40> DW_AT_low_pc : 0x. - <44> DW_AT_high_pc : 0x. + <30> DW_AT_external : 1 + <31> DW_AT_decl_file : 1 + <32> DW_AT_decl_line : 2 + <33> DW_AT_name : func_cu1 + <3c> DW_AT_type : <0x4a> + <40> DW_AT_low_pc : 0x. + <44> DW_AT_high_pc : 0x. <48> DW_AT_frame_base : 1 byte block: 55 \(DW_OP_reg5 \([^()]*\)\) <1><4a>: Abbrev Number: 3 \(DW_TAG_base_type\) - <4b> DW_AT_name : int - <4f> DW_AT_byte_size : 4 + <4b> DW_AT_name : int + <4f> DW_AT_byte_size : 4 <50> DW_AT_encoding : 5 \(signed\) <1><51>: Abbrev Number: 0 diff --git a/binutils-2.25/binutils/testsuite/binutils-all/dw2-2.S b/binutils-2.25/binutils/testsuite/binutils-all/dw2-2.S index 43b53557..e792e8a1 100644 --- a/binutils-2.25/binutils/testsuite/binutils-all/dw2-2.S +++ b/binutils-2.25/binutils/testsuite/binutils-all/dw2-2.S @@ -1,6 +1,6 @@ /* This testcase is derived from a similar test in GDB. - Copyright 2008, 2009, 2010 Free Software Foundation, Inc. + Copyright (C) 2008-2014 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 @@ -23,7 +23,7 @@ .type func_cu2, %function func_cu2: .Lbegin_func_cu2: - .int 0 + .4byte 0 .Lend_func_cu2: .size func_cu2, .-func_cu2 .Lend_text1: diff --git a/binutils-2.25/binutils/testsuite/binutils-all/dw2-compressed.S b/binutils-2.25/binutils/testsuite/binutils-all/dw2-compressed.S index 37ba9168..b38961af 100644 --- a/binutils-2.25/binutils/testsuite/binutils-all/dw2-compressed.S +++ b/binutils-2.25/binutils/testsuite/binutils-all/dw2-compressed.S @@ -1,6 +1,6 @@ /* This testcase is derived from a similar test in GDB. - Copyright 2008, 2009 Free Software Foundation, Inc. + Copyright (C) 2008-2014 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 diff --git a/binutils-2.25/binutils/testsuite/binutils-all/dw2-decodedline-1.S b/binutils-2.25/binutils/testsuite/binutils-all/dw2-decodedline-1.S new file mode 100644 index 00000000..aa94ded6 --- /dev/null +++ b/binutils-2.25/binutils/testsuite/binutils-all/dw2-decodedline-1.S @@ -0,0 +1,16 @@ + .file "dw2-decodedline.c" + .file 1 "dw2-decodedline.c" + .file 2 "directory/file1.c" + .text +.globl f1 + .type f1, %function +f1: + .loc 2 1 0 + l.nop + .size f1, .-f1 +.globl main + .type main, %function +main: + .loc 1 2 0 + l.nop + .size main, .-main diff --git a/binutils-2.25/binutils/testsuite/binutils-all/elfedit.exp b/binutils-2.25/binutils/testsuite/binutils-all/elfedit.exp index 500906d3..c5465dcc 100644 --- a/binutils-2.25/binutils/testsuite/binutils-all/elfedit.exp +++ b/binutils-2.25/binutils/testsuite/binutils-all/elfedit.exp @@ -1,5 +1,4 @@ -# Copyright 2010, 2011 -# Free Software Foundation, Inc. +# Copyright (C) 2010-2014 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 diff --git a/binutils-2.25/binutils/testsuite/binutils-all/hppa/objdump.exp b/binutils-2.25/binutils/testsuite/binutils-all/hppa/objdump.exp index c6d16404..833230bf 100644 --- a/binutils-2.25/binutils/testsuite/binutils-all/hppa/objdump.exp +++ b/binutils-2.25/binutils/testsuite/binutils-all/hppa/objdump.exp @@ -1,5 +1,4 @@ -# Copyright 1993, 1994, 1995, 1997, 1999, 2000, 2002, 2007, 2009 -# Free Software Foundation, Inc. +# Copyright (C) 1993-2014 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 diff --git a/binutils-2.25/binutils/testsuite/binutils-all/i386/compressed-1a.d b/binutils-2.25/binutils/testsuite/binutils-all/i386/compressed-1a.d index f1883aa2..5f02defb 100644 --- a/binutils-2.25/binutils/testsuite/binutils-all/i386/compressed-1a.d +++ b/binutils-2.25/binutils/testsuite/binutils-all/i386/compressed-1a.d @@ -35,28 +35,28 @@ Contents of the .[z]?debug_info section: Abbrev Offset: 0x0 Pointer Size: 4 <0><b>: Abbrev Number: 1 \(DW_TAG_compile_unit\) - <c> DW_AT_producer : \(indirect string, offset: 0x0\): GNU C 4.4.4 + <c> DW_AT_producer : \(indirect string, offset: 0x0\): GNU C 4.4.4 <10> DW_AT_language : 1 \(ANSI C\) - <11> DW_AT_name : \(indirect string, offset: 0x18\): compressed-1.c - <15> DW_AT_comp_dir : \(indirect string, offset: 0x16\): . - <19> DW_AT_low_pc : 0x0 - <1d> DW_AT_high_pc : 0x1b - <21> DW_AT_stmt_list : 0x0 + <11> DW_AT_name : \(indirect string, offset: 0x18\): compressed-1.c + <15> DW_AT_comp_dir : \(indirect string, offset: 0x16\): . + <19> DW_AT_low_pc : 0x0 + <1d> DW_AT_high_pc : 0x1b + <21> DW_AT_stmt_list : 0x0 <1><25>: Abbrev Number: 2 \(DW_TAG_subprogram\) - <26> DW_AT_external : 1 - <27> DW_AT_name : \(indirect string, offset: 0xc\): foo2 - <2b> DW_AT_decl_file : 1 - <2c> DW_AT_decl_line : 10 - <2d> DW_AT_low_pc : 0x0 - <31> DW_AT_high_pc : 0x2 + <26> DW_AT_external : 1 + <27> DW_AT_name : \(indirect string, offset: 0xc\): foo2 + <2b> DW_AT_decl_file : 1 + <2c> DW_AT_decl_line : 10 + <2d> DW_AT_low_pc : 0x0 + <31> DW_AT_high_pc : 0x2 <35> DW_AT_frame_base : 1 byte block: 9c \(DW_OP_call_frame_cfa\) <1><37>: Abbrev Number: 2 \(DW_TAG_subprogram\) - <38> DW_AT_external : 1 - <39> DW_AT_name : \(indirect string, offset: 0x11\): foo1 - <3d> DW_AT_decl_file : 1 - <3e> DW_AT_decl_line : 4 - <3f> DW_AT_low_pc : 0x10 - <43> DW_AT_high_pc : 0x1b + <38> DW_AT_external : 1 + <39> DW_AT_name : \(indirect string, offset: 0x11\): foo1 + <3d> DW_AT_decl_file : 1 + <3e> DW_AT_decl_line : 4 + <3f> DW_AT_low_pc : 0x10 + <43> DW_AT_high_pc : 0x1b <47> DW_AT_frame_base : 1 byte block: 9c \(DW_OP_call_frame_cfa\) <1><49>: Abbrev Number: 0 diff --git a/binutils-2.25/binutils/testsuite/binutils-all/i386/i386.exp b/binutils-2.25/binutils/testsuite/binutils-all/i386/i386.exp index 4b9fffdc..7b85ba43 100644 --- a/binutils-2.25/binutils/testsuite/binutils-all/i386/i386.exp +++ b/binutils-2.25/binutils/testsuite/binutils-all/i386/i386.exp @@ -1,5 +1,4 @@ -# Copyright 2010, 2012 -# Free Software Foundation, Inc. +# Copyright (C) 2010-2014 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 diff --git a/binutils-2.25/binutils/testsuite/binutils-all/m68k/objdump.exp b/binutils-2.25/binutils/testsuite/binutils-all/m68k/objdump.exp index 5043ef7e..c50009b6 100644 --- a/binutils-2.25/binutils/testsuite/binutils-all/m68k/objdump.exp +++ b/binutils-2.25/binutils/testsuite/binutils-all/m68k/objdump.exp @@ -1,5 +1,4 @@ -# Copyright 2004, 2007, 2009, 2010 -# Free Software Foundation, Inc. +# Copyright (C) 2004-2014 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 diff --git a/binutils-2.25/binutils/testsuite/binutils-all/mips/mips.exp b/binutils-2.25/binutils/testsuite/binutils-all/mips/mips.exp index eba88680..b3253074 100644 --- a/binutils-2.25/binutils/testsuite/binutils-all/mips/mips.exp +++ b/binutils-2.25/binutils/testsuite/binutils-all/mips/mips.exp @@ -1,5 +1,4 @@ -# Copyright 2013 -# Free Software Foundation, Inc. +# Copyright (C) 2013-2014 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 diff --git a/binutils-2.25/binutils/testsuite/binutils-all/nm.exp b/binutils-2.25/binutils/testsuite/binutils-all/nm.exp index e9e7f5fb..1a5667bb 100644 --- a/binutils-2.25/binutils/testsuite/binutils-all/nm.exp +++ b/binutils-2.25/binutils/testsuite/binutils-all/nm.exp @@ -1,4 +1,4 @@ -# Copyright 1993, 1994, 1995, 1997, 2007, 2009 Free Software Foundation, Inc. +# Copyright (C) 1993-2014 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 diff --git a/binutils-2.25/binutils/testsuite/binutils-all/objcopy.exp b/binutils-2.25/binutils/testsuite/binutils-all/objcopy.exp index 4dfb73c7..49d466d7 100644 --- a/binutils-2.25/binutils/testsuite/binutils-all/objcopy.exp +++ b/binutils-2.25/binutils/testsuite/binutils-all/objcopy.exp @@ -1,6 +1,4 @@ -# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, -# 2004, 2006, 2007, 2009, 2010, 2011 -# Free Software Foundation, Inc. +# Copyright (C) 1994-2014 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 @@ -86,7 +84,6 @@ proc objcopy_test {testname srcfile} { 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*" setup_xfail "tic80-*-*" "w65-*" @@ -956,8 +953,10 @@ if [is_elf_format] { run_dump_test "strip-7" run_dump_test "strip-8" run_dump_test "strip-9" + # Non-EABI ARM targets will set OSABI to ARM if { ![istarget "*-*-hpux*"] - && ![istarget "msp*-*-*"] } { + && ![istarget "msp*-*-*"] + && !([istarget "arm*-*-*"] && ![istarget "arm-*-*eabi*"])} { run_dump_test "strip-10" } @@ -983,12 +982,14 @@ if [is_elf_format] { # The symbol table for some MIPS targets is sorted differently than # the ELF canonical order, so the regexps in localize-hidden-1.d fail # to match. These tests must be matched to targets for which - # targ_defvec=bfd_elf32_bigmips_vec, - # targ_defvec=bfd_elf32_littlemips_vec, - # targ_defvec=bfd_elf32_nbigmips_vec or - # targ_defvec=bfd_elf32_nlittlemips_vec in config.bfd. When syncing, + # targ_defvec=mips_elf32_be_vec, + # targ_defvec=mips_elf32_le_vec, + # targ_defvec=mips_elf32_n_be_vec or + # targ_defvec=mips_elf32_n_le_vec in config.bfd. When syncing, # don't forget that earlier case-matches trump later ones. - if { ![istarget "mips*-sde-elf*"] && ![istarget "mips64*-*-openbsd*"] } { + if { ![istarget "mips*-sde-elf*"] && ![istarget "mips*-mti-elf*"] + && ![istarget "mips*-img-elf*"] + && ![istarget "mips64*-*-openbsd*"] } { setup_xfail "mips*-*-irix5*" "mips*-*-irix6*" "mips*-*-elf*" \ "mips*-*-rtems*" "mips*-*-windiss" "mips*-*-none" \ "mips*-*-openbsd*" "mips*-*-chorus*" diff --git a/binutils-2.25/binutils/testsuite/binutils-all/objdump.W b/binutils-2.25/binutils/testsuite/binutils-all/objdump.W index f544d829..48dde487 100644 --- a/binutils-2.25/binutils/testsuite/binutils-all/objdump.W +++ b/binutils-2.25/binutils/testsuite/binutils-all/objdump.W @@ -9,24 +9,24 @@ Contents of the .debug_info section: Abbrev Offset: 0x0 Pointer Size: 4 <0><b>: Abbrev Number: 1 \(DW_TAG_compile_unit\) - <c> DW_AT_stmt_list : 0x0 - <10> DW_AT_high_pc : 0x. - <14> DW_AT_low_pc : 0x. - <18> DW_AT_name : file1.txt - <22> DW_AT_producer : GNU C 3.3.3 + <c> DW_AT_stmt_list : 0x0 + <10> DW_AT_high_pc : 0x. + <14> DW_AT_low_pc : 0x. + <18> DW_AT_name : file1.txt + <22> DW_AT_producer : GNU C 3.3.3 <2e> DW_AT_language : 1 \(ANSI C\) <1><2f>: Abbrev Number: 2 \(DW_TAG_subprogram\) - <30> DW_AT_external : 1 - <31> DW_AT_decl_file : 1 - <32> DW_AT_decl_line : 2 - <33> DW_AT_name : func_cu1 - <3c> DW_AT_type : <0x4a> - <40> DW_AT_low_pc : 0x. - <44> DW_AT_high_pc : 0x. + <30> DW_AT_external : 1 + <31> DW_AT_decl_file : 1 + <32> DW_AT_decl_line : 2 + <33> DW_AT_name : func_cu1 + <3c> DW_AT_type : <0x4a> + <40> DW_AT_low_pc : 0x. + <44> DW_AT_high_pc : 0x. <48> DW_AT_frame_base : 1 byte block: 55 \(DW_OP_reg5 \([^()]*\)\) <1><4a>: Abbrev Number: 3 \(DW_TAG_base_type\) - <4b> DW_AT_name : int - <4f> DW_AT_byte_size : 4 + <4b> DW_AT_name : int + <4f> DW_AT_byte_size : 4 <50> DW_AT_encoding : 5 \(signed\) <1><51>: Abbrev Number: 0 diff --git a/binutils-2.25/binutils/testsuite/binutils-all/objdump.exp b/binutils-2.25/binutils/testsuite/binutils-all/objdump.exp index b330a321..430ba932 100644 --- a/binutils-2.25/binutils/testsuite/binutils-all/objdump.exp +++ b/binutils-2.25/binutils/testsuite/binutils-all/objdump.exp @@ -1,6 +1,4 @@ -# Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2007, 2008, 2009, 2011, 2012 -# Free Software Foundation, Inc. +# Copyright (C) 1993-2014 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 @@ -39,8 +37,8 @@ set cpus_expected [list] lappend cpus_expected aarch64 alpha arc arm cris lappend cpus_expected d10v d30v fr30 fr500 fr550 h8 hppa i386 i860 i960 ip2022 lappend cpus_expected m16c m32c m32r m68hc11 m68hc12 m68k m88k MCore MicroBlaze -lappend cpus_expected mips mn10200 mn10300 ms1 msp ns32k pj powerpc pyramid -lappend cpus_expected romp rs6000 s390 sh sparc +lappend cpus_expected mips mn10200 mn10300 ms1 msp MSP430 nds32 n1h_v3 ns32k +lappend cpus_expected or1k or1knd pj powerpc pyramid romp rs6000 s390 sh sparc lappend cpus_expected tahoe tic54x tic80 tilegx tms320c30 tms320c4x tms320c54x lappend cpus_expected v850 vax we32k x86-64 xscale xtensa z8k z8001 z8002 @@ -203,7 +201,7 @@ if { ![is_elf_format] || ![is_zlib_supported] } then { } # Test objdump -WL on a file that contains line information for multiple files and search directories. -# Not supported on mcore, moxie and openrisc targets because they do not (yet) support the generation +# Not supported on mcore and moxie targets because they do not (yet) support the generation # of DWARF2 line debug information. if { ![is_elf_format] @@ -213,12 +211,15 @@ if { ![is_elf_format] || [istarget "ia64*-*-*"] || [istarget "mcore-*-*"] || [istarget "moxie-*-*"] - || [istarget "openrisc-*-*"] - || [istarget "or32-*-*"] } then { unsupported "objump decode line" } else { - if { ![binutils_assemble $srcdir/$subdir/dw2-decodedline.S tmpdir/dw2-decodedline.o] } then { + if { [istarget "or1k*-*-*"] } then { + set decodedline_testsrc $srcdir/$subdir/dw2-decodedline-1.S + } else { + set decodedline_testsrc $srcdir/$subdir/dw2-decodedline.S + } + if { ![binutils_assemble $decodedline_testsrc tmpdir/dw2-decodedline.o] } then { fail "objdump decoded line" } diff --git a/binutils-2.25/binutils/testsuite/binutils-all/readelf.exp b/binutils-2.25/binutils/testsuite/binutils-all/readelf.exp index db56a868..e45d6ea2 100644 --- a/binutils-2.25/binutils/testsuite/binutils-all/readelf.exp +++ b/binutils-2.25/binutils/testsuite/binutils-all/readelf.exp @@ -1,4 +1,4 @@ -# Copyright 1999-2013 Free Software Foundation, Inc. +# Copyright (C) 1999-2014 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 @@ -102,6 +102,8 @@ proc readelf_test { options binary_file regexp_file xfails } { if [istarget "mips*-*-*"] then { if { [istarget "mips*-*-*linux*"] || [istarget "mips*-sde-elf*"] + || [istarget "mips*-mti-elf*"] + || [istarget "mips*-img-elf*"] || [istarget "mips*-*freebsd*"] } then { set target_machine tmips } else { diff --git a/binutils-2.25/binutils/testsuite/binutils-all/readelf.r b/binutils-2.25/binutils/testsuite/binutils-all/readelf.r index 689049f1..065fccf5 100644 --- a/binutils-2.25/binutils/testsuite/binutils-all/readelf.r +++ b/binutils-2.25/binutils/testsuite/binutils-all/readelf.r @@ -1,4 +1,6 @@ -Relocation section '.rel.*text' at offset 0x.* contains 1 entries: +Relocation section '.rel.*text' at offset 0x.* contains . entries: Offset Info Type Sym.Value Sym. Name.* +# NDS32 targets puts R_NDS32_RELAX_ENT here +#... 00000004 [0-9A-Fa-f]+ *R_.*00000000 external_symbol.* diff --git a/binutils-2.25/binutils/testsuite/binutils-all/readelf.s b/binutils-2.25/binutils/testsuite/binutils-all/readelf.s index 8361a7eb..3b044b10 100644 --- a/binutils-2.25/binutils/testsuite/binutils-all/readelf.s +++ b/binutils-2.25/binutils/testsuite/binutils-all/readelf.s @@ -6,16 +6,16 @@ Section Headers: # 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 + +\[ 2\] .rel.+text +REL. +0+ 0+.* 0000.. 0. +I +.+ +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. +# MIPS targets put .reginfo, .mdebug, .MIPS.abiflags and .gnu.attributes 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 + +\[..\] .symtab +SYMTAB +00000000 0+.* 0+.* 10 +.. +.+ +4 +\[..\] .strtab +STRTAB +00000000 0+.* 0+.* 00 +0 +0 +1 Key to Flags: #... diff --git a/binutils-2.25/binutils/testsuite/binutils-all/readelf.s-64 b/binutils-2.25/binutils/testsuite/binutils-all/readelf.s-64 index ec31f3f2..2e05d681 100644 --- a/binutils-2.25/binutils/testsuite/binutils-all/readelf.s-64 +++ b/binutils-2.25/binutils/testsuite/binutils-all/readelf.s-64 @@ -8,7 +8,7 @@ Section Headers: +\[ 1\] .text +PROGBITS +0000000000000000 +00000040 +00000000000000.. +0000000000000000 +AX +0 +0 +.* +\[ 2\] .rel.+text +REL. +0+ +0+.* - +000000000000001. +000000000000001. +. +1 +8 + +000000000000001. +000000000000001. +I +. +1 +8 +\[ 3\] .data +PROGBITS +0000000000000000 +000000(48|50) +000000000000000[48] +0000000000000000 +WA +0 +0 +.* +\[ 4\] .bss +NOBITS +0000000000000000 +000000(4c|50|54|58) diff --git a/binutils-2.25/binutils/testsuite/binutils-all/readelf.ss b/binutils-2.25/binutils/testsuite/binutils-all/readelf.ss index 9bb0f2ed..e9ab3ef3 100644 --- a/binutils-2.25/binutils/testsuite/binutils-all/readelf.ss +++ b/binutils-2.25/binutils/testsuite/binutils-all/readelf.ss @@ -16,3 +16,5 @@ Symbol table '.symtab' contains .* entries: +..: 00000000 +0 +NOTYPE +GLOBAL +DEFAULT +UND external_symbol +..: 00000000 +0 +NOTYPE +GLOBAL +DEFAULT +[34] data_symbol +..: 00000004 +4 +(COMMON|OBJECT) +GLOBAL +DEFAULT +(COM|ANSI_COM) common_symbol +# The MSP430 adds special crt0 symbols here. +#... diff --git a/binutils-2.25/binutils/testsuite/binutils-all/readelf.ss-mips b/binutils-2.25/binutils/testsuite/binutils-all/readelf.ss-mips index fd975520..01d3df19 100644 --- a/binutils-2.25/binutils/testsuite/binutils-all/readelf.ss-mips +++ b/binutils-2.25/binutils/testsuite/binutils-all/readelf.ss-mips @@ -1,15 +1,17 @@ -Symbol table '.symtab' contains 12 entries: +Symbol table '.symtab' contains 14 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 +(COMMON|OBJECT) +GLOBAL +DEFAULT +(PRC|COM) common_symbol + +5: 00000000 +0 +SECTION +LOCAL +DEFAULT +. (|\.MIPS\.abiflags) + +6: 00000000 +0 +SECTION +LOCAL +DEFAULT +. (|\.pdr) + +7: 00000000 +0 +SECTION +LOCAL +DEFAULT +. (|\.gnu\.attributes) + +8: 00000000 +0 +OBJECT +GLOBAL +DEFAULT +. text_symbol + +9: 00000000 +0 +NOTYPE +LOCAL +DEFAULT +. static_text_symbol + +10: 00000000 +0 +NOTYPE +GLOBAL +DEFAULT +UND external_symbol + +11: 00000000 +0 +OBJECT +GLOBAL +DEFAULT +. data_symbol + +12: 00000000 +0 +NOTYPE +LOCAL +DEFAULT +. static_data_symbol + +13: 00000004 +4 +(COMMON|OBJECT) +GLOBAL +DEFAULT +(PRC|COM) common_symbol diff --git a/binutils-2.25/binutils/testsuite/binutils-all/readelf.ss-tmips b/binutils-2.25/binutils/testsuite/binutils-all/readelf.ss-tmips index 1f872489..c59f7531 100644 --- a/binutils-2.25/binutils/testsuite/binutils-all/readelf.ss-tmips +++ b/binutils-2.25/binutils/testsuite/binutils-all/readelf.ss-tmips @@ -1,5 +1,5 @@ -Symbol table '.symtab' contains 12 entries: +Symbol table '.symtab' contains 14 entries: +Num: +Value +Size +Type +Bind +Vis +Ndx +Name +0: 00000000 +0 +NOTYPE +LOCAL +DEFAULT +UND +1: 00000000 +0 +SECTION +LOCAL +DEFAULT +1 @@ -9,7 +9,9 @@ Symbol table '.symtab' contains 12 entries: +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 +(COMMON|OBJECT) +GLOBAL +DEFAULT +(PRC|COM) common_symbol + +8: 00000000 +0 +SECTION +LOCAL +DEFAULT +7 + +9: 00000000 +0 +SECTION +LOCAL +DEFAULT +8 + +10: 00000000 +0 +OBJECT +GLOBAL +DEFAULT +1 text_symbol + +11: 00000000 +0 +NOTYPE +GLOBAL +DEFAULT +UND external_symbol + +12: 00000000 +0 +OBJECT +GLOBAL +DEFAULT +3 data_symbol + +13: 00000004 +4 +(COMMON|OBJECT) +GLOBAL +DEFAULT +(PRC|COM) common_symbol diff --git a/binutils-2.25/binutils/testsuite/binutils-all/size.exp b/binutils-2.25/binutils/testsuite/binutils-all/size.exp index 5050a548..47cf91b6 100644 --- a/binutils-2.25/binutils/testsuite/binutils-all/size.exp +++ b/binutils-2.25/binutils/testsuite/binutils-all/size.exp @@ -1,5 +1,4 @@ -# Copyright 1993, 1994, 1995, 1997, 1998, 2007, 2009 -# Free Software Foundation, Inc. +# Copyright (C) 1993-2014 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 diff --git a/binutils-2.25/binutils/testsuite/binutils-all/strip-10.d b/binutils-2.25/binutils/testsuite/binutils-all/strip-10.d index 588c7d12..f4cf76d2 100644 --- a/binutils-2.25/binutils/testsuite/binutils-all/strip-10.d +++ b/binutils-2.25/binutils/testsuite/binutils-all/strip-10.d @@ -1,8 +1,10 @@ #PROG: strip #source: unique.s #strip: -g -#readelf: -s +#readelf: -sh #name: strip on STB_GNU_UNIQUE #... + OS/ABI:[ \t]+UNIX - GNU +#... +[0-9]+: +[0-9a-f]+ +[0-9]+ +OBJECT +(UNIQUE|<OS specific>: 10) +DEFAULT +[1-9] foo diff --git a/binutils-2.25/binutils/testsuite/binutils-all/strip-3.d b/binutils-2.25/binutils/testsuite/binutils-all/strip-3.d index acfec85d..ee2708e4 100644 --- a/binutils-2.25/binutils/testsuite/binutils-all/strip-3.d +++ b/binutils-2.25/binutils/testsuite/binutils-all/strip-3.d @@ -1,6 +1,6 @@ #PROG: strip #source: empty.s -#strip: -R .text -R .data -R .bss -R .ARM.attributes -R .reginfo -R .pdr -R .xtensa.info +#strip: -R .text -R .data -R .bss -R .ARM.attributes -R .reginfo -R .gnu.attributes -R .MIPS.abiflags -R .pdr -R .xtensa.info #readelf: -S --wide #name: strip empty file #target: *-*-linux* *-*-gnu* diff --git a/binutils-2.25/binutils/testsuite/binutils-all/vax/objdump.exp b/binutils-2.25/binutils/testsuite/binutils-all/vax/objdump.exp index f4734a5b..1cbbedd8 100644 --- a/binutils-2.25/binutils/testsuite/binutils-all/vax/objdump.exp +++ b/binutils-2.25/binutils/testsuite/binutils-all/vax/objdump.exp @@ -1,6 +1,5 @@ # -# Copyright 1993, 1994, 1995, 1997, 1999, 2000, 2002, 2005, 2007, 2009 -# Free Software Foundation, Inc. +# Copyright (C) 1993-2014 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 diff --git a/binutils-2.25/binutils/testsuite/binutils-all/windres/README b/binutils-2.25/binutils/testsuite/binutils-all/windres/README index 67114461..4658cb32 100644 --- a/binutils-2.25/binutils/testsuite/binutils-all/windres/README +++ b/binutils-2.25/binutils/testsuite/binutils-all/windres/README @@ -26,7 +26,7 @@ parsing or comparing should be xfailed. The windres tests only run for ix86 targets, because the MSVC-generated *.rsd files are generated for that. -Copyright (C) 2012 Free Software Foundation, Inc. +Copyright (C) 2012-2014 Free Software Foundation, Inc. Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright diff --git a/binutils-2.25/binutils/testsuite/binutils-all/windres/msupdate b/binutils-2.25/binutils/testsuite/binutils-all/windres/msupdate index 94d36988..f723c978 100755 --- a/binutils-2.25/binutils/testsuite/binutils-all/windres/msupdate +++ b/binutils-2.25/binutils/testsuite/binutils-all/windres/msupdate @@ -1,5 +1,5 @@ #!/bin/sh -# Copyright 2001, 2007, 2009 Free Software Foundation, Inc. +# Copyright (C) 2001-2014 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 diff --git a/binutils-2.25/binutils/testsuite/binutils-all/windres/windres.exp b/binutils-2.25/binutils/testsuite/binutils-all/windres/windres.exp index 2ef73ffe..77ef7b89 100644 --- a/binutils-2.25/binutils/testsuite/binutils-all/windres/windres.exp +++ b/binutils-2.25/binutils/testsuite/binutils-all/windres/windres.exp @@ -1,4 +1,4 @@ -# Copyright 2001, 2003, 2004, 2006, 2007, 2009 Free Software Foundation, Inc. +# Copyright (C) 2001-2014 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 @@ -19,15 +19,18 @@ # Written by DJ Delorie <dj@redhat.com> -if {![istarget "i*86-*-*"] && ![istarget "x86_64-*-mingw*"] } { +if {![istarget "i*86-*-*"] && ![istarget "x86_64-*-mingw*"] && ![istarget "x86_64-*-cygwin"] } { + verbose "Not a Cygwin/Mingw target" 1 return } if {![info exists WINDRES]} then { + verbose "WINDRES not defined" 1 return } if {[which $WINDRES] == 0} then { + verbose "$WINDRES not found" 1 return } @@ -139,3 +142,37 @@ foreach res $res_list { file delete "tmpdir/$broot.dump" } } + +# Test objdump -p + +if {[which $OBJDUMP] == 0} then { + unsupported "objdump -p" + return +} + +verbose "$wr $cpp_opts -J rc $srcdir/$subdir/version.rc tmpdir/version.o" 1 +catch "exec $wr $cpp_opts -J rc $srcdir/$subdir/version.rc tmpdir/version.o" err + +if ![string match "" $err] then { + send_log "$err\n" + verbose "$err" 1 + if [string match "*windows.h: No such file*" $err] then { + unsupported "objdump -p (no header files found)" + } else { + fail "objdump -p (build)" + } + continue +} + +set got [binutils_run $OBJDUMP "$OBJDUMPFLAGS -p tmpdir/version.o"] + +# FIXME: We should extend this regexp to check for more information. +set want ".*The .rsrc Resource Directory section.*Type Table:.*Entry: ID:.*Name Table:.*Entry: ID:.*Language Table:.*Entry: ID:.*" + +if ![regexp $want $got] then { + fail "objdump -p" +} else { + pass "objdump -p" +} + +# file delete "tmpdir/version.o" diff --git a/binutils-2.25/binutils/testsuite/binutils-all/x86-64/compressed-1a.d b/binutils-2.25/binutils/testsuite/binutils-all/x86-64/compressed-1a.d index f1e4bbcd..574b719b 100644 --- a/binutils-2.25/binutils/testsuite/binutils-all/x86-64/compressed-1a.d +++ b/binutils-2.25/binutils/testsuite/binutils-all/x86-64/compressed-1a.d @@ -35,28 +35,28 @@ Contents of the .[z]?debug_info section: Abbrev Offset: 0x0 Pointer Size: 8 <0><b>: Abbrev Number: 1 \(DW_TAG_compile_unit\) - <c> DW_AT_producer : \(indirect string, offset: 0x0\): GNU C 4.4.4 + <c> DW_AT_producer : \(indirect string, offset: 0x0\): GNU C 4.4.4 <10> DW_AT_language : 1 \(ANSI C\) - <11> DW_AT_name : \(indirect string, offset: 0x18\): compressed-1.c - <15> DW_AT_comp_dir : \(indirect string, offset: 0x16\): . - <19> DW_AT_low_pc : 0x0 - <21> DW_AT_high_pc : 0x15 - <29> DW_AT_stmt_list : 0x0 + <11> DW_AT_name : \(indirect string, offset: 0x18\): compressed-1.c + <15> DW_AT_comp_dir : \(indirect string, offset: 0x16\): . + <19> DW_AT_low_pc : 0x0 + <21> DW_AT_high_pc : 0x15 + <29> DW_AT_stmt_list : 0x0 <1><2d>: Abbrev Number: 2 \(DW_TAG_subprogram\) - <2e> DW_AT_external : 1 - <2f> DW_AT_name : \(indirect string, offset: 0xc\): foo2 - <33> DW_AT_decl_file : 1 - <34> DW_AT_decl_line : 10 - <35> DW_AT_low_pc : 0x0 - <3d> DW_AT_high_pc : 0x2 + <2e> DW_AT_external : 1 + <2f> DW_AT_name : \(indirect string, offset: 0xc\): foo2 + <33> DW_AT_decl_file : 1 + <34> DW_AT_decl_line : 10 + <35> DW_AT_low_pc : 0x0 + <3d> DW_AT_high_pc : 0x2 <45> DW_AT_frame_base : 1 byte block: 9c \(DW_OP_call_frame_cfa\) <1><47>: Abbrev Number: 2 \(DW_TAG_subprogram\) - <48> DW_AT_external : 1 - <49> DW_AT_name : \(indirect string, offset: 0x11\): foo1 - <4d> DW_AT_decl_file : 1 - <4e> DW_AT_decl_line : 4 - <4f> DW_AT_low_pc : 0x10 - <57> DW_AT_high_pc : 0x15 + <48> DW_AT_external : 1 + <49> DW_AT_name : \(indirect string, offset: 0x11\): foo1 + <4d> DW_AT_decl_file : 1 + <4e> DW_AT_decl_line : 4 + <4f> DW_AT_low_pc : 0x10 + <57> DW_AT_high_pc : 0x15 <5f> DW_AT_frame_base : 1 byte block: 9c \(DW_OP_call_frame_cfa\) <1><61>: Abbrev Number: 0 @@ -135,7 +135,7 @@ Contents of the .[z]?debug_str section: Contents of the .[z]?debug_frame section: -00000000 0+014 ffffffff CIE +0+ 0+14 0*ffffffff CIE Version: 1 Augmentation: "" Code alignment factor: 1 @@ -151,7 +151,7 @@ Contents of the .[z]?debug_frame section: DW_CFA_nop DW_CFA_nop -00000018 0+014 00000000 FDE cie=00000000 pc=0+0000..0+0002 +0+18 0+14 0+ FDE cie=0+ pc=0+..0+2 -00000030 0+014 00000000 FDE cie=00000000 pc=0+0010..0+0015 +0+30 0+14 0+ FDE cie=0+ pc=0+10..0+15 diff --git a/binutils-2.25/binutils/testsuite/binutils-all/x86-64/x86-64.exp b/binutils-2.25/binutils/testsuite/binutils-all/x86-64/x86-64.exp index ccabc635..0bb1c9fb 100644 --- a/binutils-2.25/binutils/testsuite/binutils-all/x86-64/x86-64.exp +++ b/binutils-2.25/binutils/testsuite/binutils-all/x86-64/x86-64.exp @@ -1,5 +1,4 @@ -# Copyright 2010, 2012 -# Free Software Foundation, Inc. +# Copyright (C) 2010-2014 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 |