blob: ba4c9c7abbf120e97f89838e6733eddfb7fe3f36 [file] [log] [blame]
Rafael Espindola2ff9e832010-11-11 18:13:52 +00001// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | elf-dump | FileCheck %s
2
3// Test that we produce the two group sections and that they are a the beginning
4// of the file.
5
6// CHECK: # Section 0x00000001
7// CHECK-NEXT: (('sh_name', 0x00000021) # '.group'
8// CHECK-NEXT: ('sh_type', 0x00000011)
9// CHECK-NEXT: ('sh_flags', 0x00000000)
10// CHECK-NEXT: ('sh_addr', 0x00000000)
11// CHECK-NEXT: ('sh_offset', 0x00000040)
12// CHECK-NEXT: ('sh_size', 0x0000000c)
13// CHECK-NEXT: ('sh_link', 0x0000000a)
14// CHECK-NEXT: ('sh_info', 0x00000001)
15// CHECK-NEXT: ('sh_addralign', 0x00000004)
16// CHECK-NEXT: ('sh_entsize', 0x00000004)
17// CHECK-NEXT: ),
18// CHECK-NEXT: # Section 0x00000002
19// CHECK-NEXT: (('sh_name', 0x00000021) # '.group'
20// CHECK-NEXT: ('sh_type', 0x00000011)
21// CHECK-NEXT: ('sh_flags', 0x00000000)
22// CHECK-NEXT: ('sh_addr', 0x00000000)
23// CHECK-NEXT: ('sh_offset', 0x0000004c)
24// CHECK-NEXT: ('sh_size', 0x00000008)
25// CHECK-NEXT: ('sh_link', 0x0000000a)
26// CHECK-NEXT: ('sh_info', 0x00000002)
27// CHECK-NEXT: ('sh_addralign', 0x00000004)
28// CHECK-NEXT: ('sh_entsize', 0x00000004)
29
30 .section .foo,"axG",@progbits,g1,comdat
31g1:
32 nop
33
34 .section .bar,"axG",@progbits,g1,comdat
35 nop
36
37 .section .zed,"axG",@progbits,g2,comdat
38g2:
39 nop