blob: a273e320c5973c7baf8784ebcf3965209e82b10c [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
4
5// The only difference in gas' output in this test is that we don't produce
6// the relocations to .debug_frame (we know their values).
7
8.cfi_sections .debug_frame
9
10f1:
11 .cfi_startproc
12 nop
13 .cfi_endproc
14
15f2:
16 .cfi_startproc
17 nop
18 .cfi_endproc
19
20// ELF_64: (('sh_name', 0x00000011) # '.debug_frame'
21// ELF_64-NEXT: ('sh_type', 0x00000001)
22// ELF_64-NEXT: ('sh_flags', 0x00000000)
23// ELF_64-NEXT: ('sh_addr', 0x00000000)
24// ELF_64-NEXT: ('sh_offset', 0x00000048)
25// ELF_64-NEXT: ('sh_size', 0x00000048)
26// ELF_64-NEXT: ('sh_link', 0x00000000)
27// ELF_64-NEXT: ('sh_info', 0x00000000)
28// ELF_64-NEXT: ('sh_addralign', 0x00000008)
29// ELF_64-NEXT: ('sh_entsize', 0x00000000)
30// ELF_64-NEXT: ('_section_data', '14000000 ffffffff 01000178 100c0708 90010000 00000000 14000000 1c000000 00000000 00000000 01000000 00000000 14000000 34000000 00000000 00000000 01000000 00000000')
31
32// ELF_32: (('sh_name', 0x00000010) # '.debug_frame'
33// ELF_32-NEXT: ('sh_type', 0x00000001)
34// ELF_32-NEXT: ('sh_flags', 0x00000000)
35// ELF_32-NEXT: ('sh_addr', 0x00000000)
36// ELF_32-NEXT: ('sh_offset', 0x00000038)
37// ELF_32-NEXT: ('sh_size', 0x00000034)
38// ELF_32-NEXT: ('sh_link', 0x00000000)
39// ELF_32-NEXT: ('sh_info', 0x00000000)
40// ELF_32-NEXT: ('sh_addralign', 0x00000004)
41// ELF_32-NEXT: ('sh_entsize', 0x00000000)
42// ELF_32-NEXT: ('_section_data', '10000000 ffffffff 0100017c 080c0404 88010000 0c000000 18000000 00000000 01000000 0c000000 28000000 01000000 01000000')