xref: /llvm-project/llvm/test/tools/llvm-objcopy/ELF/remove-shndx.test (revision 1be91958b34cf0d8a4301dfed1a0ab5bd43997fa)
1# This test checks to see that a .symtab_shndx section is added to any binary
2# that needs it, even if the original was removed.
3RUN: %python %p/../Inputs/ungzip.py %p/Inputs/many-sections.o.gz > %t
4RUN: llvm-objcopy -R .symtab_shndx %t %t2
5RUN: llvm-readobj --sections %t2 | FileCheck %s
6
7CHECK: Name: .symtab_shndx (
8