1 # RUN: yaml2obj %s -o %t
2 # RUN: llvm-objcopy --prefix-symbols prefix %t %t2
3 # RUN: llvm-readobj --symbols %t2 | FileCheck %s --check-prefixes=COMMON,BASIC
4 # RUN: llvm-objcopy --redefine-sym bar=baz --prefix-symbols prefix %t %t3
5 # RUN: llvm-readobj --symbols %t3 | FileCheck %s --check-prefixes=COMMON,REDEF
7 ## Show that an empty string is permitted as the argument to
9 # RUN: llvm-objcopy --prefix-symbols= %t2 %t4
12 ## Show that the last prefix wins.
13 # RUN: llvm-objcopy --prefix-symbols foo --prefix-symbols prefix %t %t5
25 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
27 AddressAlign: 0x0000000000000010
44 # COMMON-NEXT: Symbol {
46 # COMMON-NEXT: Value: 0x0
47 # COMMON-NEXT: Size: 0
48 # COMMON-NEXT: Binding: Local
49 # COMMON-NEXT: Type: None
50 # COMMON-NEXT: Other: 0
51 # COMMON-NEXT: Section: Undefined
53 # COMMON-NEXT: Symbol {
54 # COMMON-NEXT: Name: foo
55 # COMMON-NEXT: Value: 0x0
56 # COMMON-NEXT: Size: 0
57 # COMMON-NEXT: Binding: Local
58 # COMMON-NEXT: Type: Section
59 # COMMON-NEXT: Other: 0
60 # COMMON-NEXT: Section: .text
62 # COMMON-NEXT: Symbol {
63 # BASIC-NEXT: Name: prefixbar
64 # REDEF-NEXT: Name: prefixbaz
65 # COMMON-NEXT: Value: 0x0
66 # COMMON-NEXT: Size: 0
67 # COMMON-NEXT: Binding: Local
68 # COMMON-NEXT: Type: File
69 # COMMON-NEXT: Other: 0
70 # COMMON-NEXT: Section: .text
72 # COMMON-NEXT: Symbol {
73 # COMMON-NEXT: Name: prefixfoobar
74 # COMMON-NEXT: Value: 0x0
75 # COMMON-NEXT: Size: 0
76 # COMMON-NEXT: Binding: Global
77 # COMMON-NEXT: Type: Function
78 # COMMON-NEXT: Other: 0
79 # COMMON-NEXT: Section: .text
81 # COMMON-NEXT: Symbol {
82 # COMMON-NEXT: Name: prefixundef
83 # COMMON-NEXT: Value: 0x0
84 # COMMON-NEXT: Size: 0
85 # COMMON-NEXT: Binding: Global
86 # COMMON-NEXT: Type: None
87 # COMMON-NEXT: Other: 0
88 # COMMON-NEXT: Section: Undefined