• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# RUN: yaml2obj %s > %t
2# RUN: llvm-objcopy --strip-non-alloc %t %t2
3# RUN: llvm-readobj -file-headers -sections %t2 | FileCheck %s
4
5!ELF
6FileHeader:
7  Class:           ELFCLASS64
8  Data:            ELFDATA2LSB
9  Type:            ET_REL
10  Machine:         EM_X86_64
11Sections:
12  - Name:            .bss
13    Type:            SHT_NOBITS
14    Flags:           [ SHF_ALLOC ]
15  - Name:            .text
16    Type:            SHT_PROGBITS
17    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
18  - Name:            .blarg
19    Type:            SHT_PROGBITS
20    Flags:           [ ]
21
22# CHECK: SectionHeaderCount: 4
23
24# CHECK: Name: .bss
25# CHECK: Name: .text
26# CHECK: Name: .shstrtab
27