1 # RUN: yaml2obj %s > %t
2 # RUN: llvm-objcopy --strip-all --keep-file-symbols %t %t2
3 # RUN: llvm-readobj --symbols %t2 | FileCheck %s --check-prefix=STRIPALL
4 # RUN: llvm-objcopy --keep-file-symbols --strip-symbol foo %t %t2
5 # RUN: llvm-readobj --symbols %t2 | FileCheck %s --check-prefix=STRIP
7 # RUN: llvm-strip --keep-file-symbols %t -o %t3
8 # RUN: llvm-readobj --symbols %t3 | FileCheck %s --check-prefix=STRIPALL
9 # RUN: llvm-strip --keep-file-symbols --strip-symbol foo %t -o %t4
10 # RUN: llvm-readobj --symbols %t4 | FileCheck %s --check-prefix=STRIP
21 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
23 AddressAlign: 0x0000000000000010
35 #STRIPALL-NEXT: Symbol {
37 #STRIPALL-NEXT: Value: 0x0
38 #STRIPALL-NEXT: Size: 0
39 #STRIPALL-NEXT: Binding: Local
40 #STRIPALL-NEXT: Type: None
41 #STRIPALL-NEXT: Other: 0
42 #STRIPALL-NEXT: Section: Undefined
44 #STRIPALL-NEXT: Symbol {
45 #STRIPALL-NEXT: Name: foo
46 #STRIPALL-NEXT: Value: 0x0
47 #STRIPALL-NEXT: Size: 0
48 #STRIPALL-NEXT: Binding: Local
49 #STRIPALL-NEXT: Type: File
50 #STRIPALL-NEXT: Other: 0
51 #STRIPALL-NEXT: Section: .text
58 #STRIP-NEXT: Value: 0x0
60 #STRIP-NEXT: Binding: Local
61 #STRIP-NEXT: Type: None
63 #STRIP-NEXT: Section: Undefined
66 #STRIP-NEXT: Name: foo
67 #STRIP-NEXT: Value: 0x0
69 #STRIP-NEXT: Binding: Local
70 #STRIP-NEXT: Type: File
72 #STRIP-NEXT: Section: .text
75 #STRIP-NEXT: Name: bar
76 #STRIP-NEXT: Value: 0x0
78 #STRIP-NEXT: Binding: Global
79 #STRIP-NEXT: Type: Function
81 #STRIP-NEXT: Section: .text