1 # RUN: yaml2obj %s -o %t
2 # RUN: llvm-objcopy --globalize-symbol Global \
3 # RUN: --globalize-symbol Local \
4 # RUN: --globalize-symbol Weak \
5 # RUN: --globalize-symbol WeakUndef \
6 # RUN: --globalize-symbol Missing %t %t2
7 # RUN: llvm-readobj --symbols %t2 | FileCheck %s
8 # RUN: llvm-objcopy --regex --globalize-symbol='[GLW].*' %t %t3
10 # RUN: echo " Global # global" > %t-list.txt
11 # RUN: echo "Local" >> %t-list.txt
12 # RUN: echo "Weak" >> %t-list.txt
13 # RUN: echo "WeakUndef" >> %t-list.txt
14 # RUN: echo "Missing" >> %t-list.txt
15 # RUN: echo " # comment " >> %t-list.txt
16 # RUN: llvm-objcopy --globalize-symbols %t-list.txt %t %t4
18 # RUN: echo "[GLW].+ # .+ " > %t-list2.txt
19 # RUN: llvm-objcopy --regex --globalize-symbols %t-list2.txt %t %t5
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: Local
71 #CHECK-NEXT: Value: 0x1000
73 #CHECK-NEXT: Binding: Global
74 #CHECK-NEXT: Type: Function
76 #CHECK-NEXT: Section: .text
79 #CHECK-NEXT: Name: Global
80 #CHECK-NEXT: Value: 0x1010
82 #CHECK-NEXT: Binding: Global
83 #CHECK-NEXT: Type: Function
85 #CHECK-NEXT: Section: .text
88 #CHECK-NEXT: Name: Weak
89 #CHECK-NEXT: Value: 0x1008
91 #CHECK-NEXT: Binding: Global
92 #CHECK-NEXT: Type: Function
94 #CHECK-NEXT: Section: .text
97 #CHECK-NEXT: Name: WeakUndef
98 #CHECK-NEXT: Value: 0x0
100 #CHECK-NEXT: Binding: Weak
101 #CHECK-NEXT: Type: None
102 #CHECK-NEXT: Other: 0
103 #CHECK-NEXT: Section: Undefined
105 #CHECK-NEXT: Symbol {
106 #CHECK-NEXT: Name: Unspecified
107 #CHECK-NEXT: Value: 0x0
109 #CHECK-NEXT: Binding: Weak
110 #CHECK-NEXT: Type: None
111 #CHECK-NEXT: Other: 0
112 #CHECK-NEXT: Section: .text