OSDN Git Service

[SDAG] commute setcc operands to match a subtract
[android-x86/external-llvm.git] / test / tools / llvm-objcopy / ELF / strip-unneeded-all-symbols.test
1 ## Stripping unneeded symbols from execuatble/DSO should
2 ## eliminate the static symbol table, because it's not used
3 ## by the dynamic loader. 
4
5 # RUN: yaml2obj %s > %t
6 # RUN: cp %t %t1
7 # RUN: llvm-objcopy --strip-unneeded %t %t2
8 # RUN: llvm-readobj --section-headers %t2 | FileCheck %s
9
10 !ELF
11 FileHeader:
12   Class:    ELFCLASS64
13   Data:     ELFDATA2LSB
14   Type:     ET_EXEC
15   Machine:  EM_X86_64
16 Symbols:
17   - Name:     bar
18   - Name:     foo
19     Binding:  STB_GLOBAL
20
21 # CHECK-NOT: .symtab