1 # RUN: yaml2obj %s -o %t
2 # RUN: llvm-objcopy --weaken-symbol Global -W Local -W Weak -W GnuUnique -W Missing %t %t2
3 # RUN: llvm-readobj --symbols %t2 | FileCheck %s
4 # RUN: llvm-objcopy --regex --weaken-symbol='[LGW].*' %t %t3
6 # RUN: echo " Global # comment" > %t-list.txt
7 # RUN: echo "Local" >> %t-list.txt
8 # RUN: echo "Weak" >> %t-list.txt
9 # RUN: echo "GnuUnique" >> %t-list.txt
10 # RUN: echo "Missing" >> %t-list.txt
11 # RUN: echo " # comment" >> %t-list.txt
12 # RUN: llvm-objcopy --weaken-symbols %t-list.txt %t %t4
14 # RUN: echo ".*al # Global + Local == .*al" > %t-list2.txt
15 # RUN: echo "Weak # weak" >> %t-list2.txt
16 # RUN: echo " Gnu.*" >> %t-list2.txt
17 # RUN: llvm-objcopy --regex --weaken-symbols %t-list2.txt %t %t5
29 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
31 AddressAlign: 0x0000000000000010
53 Binding: STB_GNU_UNIQUE
61 #CHECK-NEXT: Value: 0x0
63 #CHECK-NEXT: Binding: Local
64 #CHECK-NEXT: Type: None
66 #CHECK-NEXT: Section: Undefined
69 #CHECK-NEXT: Name: Local
70 #CHECK-NEXT: Value: 0x1000
72 #CHECK-NEXT: Binding: Local
73 #CHECK-NEXT: Type: Function
75 #CHECK-NEXT: Section: .text
78 #CHECK-NEXT: Name: Global
79 #CHECK-NEXT: Value: 0x1010
81 #CHECK-NEXT: Binding: Weak
82 #CHECK-NEXT: Type: Function
84 #CHECK-NEXT: Section: .text
87 #CHECK-NEXT: Name: Weak
88 #CHECK-NEXT: Value: 0x1008
90 #CHECK-NEXT: Binding: Weak
91 #CHECK-NEXT: Type: Function
93 #CHECK-NEXT: Section: .text
96 #CHECK-NEXT: Name: GnuUnique
97 #CHECK-NEXT: Value: 0x0
99 #CHECK-NEXT: Binding: Weak
100 #CHECK-NEXT: Type: None
101 #CHECK-NEXT: Other: 0
102 #CHECK-NEXT: Section: .text
104 #CHECK-NEXT: Symbol {
105 #CHECK-NEXT: Name: Unspecified
106 #CHECK-NEXT: Value: 0x0
108 #CHECK-NEXT: Binding: Global
109 #CHECK-NEXT: Type: None
110 #CHECK-NEXT: Other: 0
111 #CHECK-NEXT: Section: .text