1 # RUN: yaml2obj %s > %t
3 ## Check we are able to strip all symbols and relocatable information at the same time.
5 # RUN: llvm-objcopy -S %t %t2
6 # RUN: llvm-objdump --section-headers %t2 | FileCheck %s
8 # RUN: llvm-objcopy --strip-all-gnu %t %t2
9 # RUN: llvm-objdump --section-headers %t2 | FileCheck %s
12 # CHECK-NOT: .rela.text
14 ## Check we are able to strip the particular symbol if we
15 ## strip the corresponding relocation section at the same time.
17 # RUN: llvm-objcopy --strip-symbol=bar -R .rela.text %t %t2
18 # RUN: llvm-readelf -s -S %t2 | FileCheck %s --check-prefix=STRIPSYM
21 # STRIPSYM-NOT: .rela.text
23 # RUN: not llvm-objcopy --strip-symbol=bar %t %t2 2>&1 | FileCheck %s --check-prefix=ERR -DINPUT=%t
24 # ERR: error: '[[INPUT]]': not stripping symbol 'bar' because it is named in a relocation
35 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
42 - Offset: 0x0000000000000000