aboutsummaryrefslogtreecommitdiff
path: root/test/tools/llvm-objcopy/symtab-error-on-remove-strtab.test
blob: d9603996d7f96ad23eaa5c85ae569ff1bc5c4638 (plain)
1
2
3
4
5
6
7
8
9
10
11
# RUN: yaml2obj %s > %t
# RUN: not llvm-objcopy -R .strtab %t %t2 2>&1 >/dev/null | FileCheck %s

!ELF
FileHeader:
  Class:           ELFCLASS64
  Data:            ELFDATA2LSB
  Type:            ET_REL
  Machine:         EM_X86_64

# CHECK: String table .strtab cannot be removed because it is referenced by the symbol table .symtab