1 # RUN: yaml2obj %s > %t
2 # RUN: llvm-objcopy --weaken-symbol Global -W Local -W Weak %t %t2
3 # RUN: llvm-readobj --symbols %t2 | FileCheck %s
4 # RUN: llvm-objcopy --regex --weaken-symbol='.*' %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 " # comment" >> %t-list.txt
10 # RUN: llvm-objcopy --weaken-symbols %t-list.txt %t %t4
12 # RUN: echo ".*al # Global + Local == .*al" > %t-list2.txt
13 # RUN: echo "Weak # weak" >> %t-list2.txt
14 # RUN: llvm-objcopy --regex --weaken-symbols %t-list2.txt %t %t5
26 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
28 AddressAlign: 0x0000000000000010
52 #CHECK-NEXT: Value: 0x0
54 #CHECK-NEXT: Binding: Local
55 #CHECK-NEXT: Type: None
57 #CHECK-NEXT: Section: Undefined
60 #CHECK-NEXT: Name: Local
61 #CHECK-NEXT: Value: 0x1000
63 #CHECK-NEXT: Binding: Local
64 #CHECK-NEXT: Type: Function
66 #CHECK-NEXT: Section: .text
69 #CHECK-NEXT: Name: Global
70 #CHECK-NEXT: Value: 0x1010
72 #CHECK-NEXT: Binding: Weak
73 #CHECK-NEXT: Type: Function
75 #CHECK-NEXT: Section: .text
78 #CHECK-NEXT: Name: Weak
79 #CHECK-NEXT: Value: 0x1008
81 #CHECK-NEXT: Binding: Weak
82 #CHECK-NEXT: Type: Function
84 #CHECK-NEXT: Section: .text