Lines Matching refs:LLVM
6 # RUN: | FileCheck %s --check-prefix=LLVM-64 --strict-whitespace --match-full-lines
8 # RUN: | FileCheck %s --check-prefix=LLVM-64 --strict-whitespace --match-full-lines
10 # RUN: | FileCheck %s --check-prefix=LLVM-64 --strict-whitespace --match-full-lines
12 # LLVM-64:Relocations [
13 # LLVM-64-NEXT: Section (2) .rel.text {
14 # LLVM-64-NEXT: 0x0 R_X86_64_NONE rel_0 0x0
15 # LLVM-64-NEXT: 0x1 R_X86_64_PC32 rel_neg 0x0
16 # LLVM-64-NEXT: 0x5 R_X86_64_PLT32 rel_pos 0x0
17 # LLVM-64-NEXT: 0x9 R_X86_64_64 rel_64 0x0
18 # LLVM-64-NEXT: }
19 # LLVM-64-NEXT: Section (3) .rela.text {
20 # LLVM-64-NEXT: 0x0 R_X86_64_NONE rela_0 0x0
21 # LLVM-64-NEXT: 0x1 R_X86_64_PC32 rela_neg 0xFFFFFFFFFFFFFFFF
22 # LLVM-64-NEXT: 0x5 R_X86_64_PLT32 rela_pos 0x2
23 # LLVM-64-NEXT: 0xFFFFFFFFFFFFFFFF R_X86_64_64 rela_minneg 0x8000000000000000
24 # LLVM-64-NEXT: 0x9 R_X86_64_32S rela_maxpos 0x7FFFFFFFFFFFFFFF
25 # LLVM-64-NEXT: }
26 # LLVM-64-NEXT:]
50 ## Show that --expand-relocs expands the relocation dump for LLVM style only
53 # RUN: | FileCheck %s --check-prefix=LLVM-EXPAND-64 --match-full-lines --strict-whitespace
57 # LLVM-EXPAND-64:Relocations [
58 # LLVM-EXPAND-64-NEXT: Section (2) .rel.text {
59 # LLVM-EXPAND-64-NEXT: Relocation {
60 # LLVM-EXPAND-64-NEXT: Offset: 0x0
61 # LLVM-EXPAND-64-NEXT: Type: R_X86_64_NONE (0)
62 # LLVM-EXPAND-64-NEXT: Symbol: rel_0 (1)
63 # LLVM-EXPAND-64-NEXT: Addend: 0x0
64 # LLVM-EXPAND-64-NEXT: }
65 # LLVM-EXPAND-64-NEXT: Relocation {
66 # LLVM-EXPAND-64-NEXT: Offset: 0x1
67 # LLVM-EXPAND-64-NEXT: Type: R_X86_64_PC32 (2)
68 # LLVM-EXPAND-64-NEXT: Symbol: rel_neg (2)
69 # LLVM-EXPAND-64-NEXT: Addend: 0x0
70 # LLVM-EXPAND-64-NEXT: }
71 # LLVM-EXPAND-64-NEXT: Relocation {
72 # LLVM-EXPAND-64-NEXT: Offset: 0x5
73 # LLVM-EXPAND-64-NEXT: Type: R_X86_64_PLT32 (4)
74 # LLVM-EXPAND-64-NEXT: Symbol: rel_pos (3)
75 # LLVM-EXPAND-64-NEXT: Addend: 0x0
76 # LLVM-EXPAND-64-NEXT: }
77 # LLVM-EXPAND-64-NEXT: Relocation {
78 # LLVM-EXPAND-64-NEXT: Offset: 0x9
79 # LLVM-EXPAND-64-NEXT: Type: R_X86_64_64 (1)
80 # LLVM-EXPAND-64-NEXT: Symbol: rel_64 (4)
81 # LLVM-EXPAND-64-NEXT: Addend: 0x0
82 # LLVM-EXPAND-64-NEXT: }
83 # LLVM-EXPAND-64-NEXT: }
84 # LLVM-EXPAND-64-NEXT: Section (3) .rela.text {
85 # LLVM-EXPAND-64-NEXT: Relocation {
86 # LLVM-EXPAND-64-NEXT: Offset: 0x0
87 # LLVM-EXPAND-64-NEXT: Type: R_X86_64_NONE (0)
88 # LLVM-EXPAND-64-NEXT: Symbol: rela_0 (5)
89 # LLVM-EXPAND-64-NEXT: Addend: 0x0
90 # LLVM-EXPAND-64-NEXT: }
91 # LLVM-EXPAND-64-NEXT: Relocation {
92 # LLVM-EXPAND-64-NEXT: Offset: 0x1
93 # LLVM-EXPAND-64-NEXT: Type: R_X86_64_PC32 (2)
94 # LLVM-EXPAND-64-NEXT: Symbol: rela_neg (6)
95 # LLVM-EXPAND-64-NEXT: Addend: 0xFFFFFFFFFFFFFFFF
96 # LLVM-EXPAND-64-NEXT: }
97 # LLVM-EXPAND-64-NEXT: Relocation {
98 # LLVM-EXPAND-64-NEXT: Offset: 0x5
99 # LLVM-EXPAND-64-NEXT: Type: R_X86_64_PLT32 (4)
100 # LLVM-EXPAND-64-NEXT: Symbol: rela_pos (7)
101 # LLVM-EXPAND-64-NEXT: Addend: 0x2
102 # LLVM-EXPAND-64-NEXT: }
103 # LLVM-EXPAND-64-NEXT: Relocation {
104 # LLVM-EXPAND-64-NEXT: Offset: 0xFFFFFFFFFFFFFFFF
105 # LLVM-EXPAND-64-NEXT: Type: R_X86_64_64 (1)
106 # LLVM-EXPAND-64-NEXT: Symbol: rela_minneg (8)
107 # LLVM-EXPAND-64-NEXT: Addend: 0x8000000000000000
108 # LLVM-EXPAND-64-NEXT: }
109 # LLVM-EXPAND-64-NEXT: Relocation {
110 # LLVM-EXPAND-64-NEXT: Offset: 0x9
111 # LLVM-EXPAND-64-NEXT: Type: R_X86_64_32S (11)
112 # LLVM-EXPAND-64-NEXT: Symbol: rela_maxpos (9)
113 # LLVM-EXPAND-64-NEXT: Addend: 0x7FFFFFFFFFFFFFFF
114 # LLVM-EXPAND-64-NEXT: }
115 # LLVM-EXPAND-64-NEXT: }
116 # LLVM-EXPAND-64-NEXT:]
208 # RUN: | FileCheck %s -DFILE=%t.broken.rel --check-prefix=BROKEN-REL-LLVM
212 # BROKEN-REL-LLVM: Relocations [
213 # BROKEN-REL-LLVM-NEXT: Section (2) .rel.text {
214 # BROKEN-REL-LLVM-NEXT: warning: '[[FILE]]': unable to read relocations from SHT_REL section with i…
215 # BROKEN-REL-LLVM-NEXT: }
216 # BROKEN-REL-LLVM-NEXT: Section (3) .rela.text {
217 # BROKEN-REL-LLVM-NEXT: 0x0 R_X86_64_NONE rela_0 0x0
218 # BROKEN-REL-LLVM-NEXT: 0x1 R_X86_64_PC32 rela_neg 0xFFFFFFFFFFFFFFFF
219 # BROKEN-REL-LLVM-NEXT: 0x5 R_X86_64_PLT32 rela_pos 0x2
220 # BROKEN-REL-LLVM-NEXT: 0xFFFFFFFFFFFFFFFF R_X86_64_64 rela_minneg 0x8000000000000000
221 # BROKEN-REL-LLVM-NEXT: 0x9 R_X86_64_32S rela_maxpos 0x7FFFFFFFFFFFFFFF
222 # BROKEN-REL-LLVM-NEXT: }
223 # BROKEN-REL-LLVM-NEXT: ]
240 # RUN: | FileCheck %s -DFILE=%t.broken.rela --check-prefix=BROKEN-RELA-LLVM
244 # BROKEN-RELA-LLVM: Relocations [
245 # BROKEN-RELA-LLVM-NEXT: Section (2) .rel.text {
246 # BROKEN-RELA-LLVM-NEXT: 0x0 R_X86_64_NONE rel_0 0x0
247 # BROKEN-RELA-LLVM-NEXT: 0x1 R_X86_64_PC32 rel_neg 0x0
248 # BROKEN-RELA-LLVM-NEXT: 0x5 R_X86_64_PLT32 rel_pos 0x0
249 # BROKEN-RELA-LLVM-NEXT: 0x9 R_X86_64_64 rel_64 0x0
250 # BROKEN-RELA-LLVM-NEXT: }
251 # BROKEN-RELA-LLVM-NEXT: Section (3) .rela.text {
252 # BROKEN-RELA-LLVM-NEXT: warning: '[[FILE]]': unable to read relocations from SHT_RELA section with…
253 # BROKEN-RELA-LLVM-NEXT: }
254 # BROKEN-RELA-LLVM-NEXT: ]
271 # RUN: | FileCheck %s -DFILE=%t.broken.link --check-prefix=BROKEN-LINK-LLVM
275 # BROKEN-LINK-LLVM: Relocations [
276 # BROKEN-LINK-LLVM-NEXT: Section (2) .rel.text {
277 # BROKEN-LINK-LLVM-NEXT: warning: '[[FILE]]': unable to locate a symbol table for SHT_REL section w…
278 # BROKEN-LINK-LLVM-NEXT: }
279 # BROKEN-LINK-LLVM-NEXT: Section (3) .rela.text {
280 # BROKEN-LINK-LLVM-NEXT: warning: '[[FILE]]': unable to locate a symbol table for SHT_RELA section …
281 # BROKEN-LINK-LLVM-NEXT: }
282 # BROKEN-LINK-LLVM-NEXT: ]
295 # RUN: | FileCheck %s --check-prefix=LLVM-32 --strict-whitespace --match-full-lines
297 # RUN: | FileCheck %s --check-prefix=LLVM-32 --strict-whitespace --match-full-lines
299 # RUN: | FileCheck %s --check-prefix=LLVM-32 --strict-whitespace --match-full-lines
301 # LLVM-32:Relocations [
302 # LLVM-32-NEXT: Section (2) .rel.text {
303 # LLVM-32-NEXT: 0x0 R_386_NONE rel_0 0x0
304 # LLVM-32-NEXT: 0x1 R_386_PC32 rel_neg 0x0
305 # LLVM-32-NEXT: 0x5 R_386_PLT32 rel_pos 0x0
306 # LLVM-32-NEXT: }
307 # LLVM-32-NEXT: Section (3) .rela.text {
308 # LLVM-32-NEXT: 0x0 R_386_NONE rela_0 0x0
309 # LLVM-32-NEXT: 0x1 R_386_PC32 rela_neg 0xFFFFFFFF
310 # LLVM-32-NEXT: 0x5 R_386_PLT32 rela_pos 0x2
311 # LLVM-32-NEXT: 0xFFFFFFFF R_386_32 rela_minneg 0x80000000
312 # LLVM-32-NEXT: 0x9 R_386_GOT32 rela_maxpos 0x7FFFFFFF
313 # LLVM-32-NEXT: }
314 # LLVM-32-NEXT:]
337 ## Show that --expand-relocs expands the relocation dump for LLVM style only
340 # RUN: | FileCheck %s --check-prefix=LLVM-EXPAND-32 --strict-whitespace --match-full-lines
344 # LLVM-EXPAND-32:Relocations [
345 # LLVM-EXPAND-32-NEXT: Section (2) .rel.text {
346 # LLVM-EXPAND-32-NEXT: Relocation {
347 # LLVM-EXPAND-32-NEXT: Offset: 0x0
348 # LLVM-EXPAND-32-NEXT: Type: R_386_NONE (0)
349 # LLVM-EXPAND-32-NEXT: Symbol: rel_0 (1)
350 # LLVM-EXPAND-32-NEXT: Addend: 0x0
351 # LLVM-EXPAND-32-NEXT: }
352 # LLVM-EXPAND-32-NEXT: Relocation {
353 # LLVM-EXPAND-32-NEXT: Offset: 0x1
354 # LLVM-EXPAND-32-NEXT: Type: R_386_PC32 (2)
355 # LLVM-EXPAND-32-NEXT: Symbol: rel_neg (2)
356 # LLVM-EXPAND-32-NEXT: Addend: 0x0
357 # LLVM-EXPAND-32-NEXT: }
358 # LLVM-EXPAND-32-NEXT: Relocation {
359 # LLVM-EXPAND-32-NEXT: Offset: 0x5
360 # LLVM-EXPAND-32-NEXT: Type: R_386_PLT32 (4)
361 # LLVM-EXPAND-32-NEXT: Symbol: rel_pos (3)
362 # LLVM-EXPAND-32-NEXT: Addend: 0x0
363 # LLVM-EXPAND-32-NEXT: }
364 # LLVM-EXPAND-32-NEXT: }
365 # LLVM-EXPAND-32-NEXT: Section (3) .rela.text {
366 # LLVM-EXPAND-32-NEXT: Relocation {
367 # LLVM-EXPAND-32-NEXT: Offset: 0x0
368 # LLVM-EXPAND-32-NEXT: Type: R_386_NONE (0)
369 # LLVM-EXPAND-32-NEXT: Symbol: rela_0 (4)
370 # LLVM-EXPAND-32-NEXT: Addend: 0x0
371 # LLVM-EXPAND-32-NEXT: }
372 # LLVM-EXPAND-32-NEXT: Relocation {
373 # LLVM-EXPAND-32-NEXT: Offset: 0x1
374 # LLVM-EXPAND-32-NEXT: Type: R_386_PC32 (2)
375 # LLVM-EXPAND-32-NEXT: Symbol: rela_neg (5)
376 # LLVM-EXPAND-32-NEXT: Addend: 0xFFFFFFFF
377 # LLVM-EXPAND-32-NEXT: }
378 # LLVM-EXPAND-32-NEXT: Relocation {
379 # LLVM-EXPAND-32-NEXT: Offset: 0x5
380 # LLVM-EXPAND-32-NEXT: Type: R_386_PLT32 (4)
381 # LLVM-EXPAND-32-NEXT: Symbol: rela_pos (6)
382 # LLVM-EXPAND-32-NEXT: Addend: 0x2
383 # LLVM-EXPAND-32-NEXT: }
384 # LLVM-EXPAND-32-NEXT: Relocation {
385 # LLVM-EXPAND-32-NEXT: Offset: 0xFFFFFFFF
386 # LLVM-EXPAND-32-NEXT: Type: R_386_32 (1)
387 # LLVM-EXPAND-32-NEXT: Symbol: rela_minneg (7)
388 # LLVM-EXPAND-32-NEXT: Addend: 0x80000000
389 # LLVM-EXPAND-32-NEXT: }
390 # LLVM-EXPAND-32-NEXT: Relocation {
391 # LLVM-EXPAND-32-NEXT: Offset: 0x9
392 # LLVM-EXPAND-32-NEXT: Type: R_386_GOT32 (3)
393 # LLVM-EXPAND-32-NEXT: Symbol: rela_maxpos (8)
394 # LLVM-EXPAND-32-NEXT: Addend: 0x7FFFFFFF
395 # LLVM-EXPAND-32-NEXT: }
396 # LLVM-EXPAND-32-NEXT: }
397 # LLVM-EXPAND-32-NEXT:]
472 # RUN: llvm-readobj --relocs %tshname 2>&1 | FileCheck %s -DFILE=%tshname --check-prefix=LLVM-SHNAME
475 # LLVM-SHNAME: Relocations [
476 # LLVM-SHNAME-NEXT: warning: '[[FILE]]': unable to get the name of SHT_REL section with index 2: a …
477 # LLVM-SHNAME-NEXT: Section (2) <?> {
478 # LLVM-SHNAME-NEXT: 0x0 R_X86_64_NONE rel_0 0x0
479 # LLVM-SHNAME-NEXT: 0x1 R_X86_64_PC32 rel_neg 0x0
480 # LLVM-SHNAME-NEXT: 0x5 R_X86_64_PLT32 rel_pos 0x0
481 # LLVM-SHNAME-NEXT: 0x9 R_X86_64_64 rel_64 0x0
482 # LLVM-SHNAME-NEXT: }
483 # LLVM-SHNAME-NEXT: warning: '[[FILE]]': unable to get the name of SHT_RELA section with index 3: a…
484 # LLVM-SHNAME-NEXT: Section (3) <?> {
485 # LLVM-SHNAME-NEXT: 0x0 R_X86_64_NONE rela_0 0x0
486 # LLVM-SHNAME-NEXT: 0x1 R_X86_64_PC32 rela_neg 0xFFFFFFFFFFFFFFFF
487 # LLVM-SHNAME-NEXT: 0x5 R_X86_64_PLT32 rela_pos 0x2
488 # LLVM-SHNAME-NEXT: 0xFFFFFFFFFFFFFFFF R_X86_64_64 rela_minneg 0x8000000000000000
489 # LLVM-SHNAME-NEXT: 0x9 R_X86_64_32S rela_maxpos 0x7FFFFFFFFFFFFFFF
490 # LLVM-SHNAME-NEXT: }
491 # LLVM-SHNAME-NEXT: ]