1# Test behavior on unusual (and probably corrupt) object files. Check that we
2# drop the second PT_LOAD segment which overlaps with the first one.
3
4# RUN: yaml2obj %s > %t
5# RUN: lldb-test object-file %t | FileCheck %s
6
7# CHECK: Type: container
8# CHECK-NOT: Type: container
9
10!ELF
11FileHeader:
12  Class:           ELFCLASS32
13  Data:            ELFDATA2LSB
14  Type:            ET_EXEC
15  Machine:         EM_ARM
16Sections:
17  - Name:            .text
18    Type:            SHT_PROGBITS
19    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
20    Address:         0x1000
21    AddressAlign:    0x4
22    Content:         DEADBEEFBAADF00D
23  - Name:            .data
24    Type:            SHT_PROGBITS
25    Flags:           [ SHF_ALLOC ]
26    Address:         0x1008
27    AddressAlign:    0x4
28    Content:         3232
29ProgramHeaders:
30  - Type: PT_LOAD
31    Flags: [ PF_X, PF_W, PF_R ]
32    VAddr: 0x1000
33    Align: 0x4
34    Sections:
35      - Section: .text
36      - Section: .data
37  - Type: PT_LOAD
38    Flags: [ PF_R, PF_W ]
39    VAddr: 0x1008
40    Align: 0x4
41    Sections:
42      - Section: .data
43