Recommit r371023 "[lib/ObjectYAML] - Stop calling error(1) when mapping the st_other...
[llvm-complete.git] / test / tools / yaml2obj / elf-comdat-broken.yaml
blob87ff6fe66c00c624791425fb3544c6e0cf7f4438
1 # RUN: yaml2obj %s -o %t
2 # RUN: llvm-readobj --sections --elf-section-groups %t | FileCheck %s
4 --- !ELF
5 FileHeader:
6   Class:               ELFCLASS64
7   Data:                ELFDATA2LSB
8   Type:                ET_REL
9   Machine:             EM_X86_64
10 Sections:
11   - Name:              .group
12     Type:              SHT_GROUP
13     Link:              .symtab
14     Info:              foo
15     Members:
16       - SectionOrType: 0xFF
17       - SectionOrType: 3
18 Symbols:
19   - Name:    foo
20   - Binding: STB_GLOBAL
22 ## Check we are able to produce SHT_GROUP section with a custom Type (0xFF).
23 # CHECK:       Groups {
24 # CHECK-NEXT:   Group {
25 # CHECK-NEXT:     Name: .group
26 # CHECK-NEXT:     Index: 1
27 # CHECK-NEXT:     Link: 2
28 # CHECK-NEXT:     Info: 1
29 # CHECK-NEXT:     Type: COMDAT (0xFF)
30 # CHECK-NEXT:     Signature: foo
31 # CHECK-NEXT:     Section(s) in group [
32 # CHECK-NEXT:       .strtab (3)
33 # CHECK-NEXT:     ]
34 # CHECK-NEXT:   }