| /llvm-project-15.0.7/bolt/lib/Target/X86/ |
| H A D | X86MCSymbolizer.cpp | 88 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 D | darwin-ARM64-reloc.s | 39 ; 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 D | BinarySection.cpp | 52 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 D | Relocation.cpp | 23 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 D | reloc-code.s | 48 # 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 D | reloc-data.ll | 17 ; CHECK-NEXT: Relocation { 23 ; CHECK-NEXT: Relocation { 29 ; CHECK-NEXT: Relocation { 35 ; CHECK-NEXT: Relocation { 41 ; CHECK-NEXT: Relocation {
|
| H A D | func-address.ll | 32 ; 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 D | relocations.test | 33 # 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 D | Target.h | 86 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 D | Thunks.cpp | 80 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 D | Target.cpp | 155 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 D | thumb2-movw-fixup.s | 25 @ 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 D | static-movt-relocs.s | 11 @ 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 D | Relocation.h | 32 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 D | relocation-executable.test | 8 // 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 D | dyn-rel-relocation.test | 31 // 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 D | yaml2obj-readobj.test | 11 # 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 D | aix-xcoff-reloc-large.ll | 26 ; 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 D | relocations.test | 8 # 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 D | relocations.test | 59 # 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 D | AArch64.cpp | 47 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 D | PPC.cpp | 50 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 D | X86_64.cpp | 38 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 D | X86.cpp | 36 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 D | relocations.test | 10 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
|