1# Test that an overlapping PT_INTERP segment does not cause us to drop the
2# subsequent PT_LOAD segment.
3
4# RUN: yaml2obj %s -o %t
5# RUN: lldb-test object-file %t | FileCheck %s
6
7# CHECK:        Index: 0
8# CHECK-NEXT:   ID: 0xfffffffffffffffe
9# CHECK-NEXT:   Name: PT_LOAD[0]
10# CHECK-NEXT:   Type: container
11# CHECK-NEXT:   Permissions: rwx
12# CHECK-NEXT:   Thread specific: no
13# CHECK-NEXT:   VM address: 0x1000
14# CHECK-NEXT:   VM size: 12
15# CHECK-NEXT:   File size: 12
16# CHECK-NEXT:   Showing 2 subsections
17
18!ELF
19FileHeader:
20  Class:           ELFCLASS32
21  Data:            ELFDATA2LSB
22  Type:            ET_EXEC
23  Machine:         EM_ARM
24Sections:
25  - Name:            .interp
26    Type:            SHT_PROGBITS
27    Flags:           [ SHF_ALLOC ]
28    Address:         0x1000
29    AddressAlign:    0x4
30    Content:         3232
31  - Name:            .text
32    Type:            SHT_PROGBITS
33    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
34    Address:         0x1004
35    AddressAlign:    0x4
36    Content:         DEADBEEFBAADF00D
37ProgramHeaders:
38  - Type: PT_INTERP
39    Flags: [ PF_R ]
40    VAddr: 0x1000
41    Align: 0x4
42    FirstSec: .interp
43    LastSec:  .interp
44  - Type: PT_LOAD
45    Flags: [ PF_X, PF_W, PF_R ]
46    VAddr: 0x1000
47    Align: 0x4
48    FirstSec: .interp
49    LastSec:  .text
50