67 lines · yaml
1# Test behavior on strange (invalid?) elf files where the sections cross segment2# boundary. The test input was generated from this yaml file, but the program3# header was modified by hand, so this input is here for reference only.4#5# Right now lldb shortens sections to make sure every section is fully contained6# within a segment, but other behaviors are possible too (including outright7# rejecting such files).8 9# RUN: lldb-test object-file %S/Inputs/PT_LOAD-overlap-section.elf | FileCheck %s10 11# CHECK: Index: 012# CHECK-NEXT: ID: 0xffffffffffffffff13# CHECK-NEXT: Name: PT_LOAD[0]14# CHECK-NEXT: Type: container15# CHECK-NEXT: Permissions: rwx16# CHECK-NEXT: Thread specific: no17# CHECK-NEXT: VM address: 0x100618# CHECK-NEXT: VM size: 819# CHECK-NEXT: File size: 820# CHECK-NEXT: Showing 1 subsections21# CHECK-NEXT: Index: 022# CHECK-NEXT: ID: 0x223# CHECK-NEXT: Name: .text24# CHECK-NEXT: Type: code25# CHECK-NEXT: Permissions: r-x26# CHECK-NEXT: Thread specific: no27# CHECK-NEXT: VM address: 0x100828# CHECK-NEXT: VM size: 629# CHECK-NEXT: File size: 830 31# CHECK: Index: 132# CHECK-NEXT: ID: 0x133# CHECK-NEXT: Name: .interp34# CHECK-NEXT: Type: regular35# CHECK-NEXT: Permissions: r--36# CHECK-NEXT: Thread specific: no37# CHECK-NEXT: VM address: 0x100038# CHECK-NEXT: VM size: 639# CHECK-NEXT: File size: 840 41!ELF42FileHeader:43 Class: ELFCLASS3244 Data: ELFDATA2LSB45 Type: ET_EXEC46 Machine: EM_ARM47Sections:48 - Name: .interp49 Type: SHT_PROGBITS50 Flags: [ SHF_ALLOC ]51 Address: 0x100052 AddressAlign: 0x453 Content: DEADBEEFBAADF00D54 - Name: .text55 Type: SHT_PROGBITS56 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]57 Address: 0x100858 AddressAlign: 0x459 Content: DEADBEEFBAADF00D60ProgramHeaders:61 - Type: PT_LOAD62 Flags: [ PF_X, PF_W, PF_R ]63 VAddr: 0x1008 # Modified by hand to start at 0x100664 Align: 0x465 FirstSec: .text66 LastSec: .text67