36 lines · plain
1# RUN: yaml2obj %s -o %t.obj2# RUN: llvm-objcopy --dump-section .data=%t.dat %t.obj3# RUN: wc -c %t.dat | FileCheck %s --ignore-case -check-prefix CHECK-EMPTY-SIZE4# RUN: llvm-objcopy --dump-section .text.f=%t.txt %t.obj5# RUN: od -t x1 %t.txt | FileCheck %s --ignore-case -check-prefix CHECK-TEXT-F6# RUN: not llvm-objcopy --dump-section non-existent=/dev/null %t.obj 2>&1 | FileCheck %s -check-prefix CHECK-NO-SECTION7# RUN: not llvm-objcopy --dump-section .text=%S %t.obj 2>&1 | FileCheck -DOBJ=%t.obj -DMSG=%errc_EISDIR %s -check-prefix CHECK-INVALID-DESTINATION8 9# CHECK-EMPTY-SIZE: 010 11# CHECK-TEXT-F: 0000000 b8 20 00 00 00 c312 13# CHECK-NO-SECTION: section 'non-existent' not found14 15# CHECK-INVALID-DESTINATION: error: '[[OBJ]]': [[MSG]]16 17--- !COFF18header:19 Machine: IMAGE_FILE_MACHINE_AMD6420 Characteristics: [ ]21sections:22 - Name: .text23 Characteristics: [ ]24 Alignment: 425 SectionData: ''26 - Name: .data27 Characteristics: [ ]28 Alignment: 429 SectionData: ''30 - Name: .text.f31 Characteristics: [ ]32 Alignment: 1633 SectionData: B820000000C334symbols:35...36