mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-19 07:13:40 +08:00
8ffb70eb57
This merges the three versions of run_dump_test. Improved warning handling versus the old gas version shows up a number of tests that need their disassembly updating: arm-linuxeabi +FAIL: ARM v1 instructions arm-linuxeabi +FAIL: Accepted v8-a with ARMv8.1 AdvSIMD. arm-linuxeabi +FAIL: bl local instructions for v4t. arm-linuxeabi +FAIL: UDF and some that now fail due to detecting assembly warnings: h8300-elf +FAIL: binutils-all/strip-13 h8300-elf +FAIL: binutils-all/strip-14 h8300-elf +FAIL: binutils-all/strip-15 I've generally kept the union of all run_dump_test features, except that the ld target aliases "cfi" and "shared" have disappeared, as has the binutils substitution of $srcdir as $scrdir/$subdir. binutils/ * testsuite/binutils-all/add-symbol.d: Add "section_subst: no". * testsuite/binutils-all/elfedit.exp: Don't set tempfile or copyfile. * testsuite/binutils-all/symbols-1.d, * testsuite/binutils-all/symbols-2.d, * testsuite/binutils-all/symbols-3.d, * testsuite/binutils-all/symbols-4.d: Quote '*' and '!'. * testsuite/binutils-all/add-empty-section.d, * testsuite/binutils-all/add-section.d, * testsuite/binutils-all/elfedit.exp, * testsuite/binutils-all/note-1.d, * testsuite/binutils-all/pr23633.d: Add $subdir after $srcdir. * testsuite/config/default.exp (AS, ASFLAGS): Define. * testsuite/config/hppa.sed: Handle all common symbols. * testsuite/lib/binutils-common.exp (run_dump_test): New proc, merged from three other versions. (slurp_options, file_contents, set_file_contents): Likewise. (big_or_little_endian, get_standard_section_names): Likewise. * testsuite/lib/utils-lib.exp (run_dump_test): Delete. (slurp_options, proc file_contents): Delete. (get_standard_section_names): Delete. gas/ * testsuite/config/default.exp: Make tmpdir. * testsuite/lib/gas-defs.exp (run_dump_test): Delete. (get_standard_section_names, slurp_options): Delete. ld/ * testsuite/ld-d10v/reloc-007.d, * testsuite/ld-d10v/reloc-008.d, * testsuite/ld-d10v/reloc-015.d, * testsuite/ld-d10v/reloc-016.d: Remove "error:". * testsuite/ld-elf/eh-frame-hdr.d, * testsuite/ld-elf/eh5.d, * testsuite/ld-gc/personality.d: Replace "cfi" and "shared" in target list with appropriate proc. * testsuite/ld-elf/frame.exp: Use check_shared_lib_support rather than "istarget shared". * testsuite/lib/ld-lib.exp (proc big_or_little_endian): Delete. (run_dump_test, slurp_options, file_contents): Delete. (set_file_contents, istarget): Delete.
163 lines
3.6 KiB
D
163 lines
3.6 KiB
D
#source: eh5.s
|
|
#source: eh5a.s
|
|
#source: eh5b.s
|
|
#ld:
|
|
#readelf: -wf
|
|
#target: [check_as_cfi]
|
|
#xfail: alpha-*-*ecoff hppa64-*-* tile*-*-* visium-*-*
|
|
|
|
Contents of the .eh_frame section:
|
|
|
|
0+0000 0+001[04] 0+0000 CIE
|
|
Version: 1
|
|
Augmentation: "zR"
|
|
Code alignment factor: .*
|
|
Data alignment factor: .*
|
|
Return address column: .*
|
|
Augmentation data: (0b|1b)
|
|
|
|
DW_CFA_nop
|
|
DW_CFA_nop
|
|
DW_CFA_nop
|
|
#...
|
|
0+001[48] 0+0014 0+001[8c] FDE cie=0+0000 pc=.*
|
|
DW_CFA_advance_loc: 4 to .*
|
|
DW_CFA_def_cfa: r0(.*) ofs 16
|
|
DW_CFA_nop
|
|
DW_CFA_nop
|
|
DW_CFA_nop
|
|
|
|
0+00(2c|30) 0+0014 0+0000 CIE
|
|
Version: 1
|
|
Augmentation: "zPR"
|
|
Code alignment factor: .*
|
|
Data alignment factor: .*
|
|
Return address column: .*
|
|
Augmentation data: 03 .. .. .. .. (0b|1b)
|
|
|
|
DW_CFA_nop
|
|
|
|
0+004[48] 0+0014 0+001c FDE cie=0+00(2c|30) pc=.*
|
|
DW_CFA_advance_loc: 4 to .*
|
|
DW_CFA_def_cfa: r0(.*) ofs 16
|
|
DW_CFA_nop
|
|
DW_CFA_nop
|
|
DW_CFA_nop
|
|
|
|
0+00(5c|60) 0+0014 0+006[04] FDE cie=0+0000 pc=.*
|
|
DW_CFA_advance_loc: 4 to .*
|
|
DW_CFA_def_cfa: r0(.*) ofs 16
|
|
DW_CFA_nop
|
|
DW_CFA_nop
|
|
DW_CFA_nop
|
|
|
|
0+007[48] 0+001[8c] 0+0000 CIE
|
|
Version: 1
|
|
Augmentation: "zPLR"
|
|
Code alignment factor: .*
|
|
Data alignment factor: .*
|
|
Return address column: .*
|
|
Augmentation data: 03 .. .. .. .. 0c (0b|1b)
|
|
|
|
DW_CFA_nop
|
|
DW_CFA_nop
|
|
DW_CFA_nop
|
|
#...
|
|
0+009[08] 0+001c 0+002[04] FDE cie=0+007[48] pc=.*
|
|
Augmentation data: (ef be ad de 00 00 00 00|00 00 00 00 de ad be ef)
|
|
|
|
DW_CFA_advance_loc: 4 to .*
|
|
DW_CFA_def_cfa: r0(.*) ofs 16
|
|
DW_CFA_nop
|
|
DW_CFA_nop
|
|
DW_CFA_nop
|
|
|
|
0+00b[08] 0+001[04] 0+0000 CIE
|
|
Version: 1
|
|
Augmentation: "zR"
|
|
Code alignment factor: .*
|
|
Data alignment factor: .*
|
|
Return address column: .*
|
|
Augmentation data: (0b|1b)
|
|
|
|
DW_CFA_def_cfa: r0(.*) ofs 16
|
|
#...
|
|
0+00(c4|d0) 0+001[04] 0+001[8c] FDE cie=0+00b[08] pc=.*
|
|
DW_CFA_nop
|
|
DW_CFA_nop
|
|
DW_CFA_nop
|
|
#...
|
|
0+00[de]8 0+0014 0+0000 CIE
|
|
Version: 1
|
|
Augmentation: "zPR"
|
|
Code alignment factor: .*
|
|
Data alignment factor: .*
|
|
Return address column: .*
|
|
Augmentation data: 03 .. .. .. .. (0b|1b)
|
|
|
|
DW_CFA_nop
|
|
|
|
0+0(0f|10)0 0+0014 0+001c FDE cie=0+00[de]8 pc=.*
|
|
DW_CFA_advance_loc: 4 to .*
|
|
DW_CFA_def_cfa: r0(.*) ofs 16
|
|
DW_CFA_nop
|
|
DW_CFA_nop
|
|
DW_CFA_nop
|
|
|
|
0+01[01]8 0+001[04] 0+00(5c|64) FDE cie=0+00b[08] pc=.*
|
|
DW_CFA_nop
|
|
DW_CFA_nop
|
|
DW_CFA_nop
|
|
#...
|
|
0+01(1c|30) 0+001[8c] 0+0000 CIE
|
|
Version: 1
|
|
Augmentation: "zPLR"
|
|
Code alignment factor: .*
|
|
Data alignment factor: .*
|
|
Return address column: .*
|
|
Augmentation data: 03 .. .. .. .. 0c (0b|1b)
|
|
|
|
DW_CFA_nop
|
|
DW_CFA_nop
|
|
DW_CFA_nop
|
|
#...
|
|
0+01(38|50) 0+001c 0+002[04] FDE cie=0+01(1c|30) pc=.*
|
|
Augmentation data: (ef be ad de 00 00 00 00|00 00 00 00 de ad be ef)
|
|
|
|
DW_CFA_advance_loc: 4 to .*
|
|
DW_CFA_def_cfa: r0(.*) ofs 16
|
|
DW_CFA_nop
|
|
DW_CFA_nop
|
|
DW_CFA_nop
|
|
|
|
0+01(58|70) 0+0014 0+01(5c|74) FDE cie=0+0000 pc=.*
|
|
DW_CFA_advance_loc: 4 to .*
|
|
DW_CFA_def_cfa: r0(.*) ofs 16
|
|
DW_CFA_nop
|
|
DW_CFA_nop
|
|
DW_CFA_nop
|
|
#...
|
|
0+01(70|88) 0+0014 0+0(01c|148|15c) FDE cie=0+0(02c|030|170) pc=.*
|
|
DW_CFA_advance_loc: 4 to .*
|
|
DW_CFA_def_cfa: r0(.*) ofs 16
|
|
DW_CFA_nop
|
|
DW_CFA_nop
|
|
DW_CFA_nop
|
|
|
|
0+01(88|a0) 0+0014 0+01(8c|a4) FDE cie=0+0000 pc=.*
|
|
DW_CFA_advance_loc: 4 to .*
|
|
DW_CFA_def_cfa: r0(.*) ofs 16
|
|
DW_CFA_nop
|
|
DW_CFA_nop
|
|
DW_CFA_nop
|
|
#...
|
|
0+01(a0|b8|d4) 0+001c 0+0(020|130|144) FDE cie=0+0(074|078|1b8) pc=.*
|
|
Augmentation data: (ef be ad de 00 00 00 00|00 00 00 00 de ad be ef)
|
|
|
|
DW_CFA_advance_loc: 4 to .*
|
|
DW_CFA_def_cfa: r0(.*) ofs 16
|
|
DW_CFA_nop
|
|
DW_CFA_nop
|
|
DW_CFA_nop
|
|
|