1*55c81d42SFangrui Song# RUN: yaml2obj %s -o %t 2ada9d2d8SSeiya Nuta# RUN: not llvm-objcopy -R .shstrtab %t %t2 2>&1 >/dev/null | FileCheck %s -DINPUT=%t 36e4dc6f2SAlexander Shaposhnikov 46e4dc6f2SAlexander Shaposhnikov!ELF 56e4dc6f2SAlexander ShaposhnikovFileHeader: 66e4dc6f2SAlexander Shaposhnikov Class: ELFCLASS64 76e4dc6f2SAlexander Shaposhnikov Data: ELFDATA2LSB 86e4dc6f2SAlexander Shaposhnikov Type: ET_REL 96e4dc6f2SAlexander Shaposhnikov Machine: EM_X86_64 106e4dc6f2SAlexander Shaposhnikov 11ada9d2d8SSeiya Nuta# CHECK: error: '[[INPUT]]': cannot write section header table because section header string table was removed 12