Home
last modified time | relevance | path

Searched refs:Relocation (Results 1 – 25 of 158) sorted by relevance

1234567

/llvm-project-15.0.7/bolt/lib/Target/X86/
H A DX86MCSymbolizer.cpp88 const Relocation *Relocation = in tryAddingSymbolicOperand() local
90 if (Relocation && Relocation::isX86GOTPCRELX(Relocation->Type)) { in tryAddingSymbolicOperand()
112 if (!Relocation || Relocation->Offset != InstOffset + ImmOffset) in tryAddingSymbolicOperand()
113 Relocation = Function.getRelocationAt(InstOffset + ImmOffset); in tryAddingSymbolicOperand()
115 if (!Relocation) in tryAddingSymbolicOperand()
118 uint64_t SymbolValue = Relocation->Value - Relocation->Addend; in tryAddingSymbolicOperand()
119 if (Relocation->isPCRelative()) in tryAddingSymbolicOperand()
125 uint64_t Addend = Relocation->Addend; in tryAddingSymbolicOperand()
128 if (Relocation->isPCRelative()) in tryAddingSymbolicOperand()
129 Addend += InstOffset + InstSize - Relocation->Offset; in tryAddingSymbolicOperand()
[all …]
/llvm-project-15.0.7/llvm/test/MC/MachO/AArch64/
H A Ddarwin-ARM64-reloc.s39 ; CHECK-NEXT: Relocation {
46 ; CHECK-NEXT: Relocation {
53 ; CHECK-NEXT: Relocation {
60 ; CHECK-NEXT: Relocation {
67 ; CHECK-NEXT: Relocation {
74 ; CHECK-NEXT: Relocation {
81 ; CHECK-NEXT: Relocation {
88 ; CHECK-NEXT: Relocation {
95 ; CHECK-NEXT: Relocation {
102 ; CHECK-NEXT: Relocation {
[all …]
/llvm-project-15.0.7/bolt/lib/Core/
H A DBinarySection.cpp52 const Relocation &Rel = *Begin++; in hash()
88 for (const Relocation &Relocation : relocations()) { in emitAsData() local
93 if (SectionOffset < Relocation.Offset) { in emitAsData()
96 SectionOffset = Relocation.Offset; in emitAsData()
99 << (Relocation.Symbol ? Relocation.Symbol->getName() in emitAsData()
103 << Relocation::getSizeForType(Relocation.Type) << '\n'); in emitAsData()
139 for (Relocation &Reloc : PendingRelocations) { in flushPendingRelocations()
148 Relocation::getSizeForType(Reloc.Type), in flushPendingRelocations()
195 for (const Relocation &R : relocations()) in print()
204 for (const Relocation &Rel : relocations()) { in reorderRelocations()
[all …]
H A DRelocation.cpp23 Triple::ArchType Relocation::Arch;
283 if (Relocation::isPCRelative(Type)) in extractValueX86()
533 bool Relocation::isSupported(uint64_t Type) { in isSupported()
571 bool Relocation::isGOT(uint64_t Type) { in isGOT()
585 bool Relocation::isRelative(uint64_t Type) { in isRelative()
591 bool Relocation::isIRelative(uint64_t Type) { in isIRelative()
597 bool Relocation::isTLS(uint64_t Type) { in isTLS()
603 uint64_t Relocation::getNone() { in getNone()
609 uint64_t Relocation::getPC32() { in getPC32()
615 uint64_t Relocation::getPC64() { in getPC64()
[all …]
/llvm-project-15.0.7/llvm/test/MC/WebAssembly/
H A Dreloc-code.s48 # CHECK-NEXT: Relocation {
54 # CHECK-NEXT: Relocation {
59 # CHECK-NEXT: Relocation {
86 # REF-NEXT: Relocation {
92 # REF-NEXT: Relocation {
97 # REF-NEXT: Relocation {
102 # REF-NEXT: Relocation {
108 # REF-NEXT: Relocation {
113 # REF-NEXT: Relocation {
118 # REF-NEXT: Relocation {
[all …]
H A Dreloc-data.ll17 ; CHECK-NEXT: Relocation {
23 ; CHECK-NEXT: Relocation {
29 ; CHECK-NEXT: Relocation {
35 ; CHECK-NEXT: Relocation {
41 ; CHECK-NEXT: Relocation {
H A Dfunc-address.ll32 ; CHECK-NEXT: Relocation {
37 ; CHECK-NEXT: Relocation {
42 ; CHECK-NEXT: Relocation {
47 ; CHECK-NEXT: Relocation {
/llvm-project-15.0.7/llvm/test/tools/llvm-readobj/MachO/
H A Drelocations.test33 # MACHO-PPC-NEXT: Relocation {
40 # MACHO-PPC-NEXT: Relocation {
47 # MACHO-PPC-NEXT: Relocation {
54 # MACHO-PPC-NEXT: Relocation {
61 # MACHO-PPC-NEXT: Relocation {
70 # MACHO-PPC-NEXT: Relocation {
77 # MACHO-PPC-NEXT: Relocation {
84 # MACHO-PPC-NEXT: Relocation {
91 # MACHO-PPC-NEXT: Relocation {
100 # MACHO-PPC-NEXT: Relocation {
[all …]
/llvm-project-15.0.7/lld/ELF/
H A DTarget.h86 virtual void relocate(uint8_t *loc, const Relocation &rel,
89 relocate(loc, Relocation{R_NONE, type, 0, 0, nullptr}, val); in relocateNoSym()
159 virtual void relaxGot(uint8_t *loc, const Relocation &rel,
161 virtual void relaxTlsGdToIe(uint8_t *loc, const Relocation &rel,
163 virtual void relaxTlsGdToLe(uint8_t *loc, const Relocation &rel,
165 virtual void relaxTlsIeToLe(uint8_t *loc, const Relocation &rel,
233 explicit AArch64Relaxer(ArrayRef<Relocation> relocs);
235 bool tryRelaxAdrpAdd(const Relocation &adrpRel, const Relocation &addRel,
237 bool tryRelaxAdrpLdr(const Relocation &adrpRel, const Relocation &ldrRel,
265 const Relocation &rel) { in checkIntUInt()
[all …]
H A DThunks.cpp80 const Relocation &rel) const override;
112 const Relocation &rel) const override;
177 const Relocation &rel) const override;
188 const Relocation &rel) const override;
285 const Relocation &rel) const override;
315 const Relocation &rel) const override;
338 const Relocation &rel) const override;
355 const Relocation &rel) const override;
372 const Relocation &rel) const override;
506 const Relocation &rel) const { in isCompatibleWith()
[all …]
H A DTarget.cpp155 void TargetInfo::relaxGot(uint8_t *loc, const Relocation &rel, in relaxGot()
160 void TargetInfo::relaxTlsGdToLe(uint8_t *loc, const Relocation &rel, in relaxTlsGdToLe()
165 void TargetInfo::relaxTlsGdToIe(uint8_t *loc, const Relocation &rel, in relaxTlsGdToIe()
170 void TargetInfo::relaxTlsIeToLe(uint8_t *loc, const Relocation &rel, in relaxTlsIeToLe()
175 void TargetInfo::relaxTlsLdToLe(uint8_t *loc, const Relocation &rel, in relaxTlsLdToLe()
/llvm-project-15.0.7/llvm/test/MC/MachO/ARM/
H A Dthumb2-movw-fixup.s25 @ CHECK: Relocation {
32 @ CHECK: Relocation {
39 @ CHECK: Relocation {
46 @ CHECK: Relocation {
53 @ CHECK: Relocation {
60 @ CHECK: Relocation {
67 @ CHECK: Relocation {
74 @ CHECK: Relocation {
H A Dstatic-movt-relocs.s11 @ CHECK-NEXT: Relocation {
18 @ CHECK-NEXT: Relocation {
25 @ CHECK-NEXT: Relocation {
32 @ CHECK-NEXT: Relocation {
/llvm-project-15.0.7/bolt/include/bolt/Core/
H A DRelocation.h32 struct Relocation { struct
123 inline bool operator<(const Relocation &A, const Relocation &B) {
127 inline bool operator<(const Relocation &A, uint64_t B) { return A.Offset < B; }
129 inline bool operator<(uint64_t A, const Relocation &B) { return A < B.Offset; }
131 inline raw_ostream &operator<<(raw_ostream &OS, const Relocation &Rel) {
/llvm-project-15.0.7/llvm/test/Object/
H A Drelocation-executable.test8 // CHECK-NEXT: Relocation {
16 // CHECK-NEXT: Relocation {
22 // CHECK-NEXT: Relocation {
31 // DYN-NEXT: Relocation {
37 // DYN-NEXT: Relocation {
43 // DYN-NEXT: Relocation {
55 // DYN2-NEXT: Relocation {
H A Ddyn-rel-relocation.test31 // CHECK-NEXT: Relocation {
36 // CHECK-NEXT: Relocation {
41 // CHECK-NEXT: Relocation {
50 // CHECK-NEXT: Relocation {
55 // CHECK-NEXT: Relocation {
60 // CHECK-NEXT: Relocation {
H A Dyaml2obj-readobj.test11 # COFF-I386-NEXT: Relocation {
17 # COFF-I386-NEXT: Relocation {
23 # COFF-I386-NEXT: Relocation {
45 - !Relocation
50 - !Relocation
55 - !Relocation
/llvm-project-15.0.7/llvm/test/CodeGen/PowerPC/
H A Daix-xcoff-reloc-large.ll26 ; RELOC-NEXT: Relocation {
34 ; RELOC-NEXT: Relocation {
42 ; RELOC-NEXT: Relocation {
50 ; RELOC-NEXT: Relocation {
58 ; RELOC-NEXT: Relocation {
66 ; RELOC-NEXT: Relocation {
98 ; RELOC64-NEXT: Relocation {
106 ; RELOC64-NEXT: Relocation {
114 ; RELOC64-NEXT: Relocation {
122 ; RELOC64-NEXT: Relocation {
[all …]
/llvm-project-15.0.7/llvm/test/tools/llvm-readobj/wasm/
H A Drelocations.test8 # WASM-NEXT: Relocation {
14 # WASM-NEXT: Relocation {
19 # WASM-NEXT: Relocation {
24 # WASM-NEXT: Relocation {
/llvm-project-15.0.7/llvm/test/tools/llvm-readobj/ELF/
H A Drelocations.test59 # LLVM-EXPAND-64-NEXT: Relocation {
64 # LLVM-EXPAND-64-NEXT: Relocation {
69 # LLVM-EXPAND-64-NEXT: Relocation {
74 # LLVM-EXPAND-64-NEXT: Relocation {
81 # LLVM-EXPAND-64-NEXT: Relocation {
87 # LLVM-EXPAND-64-NEXT: Relocation {
93 # LLVM-EXPAND-64-NEXT: Relocation {
99 # LLVM-EXPAND-64-NEXT: Relocation {
105 # LLVM-EXPAND-64-NEXT: Relocation {
342 # LLVM-EXPAND-32-NEXT: Relocation {
[all …]
/llvm-project-15.0.7/lld/ELF/Arch/
H A DAArch64.cpp47 void relocate(uint8_t *loc, const Relocation &rel,
50 void relaxTlsGdToLe(uint8_t *loc, const Relocation &rel,
52 void relaxTlsGdToIe(uint8_t *loc, const Relocation &rel,
54 void relaxTlsIeToLe(uint8_t *loc, const Relocation &rel,
338 void AArch64::relocate(uint8_t *loc, const Relocation &rel, in relocate()
497 void AArch64::relaxTlsGdToLe(uint8_t *loc, const Relocation &rel, in relaxTlsGdToLe()
528 void AArch64::relaxTlsGdToIe(uint8_t *loc, const Relocation &rel, in relaxTlsGdToIe()
560 void AArch64::relaxTlsIeToLe(uint8_t *loc, const Relocation &rel, in relaxTlsIeToLe()
579 AArch64Relaxer::AArch64Relaxer(ArrayRef<Relocation> relocs) { in AArch64Relaxer()
602 bool AArch64Relaxer::tryRelaxAdrpAdd(const Relocation &adrpRel, in tryRelaxAdrpAdd()
[all …]
H A DPPC.cpp50 void relocate(uint8_t *loc, const Relocation &rel,
54 void relaxTlsGdToIe(uint8_t *loc, const Relocation &rel,
56 void relaxTlsGdToLe(uint8_t *loc, const Relocation &rel,
58 void relaxTlsLdToLe(uint8_t *loc, const Relocation &rel,
60 void relaxTlsIeToLe(uint8_t *loc, const Relocation &rel,
311 void PPC::relocate(uint8_t *loc, const Relocation &rel, uint64_t val) const { in relocate()
402 void PPC::relaxTlsGdToIe(uint8_t *loc, const Relocation &rel, in relaxTlsGdToIe()
421 void PPC::relaxTlsGdToLe(uint8_t *loc, const Relocation &rel, in relaxTlsGdToLe()
437 void PPC::relaxTlsLdToLe(uint8_t *loc, const Relocation &rel, in relaxTlsLdToLe()
461 void PPC::relaxTlsIeToLe(uint8_t *loc, const Relocation &rel, in relaxTlsIeToLe()
H A DX86_64.cpp38 void relocate(uint8_t *loc, const Relocation &rel,
46 void relaxGot(uint8_t *loc, const Relocation &rel,
48 void relaxTlsGdToIe(uint8_t *loc, const Relocation &rel,
50 void relaxTlsGdToLe(uint8_t *loc, const Relocation &rel,
52 void relaxTlsIeToLe(uint8_t *loc, const Relocation &rel,
54 void relaxTlsLdToLe(uint8_t *loc, const Relocation &rel,
175 static bool isRelocationForJmpInsn(Relocation &R) { in isRelocationForJmpInsn()
263 Relocation &r = is.relocations[rIndex]; in deleteFallThruJmpInsn()
291 Relocation &rB = is.relocations[rbIndex]; in deleteFallThruJmpInsn()
430 void X86_64::relaxTlsGdToLe(uint8_t *loc, const Relocation &rel, in relaxTlsGdToLe()
[all …]
H A DX86.cpp36 void relocate(uint8_t *loc, const Relocation &rel,
40 void relaxTlsGdToIe(uint8_t *loc, const Relocation &rel,
42 void relaxTlsGdToLe(uint8_t *loc, const Relocation &rel,
44 void relaxTlsIeToLe(uint8_t *loc, const Relocation &rel,
46 void relaxTlsLdToLe(uint8_t *loc, const Relocation &rel,
292 void X86::relocate(uint8_t *loc, const Relocation &rel, uint64_t val) const { in relocate()
356 void X86::relaxTlsGdToLe(uint8_t *loc, const Relocation &rel, in relaxTlsGdToLe()
390 void X86::relaxTlsGdToIe(uint8_t *loc, const Relocation &rel, in relaxTlsGdToIe()
424 void X86::relaxTlsIeToLe(uint8_t *loc, const Relocation &rel, in relaxTlsIeToLe()
462 void X86::relaxTlsLdToLe(uint8_t *loc, const Relocation &rel, in relaxTlsLdToLe()
/llvm-project-15.0.7/llvm/test/tools/llvm-objdump/MachO/
H A Drelocations.test10 VERBOSE: Relocation information (__TEXT,__text) 2 entries
14 VERBOSE-NEXT: Relocation information (__LD,__compact_unwind) 1 entries
18 NONVERBOSE: Relocation information (__TEXT,__text) 2 entries
22 NONVERBOSE-NEXT: Relocation information (__LD,__compact_unwind) 1 entries

1234567