1 # RUN: yaml2obj %s > %t
2 # RUN: llvm-objcopy -O binary -j .text %t %t2
3 # RUN: llvm-objcopy -O binary --only-section .text %t %t3
4 # RUN: llvm-objcopy --dump-section .text=%t4 %t %t5
5 # RUN: llvm-objcopy --dump-section .foo=%t6 %t %t7
6 # RUN: not llvm-objcopy --dump-section .bar=%t8 %t %t9 2>&1 | FileCheck %s --check-prefix=NOBITS -DINPUT=%t
7 # RUN: od -t x1 %t2 | FileCheck %s --ignore-case
8 # RUN: od -t x1 %t6 | FileCheck %s --ignore-case --check-prefix=NON-ALLOC
9 # RUN: wc -c %t2 | FileCheck %s --check-prefix=SIZE
22 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
23 AddressAlign: 0x0000000000001000
38 #CHECK: 0000000 de ad be ef
40 #NON-ALLOC: 0000000 ca fe
44 #NOBITS: error: '[[INPUT]]': cannot dump section '.bar': it has no contents