• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Test behavior on unusual (and probably corrupt) files. Test that we drop an
2# empty PT_LOAD segment.
3
4# RUN: yaml2obj %s -o %t
5# RUN: lldb-test object-file %t | FileCheck %s
6#
7# CHECK-NOT: container
8
9!ELF
10FileHeader:
11  Class:           ELFCLASS32
12  Data:            ELFDATA2LSB
13  Type:            ET_EXEC
14  Machine:         EM_ARM
15Sections:
16  - Name:            .text
17    Type:            SHT_PROGBITS
18    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
19    Address:         0x1000
20    AddressAlign:    0x4
21    Content:         DEADBEEFBAADF00D
22ProgramHeaders:
23  - Type: PT_LOAD
24    Flags: [ PF_X, PF_R ]
25    VAddr: 0x1000
26    Align: 0x4
27