diff options
Diffstat (limited to 'lit/Modules')
-rw-r--r-- | lit/Modules/compressed-sections.yaml | 30 | ||||
-rw-r--r-- | lit/Modules/lit.local.cfg | 1 |
2 files changed, 31 insertions, 0 deletions
diff --git a/lit/Modules/compressed-sections.yaml b/lit/Modules/compressed-sections.yaml new file mode 100644 index 000000000000..0eabd99f2d6d --- /dev/null +++ b/lit/Modules/compressed-sections.yaml @@ -0,0 +1,30 @@ +# REQUIRES: zlib +# RUN: yaml2obj %s > %t +# RUN: lldb-test module-sections --contents %t | FileCheck %s +--- !ELF +FileHeader: + Class: ELFCLASS32 + Data: ELFDATA2LSB + Type: ET_REL + Machine: EM_386 +Sections: + - Name: .hello_elf + Type: SHT_PROGBITS + Flags: [ SHF_COMPRESSED ] + Content: 010000000800000001000000789c5330700848286898000009c802c1 + - Name: .bogus + Type: SHT_PROGBITS + Flags: [ SHF_COMPRESSED ] + Content: deadbeefbaadf00d + +# CHECK: Name: .hello_elf +# CHECK-NEXT: VM size: 0 +# CHECK-NEXT: File size: 28 +# CHECK-NEXT: Data: +# CHECK-NEXT: 20304050 60708090 + +# CHECK: Name: .bogus +# CHECK-NEXT: VM size: 0 +# CHECK-NEXT: File size: 8 +# CHECK-NEXT: Data: +# CHECK-NEXT: DEADBEEF BAADF00D diff --git a/lit/Modules/lit.local.cfg b/lit/Modules/lit.local.cfg new file mode 100644 index 000000000000..8169b9f95e11 --- /dev/null +++ b/lit/Modules/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.yaml'] |