|
3 | 3 | // REQUIRES: ld.lld |
4 | 4 |
|
5 | 5 | // RUN: %clang --target=armv6a-none-linux-gnueabi -fuse-ld=lld \ |
6 | | -// RUN: -nostdlib -nostdinc -shared %s -o %t1 |
| 6 | +// RUN: -nostdlib -nostdinc -shared %s -o %t.v6a |
7 | 7 | // RUN: llvm-objdump --no-show-raw-insn --no-print-imm-hex \ |
8 | | -// RUN: -d %t1 | FileCheck %s --check-prefixes=CHECK,LE |
| 8 | +// RUN: -d %t.v6a | FileCheck %s --check-prefixes=CHECK,LE |
9 | 9 |
|
10 | 10 | // Test PLT section parsing on armeb. |
11 | 11 |
|
12 | 12 | // RUN: %clang --target=armv6aeb-none-linux-gnueabi -fuse-ld=lld \ |
13 | | -// RUN: -nostdlib -nostdinc -shared %s -o %t2 |
| 13 | +// RUN: -nostdlib -nostdinc -shared %s -o %t.v6aeb |
14 | 14 | // RUN: llvm-objdump --no-show-raw-insn --no-print-imm-hex \ |
15 | | -// RUN: -d %t2 | FileCheck %s --check-prefixes=CHECK,BE |
16 | | -// RUN: obj2yaml %t2 | FileCheck %s --check-prefixes=NOBE8 |
| 15 | +// RUN: -d %t.v6aeb | FileCheck %s --check-prefixes=CHECK,BE |
| 16 | +// RUN: obj2yaml %t.v6aeb | FileCheck %s --check-prefixes=NOBE8 |
17 | 17 |
|
18 | 18 | // Test PLT section parsing on armeb with be8. |
19 | 19 |
|
20 | 20 | // RUN: %clang --target=armv7aeb-none-linux-gnueabi -fuse-ld=lld \ |
21 | | -// RUN: -nostdlib -nostdinc -shared %s -o %t3 |
| 21 | +// RUN: -nostdlib -nostdinc -shared %s -o %t.v7aeb |
22 | 22 | // RUN: llvm-objdump --no-show-raw-insn --no-print-imm-hex \ |
23 | | -// RUN: -d %t3 | FileCheck %s --check-prefixes=CHECK,BE |
24 | | -// RUN: obj2yaml %t3 | FileCheck %s --check-prefixes=BE8 |
| 23 | +// RUN: -d %t.v7aeb | FileCheck %s --check-prefixes=CHECK,BE |
| 24 | +// RUN: obj2yaml %t.v7aeb | FileCheck %s --check-prefixes=BE8 |
25 | 25 |
|
26 | 26 | // LE: file format elf32-littlearm |
27 | 27 | // BE: file format elf32-bigarm |
|
59 | 59 | // Test PLT section parsing on thumb. |
60 | 60 |
|
61 | 61 | // RUN: %clang --target=thumbv8.1m.main-none-linux-eabi \ |
62 | | -// RUN: -c %s -o %t4.o |
63 | | -// RUN: ld.lld --shared %t4.o -o %t4 |
| 62 | +// RUN: -c %s -o %t.v8.o |
| 63 | +// RUN: ld.lld --shared %t.v8.o -o %t.v8 |
64 | 64 | // RUN: llvm-objdump --no-show-raw-insn --no-print-imm-hex \ |
65 | | -// RUN: -d %t4 | FileCheck %s --check-prefixes=THUMB,LE |
| 65 | +// RUN: -d %t.v8 | FileCheck %s --check-prefixes=THUMB,LE |
66 | 66 |
|
67 | 67 | // Test PLT section parsing on thumbeb. |
68 | 68 |
|
69 | 69 | // RUN: %clang --target=thumbebv8.1m.main-none-linux-eabi \ |
70 | | -// RUN: -c %s -o %t5.o |
71 | | -// RUN: ld.lld --shared %t5.o -o %t5 |
| 70 | +// RUN: -c %s -o %t.v8eb.o |
| 71 | +// RUN: ld.lld --shared %t.v8eb.o -o %t.v8eb |
72 | 72 | // RUN: llvm-objdump --no-show-raw-insn --no-print-imm-hex \ |
73 | | -// RUN: -d %t5 | FileCheck %s --check-prefixes=THUMB,BE |
74 | | -// RUN: obj2yaml %t5 | FileCheck %s --check-prefixes=NOBE8 |
| 73 | +// RUN: -d %t.v8eb | FileCheck %s --check-prefixes=THUMB,BE |
| 74 | +// RUN: obj2yaml %t.v8eb | FileCheck %s --check-prefixes=NOBE8 |
75 | 75 |
|
76 | 76 | // Test PLT section parsing on thumbeb with be8. |
77 | 77 |
|
78 | 78 | // RUN: %clang --target=thumbebv8.1m.main-none-linux-eabi \ |
79 | | -// RUN: -c %s -o %t6.o |
80 | | -// RUN: ld.lld --shared --be8 %t6.o -o %t6 |
| 79 | +// RUN: -c %s -o %t.v8eb.be8.o |
| 80 | +// RUN: ld.lld --shared --be8 %t.v8eb.be8.o -o %t.v8eb.be8 |
81 | 81 | // RUN: llvm-objdump --no-show-raw-insn --no-print-imm-hex \ |
82 | | -// RUN: -d %t6 | FileCheck %s --check-prefixes=THUMB,BE |
83 | | -// RUN: obj2yaml %t6 | FileCheck %s --check-prefixes=BE8 |
| 82 | +// RUN: -d %t.v8eb.be8 | FileCheck %s --check-prefixes=THUMB,BE |
| 83 | +// RUN: obj2yaml %t.v8eb.be8 | FileCheck %s --check-prefixes=BE8 |
84 | 84 |
|
85 | 85 | // THUMB: Disassembly of section .text: |
86 | 86 | // THUMB-EMPTY: |
|
124 | 124 |
|
125 | 125 | // RUN: %clang --target=armv6a-none-linux-gnueabi -fuse-ld=lld \ |
126 | 126 | // RUN: -Xlinker --script=%t.long.script -nostdlib -nostdinc \ |
127 | | -// RUN: -shared %s -o %t7 |
| 127 | +// RUN: -shared %s -o %t.v6a.long |
128 | 128 | // RUN: llvm-objdump --no-show-raw-insn --no-print-imm-hex \ |
129 | | -// RUN: -d %t7 | FileCheck %s --check-prefixes=CHECKLONG,LE |
| 129 | +// RUN: -d %t.v6a.long | FileCheck %s --check-prefixes=CHECKLONG,LE |
130 | 130 |
|
131 | 131 | // Test PLT section with long entries parsing on armeb. |
132 | 132 |
|
133 | 133 | // RUN: %clang --target=armv6aeb-none-linux-gnueabi -fuse-ld=lld \ |
134 | 134 | // RUN: -Xlinker --script=%t.long.script -nostdlib -nostdinc \ |
135 | | -// RUN: -shared %s -o %t8 |
| 135 | +// RUN: -shared %s -o %t.v6aeb.long |
136 | 136 | // RUN: llvm-objdump --no-show-raw-insn --no-print-imm-hex \ |
137 | | -// RUN: -d %t8 | FileCheck %s --check-prefixes=CHECKLONG,BE |
138 | | -// RUN: obj2yaml %t8 | FileCheck %s --check-prefixes=NOBE8 |
| 137 | +// RUN: -d %t.v6aeb.long | FileCheck %s --check-prefixes=CHECKLONG,BE |
| 138 | +// RUN: obj2yaml %t.v6aeb.long | FileCheck %s --check-prefixes=NOBE8 |
139 | 139 |
|
140 | 140 | // Test PLT section with long entries parsing on armeb with be8. |
141 | 141 |
|
142 | 142 | // RUN: %clang --target=armv7aeb-none-linux-gnueabi -fuse-ld=lld \ |
143 | 143 | // RUN: -Xlinker --script=%t.long.script -nostdlib -nostdinc \ |
144 | | -// RUN: -shared %s -o %t9 |
| 144 | +// RUN: -shared %s -o %t.v7aeb.long |
145 | 145 | // RUN: llvm-objdump --no-show-raw-insn --no-print-imm-hex \ |
146 | | -// RUN: -d %t9 | FileCheck %s --check-prefixes=CHECKLONG,BE |
147 | | -// RUN: obj2yaml %t9 | FileCheck %s --check-prefixes=BE8 |
| 146 | +// RUN: -d %t.v7aeb.long | FileCheck %s --check-prefixes=CHECKLONG,BE |
| 147 | +// RUN: obj2yaml %t.v7aeb.long | FileCheck %s --check-prefixes=BE8 |
148 | 148 |
|
149 | 149 | // CHECKLONG: Disassembly of section .text: |
150 | 150 | // CHECKLONG-EMPTY: |
|
184 | 184 |
|
185 | 185 | // RUN: %clang --target=armv6a-none-linux-gnueabi -fuse-ld=lld \ |
186 | 186 | // RUN: -Xlinker --script=%t.mix.script -nostdlib -nostdinc \ |
187 | | -// RUN: -shared %s -o %t10 |
| 187 | +// RUN: -shared %s -o %t.v6a.mix |
188 | 188 | // RUN: llvm-objdump --no-show-raw-insn --no-print-imm-hex \ |
189 | | -// RUN: -d %t10 | FileCheck %s --check-prefixes=CHECKMIX,LE |
| 189 | +// RUN: -d %t.v6a.mix | FileCheck %s --check-prefixes=CHECKMIX,LE |
190 | 190 |
|
191 | 191 | // Test PLT section with mixed long and short entries parsing on armeb. |
192 | 192 |
|
193 | 193 | // RUN: %clang --target=armv6aeb-none-linux-gnueabi -fuse-ld=lld \ |
194 | 194 | // RUN: -Xlinker --script=%t.mix.script -nostdlib -nostdinc \ |
195 | | -// RUN: -shared %s -o %t11 |
| 195 | +// RUN: -shared %s -o %t.v6aeb.mix |
196 | 196 | // RUN: llvm-objdump --no-show-raw-insn --no-print-imm-hex \ |
197 | | -// RUN: -d %t11 | FileCheck %s --check-prefixes=CHECKMIX,BE |
198 | | -// RUN: obj2yaml %t11 | FileCheck %s --check-prefixes=NOBE8 |
| 197 | +// RUN: -d %t.v6aeb.mix | FileCheck %s --check-prefixes=CHECKMIX,BE |
| 198 | +// RUN: obj2yaml %t.v6aeb.mix | FileCheck %s --check-prefixes=NOBE8 |
199 | 199 |
|
200 | 200 | // Test PLT section with mixed long and short entries parsing on armeb with be8. |
201 | 201 |
|
202 | 202 | // RUN: %clang --target=armv7aeb-none-linux-gnueabi -fuse-ld=lld \ |
203 | 203 | // RUN: -Xlinker --script=%t.mix.script -nostdlib -nostdinc \ |
204 | | -// RUN: -shared %s -o %t12 |
| 204 | +// RUN: -shared %s -o %t.v7aeb.mix |
205 | 205 | // RUN: llvm-objdump --no-show-raw-insn --no-print-imm-hex \ |
206 | | -// RUN: -d %t12 | FileCheck %s --check-prefixes=CHECKMIX,BE |
207 | | -// RUN: obj2yaml %t12 | FileCheck %s --check-prefixes=BE8 |
| 206 | +// RUN: -d %t.v7aeb.mix | FileCheck %s --check-prefixes=CHECKMIX,BE |
| 207 | +// RUN: obj2yaml %t.v7aeb.mix | FileCheck %s --check-prefixes=BE8 |
208 | 208 |
|
209 | 209 | // CHECKMIX: Disassembly of section .text: |
210 | 210 | // CHECKMIX-EMPTY: |
|
0 commit comments