llvm-for-llvmta/test/tools/llvm-objcopy/ELF/remove-shndx.test

8 lines
319 B
Plaintext
Raw Permalink Normal View History

2022-04-25 10:02:23 +02:00
# This test checks to see that a .symtab_shndx section is added to any binary
# that needs it, even if the original was removed.
RUN: %python %p/../Inputs/ungzip.py %p/Inputs/many-sections.o.gz > %t
RUN: llvm-objcopy -R .symtab_shndx %t %t2
RUN: llvm-readobj --sections %t2 | FileCheck %s
CHECK: Name: .symtab_shndx (