1 # RUN: yaml2obj %s > %t
2 # RUN: llvm-objcopy --globalize-symbol Global \
3 # RUN: --globalize-symbol Local \
4 # RUN: --globalize-symbol Weak \
5 # RUN: --globalize-symbol WeakUndef %t %t2
6 # RUN: llvm-readobj --symbols %t2 | FileCheck %s
7 # RUN: llvm-objcopy --regex --globalize-symbol='.*' %t %t3
9 # RUN: echo " Global # global" > %t-list.txt
10 # RUN: echo "Local" >> %t-list.txt
11 # RUN: echo "Weak" >> %t-list.txt
12 # RUN: echo "WeakUndef" >> %t-list.txt
13 # RUN: echo " # comment " >> %t-list.txt
14 # RUN: llvm-objcopy --globalize-symbols %t-list.txt %t %t4
16 # RUN: echo ".+ # .+ " > %t-list2.txt
17 # RUN: llvm-objcopy --regex --globalize-symbols %t-list2.txt %t %t5
29 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
31 AddressAlign: 0x0000000000000010
57 #CHECK-NEXT: Value: 0x0
59 #CHECK-NEXT: Binding: Local
60 #CHECK-NEXT: Type: None
62 #CHECK-NEXT: Section: Undefined
65 #CHECK-NEXT: Name: Local
66 #CHECK-NEXT: Value: 0x1000
68 #CHECK-NEXT: Binding: Global
69 #CHECK-NEXT: Type: Function
71 #CHECK-NEXT: Section: .text
74 #CHECK-NEXT: Name: Global
75 #CHECK-NEXT: Value: 0x1010
77 #CHECK-NEXT: Binding: Global
78 #CHECK-NEXT: Type: Function
80 #CHECK-NEXT: Section: .text
83 #CHECK-NEXT: Name: Weak
84 #CHECK-NEXT: Value: 0x1008
86 #CHECK-NEXT: Binding: Global
87 #CHECK-NEXT: Type: Function
89 #CHECK-NEXT: Section: .text
92 #CHECK-NEXT: Name: WeakUndef
93 #CHECK-NEXT: Value: 0x0
95 #CHECK-NEXT: Binding: Weak
96 #CHECK-NEXT: Type: None
98 #CHECK-NEXT: Section: Undefined