1 # RUN: yaml2obj %s -o %t
3 ## Verify that section is dumped before it is removed.
4 # RUN: llvm-objcopy --dump-section __TEXT,__text=%t1.dump --remove-section __TEXT,__text %t %t1
5 # RUN: FileCheck %s --input-file=%t1.dump --check-prefix=CONTENTS --implicit-check-not={{.}}
9 ## Verify that the newly added section is not dumped.
10 # RUN: echo CAFE > %t2.txt
11 # RUN: not llvm-objcopy --dump-section __TEXT,__const=%t2.dump --add-section __TEXT,__const=%t2.txt %t %t2 2>&1 | \
12 # RUN: FileCheck %s --check-prefix=NODUMP -DINPUT=%t
14 # NODUMP: error: '[[INPUT]]': section '__TEXT,__const' not found
20 cpusubtype: 0x00000003
41 addr: 0x0000000000000000
53 addr: 0x0000000000000004