summaryrefslogtreecommitdiffstats
path: root/lldb/test/Shell/ObjectFile/ELF/PT_LOAD-empty.yaml
blob: 9f1cb0745723b62bc28ba2373eee23422ab0c6a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Test behavior on unusual (and probably corrupt) files. Test that we drop an
# empty PT_LOAD segment.

# RUN: yaml2obj %s > %t
# RUN: lldb-test object-file %t | FileCheck %s
#
# CHECK-NOT: container

!ELF
FileHeader:
  Class:           ELFCLASS32
  Data:            ELFDATA2LSB
  Type:            ET_EXEC
  Machine:         EM_ARM
Sections:
  - Name:            .text
    Type:            SHT_PROGBITS
    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
    Address:         0x1000
    AddressAlign:    0x4
    Content:         DEADBEEFBAADF00D
ProgramHeaders:
  - Type: PT_LOAD
    Flags: [ PF_X, PF_R ]
    VAddr: 0x1000
    Align: 0x4
OpenPOWER on IntegriCloud