Files
clang-p2996/lldb/test/Shell/ObjectFile/ELF/PT_LOAD-empty.yaml
Jonas Devlieghere 87aa9c9e4d Re-land "[test] Split LLDB tests into API, Shell & Unit"
The original patch got reverted because it broke `check-lldb` on a clean
build. This fixes that.

llvm-svn: 374201
2019-10-09 19:22:02 +00:00

27 lines
637 B
YAML

# Test behavior on unusual (and probably corrupt) files. Test that we drop an
# empty PT_LOAD segment.
# RUN: yaml2obj %s > %t
# RUN: lldb-test object-file %t | FileCheck %s
#
# CHECK-NOT: container
!ELF
FileHeader:
Class: ELFCLASS32
Data: ELFDATA2LSB
Type: ET_EXEC
Machine: EM_ARM
Sections:
- Name: .text
Type: SHT_PROGBITS
Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
Address: 0x1000
AddressAlign: 0x4
Content: DEADBEEFBAADF00D
ProgramHeaders:
- Type: PT_LOAD
Flags: [ PF_X, PF_R ]
VAddr: 0x1000
Align: 0x4