1 ## Check that llvm-readelf and llvm-readobj can
2 ## dump SHT_GROUP sections properly.
4 # RUN: yaml2obj %s -o %t.o
5 # RUN: llvm-readobj -g %t.o | FileCheck %s
6 # RUN: llvm-readelf -g %t.o | FileCheck --check-prefix=GNU %s
10 # CHECK-NEXT: Name: .group
11 # CHECK-NEXT: Index: 1
14 # CHECK-NEXT: Type: COMDAT
15 # CHECK-NEXT: Signature: foo
16 # CHECK-NEXT: Section(s) in group [
17 # CHECK-NEXT: .text.foo
18 # CHECK-NEXT: .rela.text.foo
22 # CHECK-NEXT: Name: .group1
23 # CHECK-NEXT: Index: 2
26 # CHECK-NEXT: Type: COMDAT
27 # CHECK-NEXT: Signature: bar
28 # CHECK-NEXT: Section(s) in group [
29 # CHECK-NEXT: .text.bar
30 # CHECK-NEXT: .rela.text.bar
34 # GNU: COMDAT group section [ 1] `.group' [foo] contains 2 sections:
35 # GNU-NEXT: [Index] Name
36 # GNU-NEXT: [ 3] .text.foo
37 # GNU-NEXT: [ 4] .rela.text.foo
38 # GNU: COMDAT group section [ 2] `.group1' [bar] contains 2 sections:
39 # GNU-NEXT: [Index] Name
40 # GNU-NEXT: [ 5] .text.bar
41 # GNU-NEXT: [ 6] .rela.text.bar
55 - SectionOrType: GRP_COMDAT
56 - SectionOrType: .text.foo
57 - SectionOrType: .rela.text.foo
63 - SectionOrType: GRP_COMDAT
64 - SectionOrType: .text.bar
65 - SectionOrType: .rela.text.bar
68 - Name: .rela.text.foo
74 - Name: .rela.text.bar