Home
last modified time | relevance | path

Searched refs:reloc (Results 1 – 25 of 267) sorted by relevance

1234567891011

/llvm-project-15.0.7/llvm/test/MC/AMDGPU/
H A Dreloc-directive.s8 # PRINT-NEXT: .reloc 0, R_AMDGPU_NONE, 8
43 .reloc 2, R_AMDGPU_NONE, .data
44 .reloc 1, R_AMDGPU_NONE, foo+4
45 .reloc 0, R_AMDGPU_NONE, 8
46 .reloc 0, R_AMDGPU_ABS32_LO, .data
47 .reloc 0, R_AMDGPU_ABS32_HI, .data
48 .reloc 0, R_AMDGPU_ABS64, .data
49 .reloc 0, R_AMDGPU_REL32, .data
50 .reloc 0, R_AMDGPU_REL64, .data
51 .reloc 0, R_AMDGPU_ABS32, .data
[all …]
/llvm-project-15.0.7/llvm/test/MC/SystemZ/
H A Dreloc-directive.s38 .reloc 2, R_390_NONE, .data
39 .reloc 1, R_390_NONE, foo+4
40 .reloc 0, R_390_NONE, 8
41 .reloc 0, R_390_64, .data+2
43 .reloc 0, R_390_PC32DBL, 6
44 .reloc 4, R_390_12, foo
45 .reloc 2, R_390_20, foo
48 .reloc 0, BFD_RELOC_8, 9
49 .reloc 0, BFD_RELOC_16, 9
50 .reloc 0, BFD_RELOC_32, 9
[all …]
/llvm-project-15.0.7/llvm/test/MC/Mips/
H A Dreloc-directive.s18 .reloc 4, R_MIPS_NONE, foo # ASM: .reloc 4, R_MIPS_NONE, foo
19 .reloc 0, R_MIPS_NONE, foo+4 # ASM: .reloc 0, R_MIPS_NONE, foo+4
20 .reloc 8, R_MIPS_32, foo+8 # ASM: .reloc 8, R_MIPS_32, foo+8
24 .reloc 12, R_MIPS_NONE # ASM: .reloc 12, R_MIPS_NONE{{$}}
26 .reloc 16, R_MIPS_CALL_HI16, 4 # ASM: .reloc 16, R_MIPS_CALL_HI16, 4
28 .reloc 20, R_MIPS_CALL_LO16, 4 # ASM: .reloc 20, R_MIPS_CALL_LO16, 4
30 .reloc 24, R_MIPS_CALL16, 4 # ASM: .reloc 24, R_MIPS_CALL16, 4
32 .reloc 28, R_MIPS_GOT16, 4 # ASM: .reloc 28, R_MIPS_GOT16, 4
34 .reloc 32, R_MIPS_GOT_PAGE, 4 # ASM: .reloc 32, R_MIPS_GOT_PAGE, 4
36 .reloc 36, R_MIPS_GOT_OFST, 4 # ASM: .reloc 36, R_MIPS_GOT_OFST, 4
[all …]
H A Dreloc-directive-label-offset.s19 .reloc 1b, R_MIPS_NONE, foo # ASM-32: .reloc ($tmp0), R_MIPS_NONE, foo
20 # ASM-64: .reloc .Ltmp0, R_MIPS_NONE, foo
22 .reloc 1f, R_MIPS_32, foo # ASM-32: .reloc ($tmp1), R_MIPS_32, foo
23 # ASM-64: .reloc .Ltmp1, R_MIPS_32, foo
26 .reloc 1f, R_MIPS_CALL16, foo # ASM-32: .reloc ($tmp2), R_MIPS_CALL16, foo
27 # ASM-64: .reloc .Ltmp2, R_MIPS_CALL16, foo
30 .reloc 2f, R_MIPS_GOT_DISP, foo # ASM-32: .reloc ($tmp3), R_MIPS_GOT_DISP, foo
31 # ASM-64: .reloc .Ltmp3, R_MIPS_GOT_DISP, foo
34 .reloc 3f, R_MIPS_GOT_PAGE, foo # ASM-32: .reloc ($tmp4), R_MIPS_GOT_PAGE, foo
43 .reloc bar, R_MIPS_GOT_OFST, foo # ASM: .reloc bar, R_MIPS_GOT_OFST, foo
[all …]
/llvm-project-15.0.7/llvm/test/MC/X86/
H A Dreloc-directive-elf-64.s8 # PRINT-NEXT: .reloc 0, R_X86_64_NONE, 8
13 # PRINT-NEXT: .reloc 0, BFD_RELOC_8, 9
34 .reloc 2, R_X86_64_NONE, .data
35 .reloc 1, R_X86_64_NONE, foo+4
36 .reloc 0, R_X86_64_NONE, 8
37 .reloc 0, R_X86_64_64, .data+2
41 .reloc 0, BFD_RELOC_NONE, 9
42 .reloc 0, BFD_RELOC_8, 9
43 .reloc 0, BFD_RELOC_16, 9
44 .reloc 0, BFD_RELOC_32, 9
[all …]
H A Dreloc-directive-elf-32.s9 # PRINT-NEXT: .reloc 0, R_386_NONE, 8
37 .reloc 2, R_386_NONE, .data
38 .reloc 1, R_386_NONE, foo+4
39 .reloc 0, R_386_NONE, 8
40 .reloc 0, R_386_32, .data+2
41 .reloc 0, R_386_IRELATIVE, foo+3
42 .reloc 0, R_386_GOT32X, 5
44 .reloc 0, BFD_RELOC_NONE, 9
45 .reloc 0, BFD_RELOC_8, 9
46 .reloc 0, BFD_RELOC_16, 9
[all …]
H A Dreloc-directive.s16 .reloc 4, dir32, foo # ASM: .reloc 4, dir32, foo
17 .reloc 0, secrel32, foo+4 # ASM: .reloc 0, secrel32, foo+4
18 .reloc 8, secidx, foo+8 # ASM: .reloc 8, secidx, foo+8
19 .reloc 12, dir32, foo@secrel32 # ASM: .reloc 12, dir32, foo@SECREL32
20 .reloc 16, dir32, foo@imgrel # ASM: .reloc 16, dir32, foo@IMGREL
/llvm-project-15.0.7/llvm/test/MC/AArch64/
H A Dreloc-directive.s7 # PRINT: .reloc 0, R_AARCH64_NONE, 8
12 # PRINT: .reloc 0, BFD_RELOC_16, 9
13 # PRINT: .reloc 0, BFD_RELOC_32, 9
14 # PRINT: .reloc 0, BFD_RELOC_64, 9
19 .reloc 8, R_AARCH64_NONE, .data
20 .reloc 4, R_AARCH64_NONE, foo+4
21 .reloc 0, R_AARCH64_NONE, 8
27 .reloc 0, BFD_RELOC_NONE, 9
28 .reloc 0, BFD_RELOC_16, 9
29 .reloc 0, BFD_RELOC_32, 9
[all …]
H A DELF_ARM64_large-relocations.s1 # RUN: llvm-mc -triple=arm64-none-linux-gnu -large-code-model -filetype=obj -o %T/large-reloc.o %s
2 …erify -map-section large-reloc.o,.eh_frame=0x10000 -map-section large-reloc.o,.text=0xffff00000000…
3 …llvm-mc -triple=aarch64_be-none-linux-gnu -large-code-model -filetype=obj -o %T/be-large-reloc.o %s
4 …-map-section be-large-reloc.o,.eh_frame=0x10000 -map-section be-large-reloc.o,.text=0xffff00000000…
20 …reloc.o, .eh_frame) + (*{4}(section_addr(large-reloc.o, .eh_frame))) + 0xc) = g - (section_addr(la…
/llvm-project-15.0.7/lld/test/ELF/
H A Darm-adr-long.s28 .reloc 0, R_ARM_ALU_PC_G0_NC, dat1
29 .reloc 4, R_ARM_ALU_PC_G1, dat1
34 .reloc 8, R_ARM_ALU_PC_G0_NC, dat2
35 .reloc 12, R_ARM_ALU_PC_G1_NC, dat2
36 .reloc 16, R_ARM_ALU_PC_G2, dat2
41 .reloc 20, R_ARM_ALU_PC_G0_NC, dat1
43 .reloc 28, R_ARM_ALU_PC_G2, dat1
50 .reloc 40, R_ARM_LDR_PC_G2, dat2
55 .reloc 48, R_ARM_LDR_PC_G1, dat1
62 .reloc 60, R_ARM_LDR_PC_G2, dat1
[all …]
H A Darm-ldrlit.s45 .reloc 0, R_ARM_LDR_PC_G0, dat1
48 .reloc 4, R_ARM_LDR_PC_G0, dat2
51 .reloc 8, R_ARM_LDR_PC_G0, dat3
54 .reloc 0xc, R_ARM_LDR_PC_G0, dat4
69 .reloc 0, R_ARM_LDR_PC_G0, target3
72 .reloc 4, R_ARM_LDR_PC_G0, target4
75 .reloc 8, R_ARM_LDR_PC_G0, dat5
78 .reloc 0xc, R_ARM_LDR_PC_G0, dat6
81 .reloc 0x10, R_ARM_LDR_PC_G0, dat7
84 .reloc 0x14, R_ARM_LDR_PC_G0, dat8
[all …]
H A Darm-adr-err-long.s27 .reloc 0, R_ARM_ALU_PC_G0, dat1
29 .reloc 4, R_ARM_ALU_PC_G1, dat1
34 .reloc 8, R_ARM_ALU_PC_G0_NC, dat2
35 .reloc 12, R_ARM_ALU_PC_G1, dat2
37 .reloc 16, R_ARM_ALU_PC_G2, dat2
42 .reloc 20, R_ARM_ALU_PC_G0, dat1
44 .reloc 24, R_ARM_ALU_PC_G1, dat1
45 .reloc 28, R_ARM_ALU_PC_G2, dat1
50 .reloc 32, R_ARM_ALU_PC_G0_NC, dat2
51 .reloc 36, R_ARM_ALU_PC_G1_NC, dat2
[all …]
H A Darm-thumb2-ldrlit.s49 .reloc 2, R_ARM_THM_PC12, dat1
52 .reloc 6, R_ARM_THM_PC12, dat2
56 .reloc 0xc, R_ARM_THM_PC12, dat3
59 .reloc 0x10, R_ARM_THM_PC12, dat4
77 .reloc 0, R_ARM_THM_PC12, target3
81 .reloc 6, R_ARM_THM_PC12, target4
85 .reloc 0xc, R_ARM_THM_PC12, dat5
88 .reloc 0x10, R_ARM_THM_PC12, dat6
92 .reloc 0x16, R_ARM_THM_PC12, dat7
95 .reloc 0x1a, R_ARM_THM_PC12, dat8
[all …]
H A Darm-thumb2-adr.s48 .reloc 2, R_ARM_THM_ALU_PREL_11_0, dat1
51 .reloc 6, R_ARM_THM_ALU_PREL_11_0, dat2
55 .reloc 0xc, R_ARM_THM_ALU_PREL_11_0, dat3
58 .reloc 0x10, R_ARM_THM_ALU_PREL_11_0, dat4
61 .reloc 0x14, R_ARM_THM_ALU_PREL_11_0, target1
73 .reloc 0, R_ARM_THM_ALU_PREL_11_0, target3
77 .reloc 6, R_ARM_THM_ALU_PREL_11_0, target4
81 .reloc 0xc, R_ARM_THM_ALU_PREL_11_0, dat5
84 .reloc 0x10, R_ARM_THM_ALU_PREL_11_0, dat6
89 .reloc 0x16, R_ARM_THM_ALU_PREL_11_0, dat7
[all …]
H A Ddead-reloc-in-nonalloc.s2 ## Test that -z dead-reloc-in-nonalloc= can customize the tombstone value we
6 # RUN: ld.lld --icf=all -z dead-reloc-in-nonalloc=.debug_info=0xaaaaaaaa \
7 # RUN: -z dead-reloc-in-nonalloc=.not_debug=0xbbbbbbbb %t.o -o %t
10 # RUN: ld.lld --icf=all -z dead-reloc-in-nonalloc=.debug_info=2863311530 \
11 # RUN: -z dead-reloc-in-nonalloc=.not_debug=0xbbbbbbbb %t.o -o - | cmp %t -
22 # RUN: ld.lld --icf=all -z dead-reloc-in-nonalloc=.debug_info=0 %t.o -o %tzero
29 # RUN: ld.lld --icf=all -z dead-reloc-in-nonalloc='.debug_i*=0xaaaaaaaa' \
33 # RUN: ld.lld --icf=all -z dead-reloc-in-nonalloc='.debug_info=1' \
34 # RUN: -z dead-reloc-in-nonalloc='.debug_i*=0' %t.o -o - | cmp %tzero -
41 # USAGE: error: -z dead-reloc-in-nonalloc=: expected <section_glob>=<value>
[all …]
H A Darm-adr.s30 .reloc 0, R_ARM_ALU_PC_G0, dat1
33 .reloc 4, R_ARM_ALU_PC_G0, dat2
36 .reloc 8, R_ARM_ALU_PC_G0, dat3
39 .reloc 0xc, R_ARM_ALU_PC_G0, dat4
66 .reloc 0, R_ARM_ALU_PC_G0, tfunc
69 .reloc 4, R_ARM_ALU_PC_G0, afunc
H A Dppc64-got-to-pcrel-relaxation.s48 .reloc .Lpcrel1-8,R_PPC64_PCREL_OPT,.-(.Lpcrel1-8)
54 .reloc .Lpcrel2-8,R_PPC64_PCREL_OPT,.-(.Lpcrel2-8)
76 .reloc .Lpcrel3-8,R_PPC64_PCREL_OPT,.-(.Lpcrel3-8)
80 .reloc .Lpcrel4-8,R_PPC64_PCREL_OPT,.-(.Lpcrel4-8)
100 .reloc .Lpcrel5-8,R_PPC64_PCREL_OPT,.-(.Lpcrel5-8)
104 .reloc .Lpcrel6-8,R_PPC64_PCREL_OPT,.-(.Lpcrel6-8)
124 .reloc .Lpcrel7-8,R_PPC64_PCREL_OPT,.-(.Lpcrel7-8)
128 .reloc .Lpcrel8-8,R_PPC64_PCREL_OPT,.-(.Lpcrel8-8)
148 .reloc .Lpcrel9-8,R_PPC64_PCREL_OPT,.-(.Lpcrel9-8)
152 .reloc .Lpcrel10-8,R_PPC64_PCREL_OPT,.-(.Lpcrel10-8)
[all …]
/llvm-project-15.0.7/llvm/test/MC/RISCV/
H A Dreloc-directive.s8 # PRINT: .reloc 0, R_RISCV_NONE, 8
43 .reloc 8, R_RISCV_NONE, .data
44 .reloc 4, R_RISCV_NONE, foo+4
45 .reloc 0, R_RISCV_NONE, 8
51 .reloc 0, BFD_RELOC_NONE, 9
52 .reloc 0, BFD_RELOC_32, 9
53 .reloc 0, BFD_RELOC_64, 9
55 .reloc foo, R_RISCV_32, 6
56 .reloc line, R_RISCV_32, 6
57 .reloc probe, R_RISCV_32, 6
[all …]
/llvm-project-15.0.7/llvm/test/MC/PowerPC/
H A Dppc64-reloc-directive.s9 # PRINT: .reloc 0, R_PPC64_NONE, 8
14 # PRINT: .reloc 0, BFD_RELOC_16, 9
15 # PRINT: .reloc 0, BFD_RELOC_32, 9
33 .reloc 8, R_PPC64_NONE, .data
34 .reloc 4, R_PPC64_NONE, foo+4
35 .reloc 0, R_PPC64_NONE, 8
38 .reloc 0, R_PPC64_REL16_HA, 5
40 .reloc 0, BFD_RELOC_NONE, 9
41 .reloc 0, BFD_RELOC_16, 9
42 .reloc 0, BFD_RELOC_32, 9
[all …]
H A Dppc32-reloc-directive.s5 # PRINT: .reloc 8, R_PPC_NONE, .data
6 # PRINT: .reloc 4, R_PPC_NONE, foo+4
7 # PRINT: .reloc 0, R_PPC_NONE, 8
12 # PRINT: .reloc 0, BFD_RELOC_16, 9
29 .reloc 8, R_PPC_NONE, .data
30 .reloc 4, R_PPC_NONE, foo+4
31 .reloc 0, R_PPC_NONE, 8
34 .reloc 0, R_PPC_REL16_HA, 5
36 .reloc 0, BFD_RELOC_NONE, 9
37 .reloc 0, BFD_RELOC_16, 9
[all …]
/llvm-project-15.0.7/llvm/test/MC/Sparc/
H A Dreloc-directive.s6 # PRINT: .reloc 8, R_SPARC_NONE, .data
8 # PRINT: .reloc 0, R_SPARC_NONE, 8
29 .reloc 8, R_SPARC_NONE, .data
30 .reloc 4, R_SPARC_NONE, foo+4
31 .reloc 0, R_SPARC_NONE, 8
33 .reloc 0, R_SPARC_32, .data+2
34 .reloc 0, R_SPARC_UA16, foo+3
35 .reloc 0, R_SPARC_DISP32, foo+5
37 .reloc 0, BFD_RELOC_NONE, 9
38 .reloc 0, BFD_RELOC_32, foo+2
[all …]
/llvm-project-15.0.7/llvm/test/MC/ARM/
H A Dreloc-directive.s16 .reloc 8, R_ARM_NONE, .data
17 .reloc 4, R_ARM_NONE, foo+4
18 .reloc 0, R_ARM_NONE, 8
20 .reloc 0, R_ARM_ALU_PC_G0, .data+2
21 .reloc 0, R_ARM_LDR_PC_G0, foo+3
24 .reloc 0, BFD_RELOC_NONE, 9
25 .reloc 0, BFD_RELOC_8, 9
26 .reloc 0, BFD_RELOC_16, 9
27 .reloc 0, BFD_RELOC_32, 9
36 # PRINT: .reloc 8, R_ARM_NONE, .data
[all …]
/llvm-project-15.0.7/lld/wasm/
H A DRelocations.cpp88 for (const WasmRelocation &reloc : chunk->getRelocations()) { in scanRelocations() local
89 if (reloc.Type == R_WASM_TYPE_INDEX_LEB) { in scanRelocations()
91 file->typeMap[reloc.Index] = in scanRelocations()
92 out.typeSec->registerType(types[reloc.Index]); in scanRelocations()
93 file->typeIsUsed[reloc.Index] = true; in scanRelocations()
98 Symbol *sym = file->getSymbols()[reloc.Index]; in scanRelocations()
100 switch (reloc.Type) { in scanRelocations()
119 error(toString(file) + ": relocation " + relocTypeToString(reloc.Type) + in scanRelocations()
129 relocTypeToString(reloc.Type) + in scanRelocations()
136 relocTypeToString(reloc.Type) + " cannot be used against `" + in scanRelocations()
[all …]
H A DInputFiles.cpp102 if (reloc.Type == R_WASM_TYPE_INDEX_LEB) { in calcNewIndex()
103 assert(typeIsUsed[reloc.Index]); in calcNewIndex()
104 return typeMap[reloc.Index]; in calcNewIndex()
106 const Symbol *sym = symbols[reloc.Index]; in calcNewIndex()
115 switch (reloc.Type) { in calcNewAddend()
129 return reloc.Addend; in calcNewAddend()
131 return getSectionSymbol(reloc.Index)->section->getOffset(reloc.Addend); in calcNewAddend()
142 sym = symbols[reloc.Index]; in calcNewValue()
153 switch (reloc.Type) { in calcNewValue()
192 return typeMap[reloc.Index]; in calcNewValue()
[all …]
/llvm-project-15.0.7/llvm/test/ExecutionEngine/RuntimeDyld/ARM/
H A DELF_ARM_EXIDX_relocations.s2 # RUN: llvm-mc -triple=arm-linux-gnueabihf -filetype=obj -o %t/reloc.o %s
3 …y -map-section reloc.o,.ARM.exidx=0x6000 -map-section reloc.o,.text=0x4000 -dummy-extern __aeabi_…
22 # rtdyld-check: *{4}(section_addr(reloc.o, .ARM.exidx)) = (g - (section_addr(reloc.o, .ARM.exidx)))…
24 # rtdyld-check: *{4}(section_addr(reloc.o, .ARM.exidx) + 0x4) = 0x80b0b0b0

1234567891011