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

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

# CHECK: Cannot remove .shstrtab because it is the section header string table.
OpenPOWER on IntegriCloud