1// 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
4.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)
18// 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)
22// ELF_64-NEXT:  ('sh_link', 0x00000000)
23// ELF_64-NEXT:  ('sh_info', 0x00000000)
24// ELF_64-NEXT:  ('sh_addralign', 0x0000000000000008)
25// ELF_64-NEXT:  ('sh_entsize', 0x0000000000000000)
26// ELF_64-NEXT:  ('_section_data', '14000000 ffffffff 01000178 100c0708 90010000 00000000 14000000 00000000 00000000 00000000 01000000 00000000 14000000 00000000 00000000 00000000 01000000 00000000')
27
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)
38// ELF_32-NEXT:  ('_section_data', '10000000 ffffffff 0100017c 080c0404 88010000 0c000000 00000000 00000000 01000000 0c000000 00000000 01000000 01000000')
39