• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# RUN: yaml2obj %s -o %t
2# RUN: llvm-readobj -program-headers %t | FileCheck %s
3
4!ELF
5FileHeader:
6  Class:           ELFCLASS64
7  Data:            ELFDATA2LSB
8  Type:            ET_EXEC
9  Machine:         EM_X86_64
10Sections:
11  - Name:            .data
12    Type:            SHT_PROGBITS
13    Flags:           [ SHF_ALLOC ]
14    Content:         "00000000"
15  - Name:            .after
16    Type:            SHT_NOBITS
17    Flags:           [ SHF_ALLOC ]
18    Size:            64
19ProgramHeaders:
20  - Type: PT_LOAD
21    Flags: [ PF_R ]
22    Sections:
23      - Section: .data
24      - Section: .after
25
26#CHECK:     ProgramHeaders [
27#CHECK-NEXT:  ProgramHeader {
28#CHECK-NEXT:    Type: PT_LOAD
29#CHECK-NEXT:    Offset:
30#CHECK-NEXT:    VirtualAddress:
31#CHECK-NEXT:    PhysicalAddress:
32#CHECK-NEXT:    FileSize: 4
33#CHECK-NEXT:    MemSize: 68
34#CHECK-NEXT:    Flags [
35#CHECK-NEXT:      PF_R
36#CHECK-NEXT:    ]
37#CHECK-NEXT:    Alignment:
38#CHECK-NEXT:  }
39#CHECK-NEXT:]
40