1 # RUN: yaml2obj %s > %t
3 # RUN: --localize-symbol Global \
4 # RUN: -L GlobalUndef \
7 # RUN: -L GlobalCommon \
9 # RUN: llvm-readobj --symbols %t2 | FileCheck %s
10 # RUN: llvm-objcopy --regex --localize-symbol='.*' %t %t3
12 # RUN: echo " Global # comment " > %t-list.txt
13 # RUN: echo "GlobalUndef" >> %t-list.txt
14 # RUN: echo "Local" >> %t-list.txt
15 # RUN: echo "Weak" >> %t-list.txt
16 # RUN: echo "GlobalCommon" >> %t-list.txt
17 # RUN: echo " # comment " >> %t-list.txt
18 # RUN: llvm-objcopy --localize-symbols %t-list.txt %t %t4
20 # RUN: echo " .*al.* # Global + Local + GlobalCommon " > %t-list2.txt
21 # RUN: echo "Weak" >> %t-list2.txt
22 # RUN: llvm-objcopy --regex --localize-symbols %t-list2.txt %t %t5
34 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
36 AddressAlign: 0x0000000000000010
42 AddressAlign: 0x0000000000000010
43 Content: "0000000000000000"
75 #CHECK-NEXT: Value: 0x0
77 #CHECK-NEXT: Binding: Local
78 #CHECK-NEXT: Type: None
80 #CHECK-NEXT: Section: Undefined
83 #CHECK-NEXT: Name: Local
84 #CHECK-NEXT: Value: 0x1000
86 #CHECK-NEXT: Binding: Local
87 #CHECK-NEXT: Type: Function
89 #CHECK-NEXT: Section: .text
92 #CHECK-NEXT: Name: Global
93 #CHECK-NEXT: Value: 0x1010
95 #CHECK-NEXT: Binding: Local
96 #CHECK-NEXT: Type: Function
98 #CHECK-NEXT: Section: .text
100 #CHECK-NEXT: Symbol {
101 #CHECK-NEXT: Name: Weak
102 #CHECK-NEXT: Value: 0x1008
104 #CHECK-NEXT: Binding: Local
105 #CHECK-NEXT: Type: Function
106 #CHECK-NEXT: Other: 0
107 #CHECK-NEXT: Section: .text
109 #CHECK-NEXT: Symbol {
110 #CHECK-NEXT: Name: GlobalUndef
113 #CHECK-NEXT: Binding: Global
114 #CHECK-NEXT: Type: Function
116 #CHECK-NEXT: Section: Undefined
118 #CHECK-NEXT: Symbol {
119 #CHECK-NEXT: Name: GlobalCommon
120 #CHECK-NEXT: Value: 0x2006
122 #CHECK-NEXT: Binding: Global
123 #CHECK-NEXT: Type: Object
124 #CHECK-NEXT: Other: 0
125 #CHECK-NEXT: Section: Common (0xF