42 lines · yaml
1# Test behavior on unusual (and probably corrupt) object files. Check that we2# drop the second PT_LOAD segment which overlaps with the first one.3 4# RUN: yaml2obj %s -o %t5# RUN: lldb-test object-file %t | FileCheck %s6 7# CHECK: Type: container8# CHECK-NOT: Type: container9 10!ELF11FileHeader:12 Class: ELFCLASS3213 Data: ELFDATA2LSB14 Type: ET_EXEC15 Machine: EM_ARM16Sections:17 - Name: .text18 Type: SHT_PROGBITS19 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]20 Address: 0x100021 AddressAlign: 0x422 Content: DEADBEEFBAADF00D23 - Name: .data24 Type: SHT_PROGBITS25 Flags: [ SHF_ALLOC ]26 Address: 0x100827 AddressAlign: 0x428 Content: 323229ProgramHeaders:30 - Type: PT_LOAD31 Flags: [ PF_X, PF_W, PF_R ]32 VAddr: 0x100033 Align: 0x434 FirstSec: .text35 LastSec: .data36 - Type: PT_LOAD37 Flags: [ PF_R, PF_W ]38 VAddr: 0x100839 Align: 0x440 FirstSec: .data41 LastSec: .data42