1 # RUN: yaml2obj %s -o %t
3 # RUN: --localize-symbol Global \
4 # RUN: -L GlobalUndef \
7 # RUN: -L GlobalCommon \
10 # RUN: llvm-readobj --symbols %t2 | FileCheck %s
11 # RUN: llvm-objcopy --regex --localize-symbol='[GLW].*' %t %t3
13 # RUN: echo " Global # comment " > %t-list.txt
14 # RUN: echo "GlobalUndef" >> %t-list.txt
15 # RUN: echo "Local" >> %t-list.txt
16 # RUN: echo "Weak" >> %t-list.txt
17 # RUN: echo "GlobalCommon" >> %t-list.txt
18 # RUN: echo "Missing" >> %t-list.txt
19 # RUN: echo " # comment " >> %t-list.txt
20 # RUN: llvm-objcopy --localize-symbols %t-list.txt %t %t4
22 # RUN: echo " .*al.* # Global + Local + GlobalCommon " > %t-list2.txt
23 # RUN: echo "Weak" >> %t-list2.txt
24 # RUN: llvm-objcopy --regex --localize-symbols %t-list2.txt %t %t5
36 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
38 AddressAlign: 0x0000000000000010
44 AddressAlign: 0x0000000000000010
45 Content: "0000000000000000"
80 #CHECK-NEXT: Value: 0x0
82 #CHECK-NEXT: Binding: Local
83 #CHECK-NEXT: Type: None
85 #CHECK-NEXT: Section: Undefined
88 #CHECK-NEXT: Name: Local
89 #CHECK-NEXT: Value: 0x1000
91 #CHECK-NEXT: Binding: Local
92 #CHECK-NEXT: Type: Function
94 #CHECK-NEXT: Section: .text
97 #CHECK-NEXT: Name: Global
98 #CHECK-NEXT: Value: 0x1010
100 #CHECK-NEXT: Binding: Local
101 #CHECK-NEXT: Type: Function
102 #CHECK-NEXT: Other: 0
103 #CHECK-NEXT: Section: .text
105 #CHECK-NEXT: Symbol {
106 #CHECK-NEXT: Name: Weak
107 #CHECK-NEXT: Value: 0x1008
109 #CHECK-NEXT: Binding: Local
110 #CHECK-NEXT: Type: Function
111 #CHECK-NEXT: Other: 0
112 #CHECK-NEXT: Section: .text
114 #CHECK-NEXT: Symbol {
115 #CHECK-NEXT: Name: GlobalUndef
118 #CHECK-NEXT: Binding: Global
119 #CHECK-NEXT: Type: Function
121 #CHECK-NEXT: Section: Undefined
123 #CHECK-NEXT: Symbol {
124 #CHECK-NEXT: Name: GlobalCommon
125 #CHECK-NEXT: Value: 0x2006
127 #CHECK-NEXT: Binding: Global
128 #CHECK-NEXT: Type: Object
129 #CHECK-NEXT: Other: 0
130 #CHECK-NEXT: Section: Common
132 #CHECK-NEXT: Symbol {
133 #CHECK-NEXT: Name: Unmentioned
136 #CHECK-NEXT: Binding: Global
139 #CHECK-NEXT: Section: .text