blob: b256bbf4cd4457e10e603727ca467ecd4f65d217 [file] [log] [blame]
Rafael Espindola40a7dbb2011-05-10 03:54:12 +00001// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | elf-dump --dump-section-data | FileCheck -check-prefix=ELF_64 %s
2// RUN: llvm-mc -filetype=obj -triple i686-pc-linux-gnu %s -o - | elf-dump --dump-section-data | FileCheck -check-prefix=ELF_32 %s
3
Rafael Espindola40a7dbb2011-05-10 03:54:12 +00004.cfi_sections .debug_frame
5
6f1:
7 .cfi_startproc
8 nop
9 .cfi_endproc
10
11f2:
12 .cfi_startproc
13 nop
14 .cfi_endproc
15
16// ELF_64: (('sh_name', 0x00000011) # '.debug_frame'
17// ELF_64-NEXT: ('sh_type', 0x00000001)
Rafael Espindola5c4e52e2011-08-04 17:00:11 +000018// ELF_64-NEXT: ('sh_flags', 0x0000000000000000)
19// ELF_64-NEXT: ('sh_addr', 0x0000000000000000)
20// ELF_64-NEXT: ('sh_offset', 0x0000000000000048)
21// ELF_64-NEXT: ('sh_size', 0x0000000000000048)
Rafael Espindola40a7dbb2011-05-10 03:54:12 +000022// ELF_64-NEXT: ('sh_link', 0x00000000)
23// ELF_64-NEXT: ('sh_info', 0x00000000)
Rafael Espindola5c4e52e2011-08-04 17:00:11 +000024// ELF_64-NEXT: ('sh_addralign', 0x0000000000000008)
25// ELF_64-NEXT: ('sh_entsize', 0x0000000000000000)
Rafael Espindola0d450dc2011-05-10 15:20:23 +000026// ELF_64-NEXT: ('_section_data', '14000000 ffffffff 01000178 100c0708 90010000 00000000 14000000 00000000 00000000 00000000 01000000 00000000 14000000 00000000 00000000 00000000 01000000 00000000')
Rafael Espindola40a7dbb2011-05-10 03:54:12 +000027
28// ELF_32: (('sh_name', 0x00000010) # '.debug_frame'
29// ELF_32-NEXT: ('sh_type', 0x00000001)
30// ELF_32-NEXT: ('sh_flags', 0x00000000)
31// ELF_32-NEXT: ('sh_addr', 0x00000000)
32// ELF_32-NEXT: ('sh_offset', 0x00000038)
33// ELF_32-NEXT: ('sh_size', 0x00000034)
34// ELF_32-NEXT: ('sh_link', 0x00000000)
35// ELF_32-NEXT: ('sh_info', 0x00000000)
36// ELF_32-NEXT: ('sh_addralign', 0x00000004)
37// ELF_32-NEXT: ('sh_entsize', 0x00000000)
Rafael Espindola0d450dc2011-05-10 15:20:23 +000038// ELF_32-NEXT: ('_section_data', '10000000 ffffffff 0100017c 080c0404 88010000 0c000000 00000000 00000000 01000000 0c000000 00000000 01000000 01000000')