1 # RUN: yaml2obj %s -o %t
3 # RUN: llvm-objcopy --discard-all %t %t2
4 # Verify that llvm-objcopy has not modified the input.
6 # RUN: llvm-readobj --symbols %t2 | FileCheck %s
8 # RUN: llvm-objcopy -x %t %t3
9 # Verify that llvm-objcopy has not modified the input.
13 # Verify that llvm-strip modifies the symbol table the same way.
16 # RUN: llvm-strip --discard-all %t4
19 # RUN: llvm-strip -x %t
31 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
33 AddressAlign: 0x0000000000000010
62 #CHECK-NEXT: Value: 0x0
64 #CHECK-NEXT: Binding: Local
65 #CHECK-NEXT: Type: None
67 #CHECK-NEXT: Section: Undefined
70 #CHECK-NEXT: Name: LocalSection
71 #CHECK-NEXT: Value: 0x0
73 #CHECK-NEXT: Binding: Local
74 #CHECK-NEXT: Type: Section
76 #CHECK-NEXT: Section: .text
79 #CHECK-NEXT: Name: LocalFile
80 #CHECK-NEXT: Value: 0x0
82 #CHECK-NEXT: Binding: Local
83 #CHECK-NEXT: Type: File
85 #CHECK-NEXT: Section: Undefined
88 #CHECK-NEXT: Name: Global
89 #CHECK-NEXT: Value: 0x1010
91 #CHECK-NEXT: Binding: Global
92 #CHECK-NEXT: Type: Function
94 #CHECK-NEXT: Section: .text
97 #CHECK-NEXT: Name: Weak
98 #CHECK-NEXT: Value: 0x1008
100 #CHECK-NEXT: Binding: Weak
101 #CHECK-NEXT: Type: Function
102 #CHECK-NEXT: Other: 0
103 #CHECK-NEXT: Section: .text