xref: /llvm-project/llvm/test/tools/llvm-objcopy/ELF/strip-sections-keep.test (revision 55c81d4282c5da0189711261a11537bc8a7fe85c)
1# RUN: yaml2obj %s -o %t
2# RUN: llvm-objcopy --strip-sections --keep-section=.shstrtab %t %t2
3# RUN: od -Ax -t c %t2 | FileCheck %s
4
5!ELF
6FileHeader:
7  Class:           ELFCLASS64
8  Data:            ELFDATA2LSB
9  Type:            ET_REL
10  Machine:         EM_X86_64
11Sections:
12
13# CHECK: \0 . s h s t r t a b \0
14