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