1 # RUN: yaml2obj %s > %t
2 # RUN: not llvm-objcopy -R .symtab %t %t2 2>&1 >/dev/null | FileCheck %s --check-prefix=ERR1 -DINPUT=%t
4 # RUN: not llvm-strip --no-strip-all -R .symtab %t3 2>&1 >/dev/null | FileCheck %s --check-prefix=ERR2 -DINPUT=%t3
15 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
17 AddressAlign: 0x0000000000000010
18 Content: "0000000000000000"
34 # ERR1: error: '[[INPUT]]': symbol table '.symtab' cannot be removed because it is referenced by the relocation section '.rel.text'
35 # ERR2: error: '[[INPUT]]': symbol table '.symtab' cannot be removed because it is referenced by the relocation section '.rel.text'
37 # RUN: llvm-objcopy --allow-broken-links -R .symtab %t %t4
38 # RUN: llvm-readobj --sections %t4 | FileCheck %s --check-prefix=SECTIONS --implicit-check-not=.symtab
40 # RUN: llvm-strip --no-strip-all --allow-broken-links -R .symtab %t5
41 # RUN: llvm-readobj --sections %t5 | FileCheck %s --check-prefix=SECTIONS --implicit-check-not=.symtab
43 # SECTIONS: Name: .rel.text