1# RUN: yaml2obj %s -o %t.obj 2# RUN: llvm-objcopy --dump-section .data=%t.dat %t.obj 3# RUN: wc -c %t.dat | FileCheck %s --ignore-case -check-prefix CHECK-EMPTY-SIZE 4# RUN: llvm-objcopy --dump-section .text.f=%t.txt %t.obj 5# RUN: od -t x1 %t.txt | FileCheck %s --ignore-case -check-prefix CHECK-TEXT-F 6# RUN: not llvm-objcopy --dump-section non-existent=/dev/null %t.obj 2>&1 | FileCheck %s -check-prefix CHECK-NO-SECTION 7# RUN: not llvm-objcopy --dump-section .text=%T %t.obj 2>&1 | FileCheck -DOBJ=%t.obj -DMSG=%errc_EISDIR %s -check-prefix CHECK-INVALID-DESTINATION 8 9# CHECK-EMPTY-SIZE: 0 10 11# CHECK-TEXT-F: 0000000 b8 20 00 00 00 c3 12 13# CHECK-NO-SECTION: section 'non-existent' not found 14 15# CHECK-INVALID-DESTINATION: error: '[[OBJ]]': [[MSG]] 16 17--- !COFF 18header: 19 Machine: IMAGE_FILE_MACHINE_AMD64 20 Characteristics: [ ] 21sections: 22 - Name: .text 23 Characteristics: [ ] 24 Alignment: 4 25 SectionData: '' 26 - Name: .data 27 Characteristics: [ ] 28 Alignment: 4 29 SectionData: '' 30 - Name: .text.f 31 Characteristics: [ ] 32 Alignment: 16 33 SectionData: B820000000C3 34symbols: 35... 36