• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 -o %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    FirstSec: .text
35    LastSec:  .data
36  - Type: PT_LOAD
37    Flags: [ PF_R, PF_W ]
38    VAddr: 0x1008
39    Align: 0x4
40    FirstSec: .data
41    LastSec:  .data
42