1 ## Stripping unneeded symbols from execuatble/DSO should
2 ## eliminate the static symbol table, because it's not used
3 ## by the dynamic loader.
5 # RUN: yaml2obj %s -o %t.exec -DTYPE=EXEC
6 # RUN: llvm-objcopy --strip-unneeded %t.exec %t2.exec
7 # RUN: llvm-readobj --section-headers %t2.exec | FileCheck %s --check-prefix=NOSYMTAB
8 ## Validate that the symtab wouldn't be removed if the input were an ET_REL.
9 # RUN: yaml2obj %s -o %t.rel -DTYPE=REL
10 # RUN: llvm-objcopy --strip-unneeded %t.rel %t2.rel
11 # RUN: llvm-readobj --section-headers %t2.rel | FileCheck %s --check-prefix=SYMTAB
32 # NOSYMTAB-NOT: .symtab