1# RUN: yaml2obj %s -o %t
2# RUN: llvm-objcopy %t %t2
3# RUN: llvm-readobj --sections %t2 | FileCheck %s
4# RUN: cp %t %t3
5# RUN: llvm-strip --no-strip-all %t3
6# RUN: llvm-readobj --sections %t3 | FileCheck %s
7
8!ELF
9FileHeader:
10  Class:           ELFCLASS64
11  Data:            ELFDATA2LSB
12  Type:            ET_REL
13  Machine:         EM_X86_64
14Sections:
15  - Name:            .foo
16    Link:            .symtab
17    Type:            SHT_PROGBITS
18    Flags:           [ ]
19Symbols: []
20
21# CHECK:      Name: .foo
22# CHECK-NEXT: Type:
23# CHECK-NEXT: Flags [ (0x0)
24# CHECK-NEXT: ]
25# CHECK-NEXT: Address:
26# CHECK-NEXT: Offset:
27# CHECK-NEXT: Size:
28# CHECK-NEXT: Link: 0
29