| /freebsd/contrib/llvm-project/lld/ELF/Arch/ |
| H A D | TargetImpl.h | 46 Relocation &r, in applyBranchToBranchOptImpl() 47 uint64_t addend) -> std::pair<Relocation *, uint64_t> { in applyBranchToBranchOptImpl() 65 for (Relocation &r : s->relocations) { in applyBranchToBranchOptImpl() 69 std::pair<Relocation *, uint64_t> targetAndAddend = in applyBranchToBranchOptImpl() 78 std::pair<Relocation *, uint64_t> nextTargetAndAddend = in applyBranchToBranchOptImpl()
|
| H A D | AArch64.cpp | 82 void relocate(uint8_t *loc, const Relocation &rel, 89 void relaxTlsGdToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const; 90 void relaxTlsGdToIe(uint8_t *loc, const Relocation &rel, uint64_t val) const; 91 void relaxTlsIeToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const; 98 AArch64Relaxer(Ctx &ctx, ArrayRef<Relocation> relocs); 99 bool tryRelaxAdrpAdd(const Relocation &adrpRel, const Relocation &addRel, 101 bool tryRelaxAdrpLdr(const Relocation &adrpRel, const Relocation &ldrRel, 496 void AArch64::relocate(uint8_t *loc, const Relocation &rel, in relocate() 694 void AArch64::relaxTlsGdToLe(uint8_t *loc, const Relocation &rel, in relaxTlsGdToLe() 725 void AArch64::relaxTlsGdToIe(uint8_t *loc, const Relocation &rel, in relaxTlsGdToIe() [all …]
|
| H A D | X86_64.cpp | 40 void relocate(uint8_t *loc, const Relocation &rel, 56 void relaxTlsGdToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const; 57 void relaxTlsGdToIe(uint8_t *loc, const Relocation &rel, uint64_t val) const; 58 void relaxTlsLdToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const; 59 void relaxTlsIeToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const; 178 static bool isRelocationForJmpInsn(Relocation &R) { in isRelocationForJmpInsn() 188 InputSection *nextIS, Relocation &r) { in isFallThruRelocation() 265 Relocation &r = is.relocs()[rIndex]; in deleteFallThruJmpInsn() 293 Relocation &rB = is.relocs()[rbIndex]; in deleteFallThruJmpInsn() 340 for (Relocation &rel : sec->relocs()) { in relaxOnce() [all …]
|
| H A D | SystemZ.cpp | 41 void relocate(uint8_t *loc, const Relocation &rel, 46 void relaxGot(uint8_t *loc, const Relocation &rel, uint64_t val) const; 47 void relaxTlsGdToIe(uint8_t *loc, const Relocation &rel, uint64_t val) const; 48 void relaxTlsGdToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const; 49 void relaxTlsLdToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const; 303 void SystemZ::relaxTlsGdToIe(uint8_t *loc, const Relocation &rel, in relaxTlsGdToIe() 338 void SystemZ::relaxTlsGdToLe(uint8_t *loc, const Relocation &rel, in relaxTlsGdToLe() 373 void SystemZ::relaxTlsLdToLe(uint8_t *loc, const Relocation &rel, in relaxTlsLdToLe() 443 for (Relocation &rel : sec->relocs()) { in relaxOnce() 463 void SystemZ::relaxGot(uint8_t *loc, const Relocation &rel, in relaxGot() [all …]
|
| H A D | LoongArch.cpp | 39 void relocate(uint8_t *loc, const Relocation &rel, 47 void tlsdescToIe(uint8_t *loc, const Relocation &rel, uint64_t val) const; 48 void tlsdescToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const; 49 bool tryGotToPCRel(uint8_t *loc, const Relocation &rHi20, 50 const Relocation &rLo12, uint64_t secAddr) const; 573 void LoongArch::relocate(uint8_t *loc, const Relocation &rel, in relocate() 769 static bool relaxable(ArrayRef<Relocation> relocs, size_t i) { in relaxable() 773 static bool isPairRelaxable(ArrayRef<Relocation> relocs, size_t i) { in isPairRelaxable() 794 uint64_t loc, Relocation &rHi20, Relocation &rLo12, in relaxPCHi20Lo12() 881 uint64_t loc, Relocation &r, uint32_t &remove) { in relaxCall36() [all …]
|
| H A D | PPC.cpp | 48 void relocate(uint8_t *loc, const Relocation &rel, 55 void relaxTlsGdToIe(uint8_t *loc, const Relocation &rel, uint64_t val) const; 56 void relaxTlsGdToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const; 57 void relaxTlsLdToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const; 58 void relaxTlsIeToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const; 320 void PPC::relocate(uint8_t *loc, const Relocation &rel, uint64_t val) const { in relocate() 411 void PPC::relaxTlsGdToIe(uint8_t *loc, const Relocation &rel, in relaxTlsGdToIe() 430 void PPC::relaxTlsGdToLe(uint8_t *loc, const Relocation &rel, in relaxTlsGdToLe() 446 void PPC::relaxTlsLdToLe(uint8_t *loc, const Relocation &rel, in relaxTlsLdToLe() 470 void PPC::relaxTlsIeToLe(uint8_t *loc, const Relocation &rel, in relaxTlsIeToLe() [all …]
|
| H A D | X86.cpp | 36 void relocate(uint8_t *loc, const Relocation &rel, 43 void relaxTlsGdToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const; 44 void relaxTlsGdToIe(uint8_t *loc, const Relocation &rel, uint64_t val) const; 45 void relaxTlsLdToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const; 46 void relaxTlsIeToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const; 287 void X86::relocate(uint8_t *loc, const Relocation &rel, uint64_t val) const { in relocate() 351 void X86::relaxTlsGdToLe(uint8_t *loc, const Relocation &rel, in relaxTlsGdToLe() 388 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() [all …]
|
| H A D | PPC64.cpp | 181 void relocate(uint8_t *loc, const Relocation &rel, 192 void relaxGot(uint8_t *loc, const Relocation &rel, uint64_t val) const; 199 void relaxTlsGdToIe(uint8_t *loc, const Relocation &rel, uint64_t val) const; 200 void relaxTlsGdToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const; 201 void relaxTlsLdToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const; 202 void relaxTlsIeToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const; 378 static bool tryRelaxPPC64TocIndirection(Ctx &ctx, const Relocation &rel, in tryRelaxPPC64TocIndirection() 650 void PPC64::relaxGot(uint8_t *loc, const Relocation &rel, uint64_t val) const { in relaxGot() 716 void PPC64::relaxTlsGdToLe(uint8_t *loc, const Relocation &rel, in relaxTlsGdToLe() 779 void PPC64::relaxTlsLdToLe(uint8_t *loc, const Relocation &rel, in relaxTlsLdToLe() [all …]
|
| H A D | MSP430.cpp | 36 void relocate(uint8_t *loc, const Relocation &rel, 61 void MSP430::relocate(uint8_t *loc, const Relocation &rel, uint64_t val) const { in relocate()
|
| H A D | RISCV.cpp | 44 void relocate(uint8_t *loc, const Relocation &rel, 334 void RISCV::relocate(uint8_t *loc, const Relocation &rel, uint64_t val) const { in relocate() 544 static bool relaxable(ArrayRef<Relocation> relocs, size_t i) { in relaxable() 548 static void tlsdescToIe(Ctx &ctx, uint8_t *loc, const Relocation &rel, in tlsdescToIe() 569 static void tlsdescToLe(uint8_t *loc, const Relocation &rel, uint64_t val) { in tlsdescToLe() 600 const ArrayRef<Relocation> relocs = sec.relocs(); in relocateAlloc() 602 const Relocation &rel = relocs[i]; in relocateAlloc() 656 const Relocation &rel1 = relocs[i + 1]; in relocateAlloc() 734 Relocation &r, uint32_t &remove) { in relaxCall() 765 uint64_t loc, Relocation &r, uint32_t &remove) { in relaxTlsLe() [all …]
|
| /freebsd/contrib/file/magic/Magdir/ |
| H A D | forth | 27 >>>32 lelong x Text Relocation Table length: %d bytes, 28 >>>36 lelong x Data Relocation Table length: %d bytes, 42 >>24 lelong x First Relocation Item: %d, 52 >24 belong x Text Relocation Table length: %d bytes, 53 >28 belong x Data Relocation Table length: %d bytes 61 >24 lelong x Text Relocation Table length: %d bytes, 62 >28 lelong x Data Relocation Table length: %d bytes
|
| /freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/JITLink/ |
| H A D | XCOFFLinkGraphBuilder.cpp | 358 for (object::RelocationRef Relocation : Section.relocations()) { in processRelocations() local 360 Relocation.getTypeName(RelocName); in processRelocations() 361 object::SymbolRef Symbol = *Relocation.getSymbol(); in processRelocations() 369 LLVM_DEBUG(dbgs() << " " << format_hex(Relocation.getOffset(), 16) in processRelocations() 378 Relocation.getOffset())]( in processRelocations() 386 auto TargetBlockOffset = Section.getAddress() + Relocation.getOffset() - in processRelocations() 388 switch (Relocation.getType()) { in processRelocations() 394 Relocation.getTypeName(RelocType); in processRelocations()
|
| /freebsd/contrib/llvm-project/lld/ELF/ |
| H A D | Target.h | 90 virtual void relocate(uint8_t *loc, const Relocation &rel, 93 relocate(loc, Relocation{R_NONE, type, 0, 0, nullptr}, val); in relocateNoSym() 262 void reportRangeError(Ctx &, uint8_t *loc, const Relocation &rel, 269 const Relocation &rel) { in checkInt() 277 const Relocation &rel) { in checkUInt() 284 const Relocation &rel) { in checkIntUInt() 293 const Relocation &rel) { in checkAlignment()
|
| H A D | Thunks.h | 54 const Relocation &) const { in isCompatibleWith() argument 80 Relocation &rel);
|
| H A D | Relocations.h | 138 struct Relocation { struct 184 const Relocation &rel, uint64_t src); 190 std::pair<Thunk *, bool> getThunk(InputSection *isec, Relocation &rel, 198 bool normalizeExistingThunk(Relocation &rel, uint64_t src);
|
| H A D | Thunks.cpp | 155 const Relocation &rel) const override; 190 const Relocation &rel) const override; 423 HexagonThunk(Ctx &ctx, const InputSection &isec, Relocation &rel, in HexagonThunk() 471 PPC32PltCallStub(Ctx &ctx, const InputSection &isec, const Relocation &rel, in PPC32PltCallStub() 477 bool isCompatibleWith(const InputSection &isec, const Relocation &rel) const override; 508 const Relocation &rel) const override; 539 const Relocation &rel) const override; 565 const Relocation &rel) const override; 585 const Relocation &rel) const override; 836 const Relocation &rel) const { in isCompatibleWith() [all …]
|
| H A D | ARMErrataFix.cpp | 210 const Relocation *r) { in branchDestInFirstRegion() 251 Relocation *rel; 289 auto relIt = llvm::find_if(isec->relocs(), [=](const Relocation &r) { in scanCortexA8Errata657417() 461 Relocation{sr.rel->expr, patchRelType, 0, patchRelAddend, sr.rel->sym}); in implementPatch() 480 isec->addReloc(Relocation{R_PC, type, sr.off, -4, psec->patchSym}); in implementPatch()
|
| H A D | InputSection.h | 269 uint64_t getRelocTargetVA(Ctx &, const Relocation &r, uint64_t p) const; 274 SmallVector<Relocation, 0> relocations; 276 void addReloc(const Relocation &r) { relocations.push_back(r); } in addReloc() 277 MutableArrayRef<Relocation> relocs() { return relocations; } in relocs() 278 ArrayRef<Relocation> relocs() const { return relocations; } in relocs()
|
| H A D | InputSection.cpp | 448 Relocation operator()(const RelTy &rel) const { in copyRelocations() 450 return Relocation{R_NONE, rel.getType(ctx.arg.isMips64EL), rel.r_offset, in copyRelocations() 476 for (const Relocation &rel : rels) { in copyRelocations() 669 static Relocation *getRISCVPCRelHi20(Ctx &ctx, const InputSectionBase *loSec, in getRISCVPCRelHi20() 670 const Relocation &loReloc) { in getRISCVPCRelHi20() 696 Relocation hiReloc; in getRISCVPCRelHi20() 700 [](const Relocation &lhs, const Relocation &rhs) { in getRISCVPCRelHi20() 772 uint64_t InputSectionBase::getRelocTargetVA(Ctx &ctx, const Relocation &r, in getRelocTargetVA() 884 if (const Relocation *hiRel = getRISCVPCRelHi20(ctx, this, r)) in getRelocTargetVA() 1187 SmallVector<Relocation *, 0> &morestackCalls) { in switchMorestackCallsToMorestackNonSplit() argument [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/ObjectYAML/ |
| H A D | COFFYAML.h | 58 struct Relocation { struct 89 std::vector<Relocation> Relocations; argument 131 LLVM_YAML_IS_SEQUENCE_VECTOR(COFFYAML::Relocation) in LLVM_YAML_IS_SEQUENCE_VECTOR() 217 struct MappingTraits<COFFYAML::Relocation> { in LLVM_YAML_IS_SEQUENCE_VECTOR() 218 static void mapping(IO &IO, COFFYAML::Relocation &Rel); in LLVM_YAML_IS_SEQUENCE_VECTOR()
|
| H A D | XCOFFYAML.h | 65 struct Relocation { struct 84 std::vector<Relocation> Relocations; argument 225 LLVM_YAML_IS_SEQUENCE_VECTOR(XCOFFYAML::Relocation) in LLVM_YAML_IS_SEQUENCE_VECTOR() argument 276 template <> struct MappingTraits<XCOFFYAML::Relocation> { in LLVM_YAML_IS_SEQUENCE_VECTOR() 277 static void mapping(IO &IO, XCOFFYAML::Relocation &R); in LLVM_YAML_IS_SEQUENCE_VECTOR()
|
| H A D | MachOYAML.h | 31 struct Relocation { struct 59 std::vector<Relocation> relocations; argument 173 LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::MachOYAML::Relocation) in LLVM_YAML_IS_SEQUENCE_VECTOR() argument 230 template <> struct MappingTraits<MachOYAML::Relocation> { in LLVM_YAML_IS_SEQUENCE_VECTOR() 231 static void mapping(IO &IO, MachOYAML::Relocation &R); in LLVM_YAML_IS_SEQUENCE_VECTOR()
|
| H A D | WasmYAML.h | 115 struct Relocation { struct 192 std::vector<Relocation> Relocations; 439 LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::WasmYAML::Relocation) in LLVM_YAML_IS_SEQUENCE_VECTOR() 514 template <> struct MappingTraits<WasmYAML::Relocation> { in LLVM_YAML_IS_SEQUENCE_VECTOR() 515 static void mapping(IO &IO, WasmYAML::Relocation &Relocation); in LLVM_YAML_IS_SEQUENCE_VECTOR()
|
| /freebsd/contrib/llvm-project/llvm/lib/ObjCopy/COFF/ |
| H A D | COFFObject.h | 26 struct Relocation { struct 27 Relocation() = default; 28 Relocation(const object::coff_relocation &R) : Reloc(R) {} in Relocation() function 37 std::vector<Relocation> Relocs; argument
|
| /freebsd/contrib/llvm-project/llvm/lib/ObjectYAML/ |
| H A D | MachOYAML.cpp | 316 void MappingTraits<MachOYAML::Relocation>::mapping( in mapping() 317 IO &IO, MachOYAML::Relocation &Relocation) { in mapping() argument 318 IO.mapRequired("address", Relocation.address); in mapping() 319 IO.mapRequired("symbolnum", Relocation.symbolnum); in mapping() 320 IO.mapRequired("pcrel", Relocation.is_pcrel); in mapping() 321 IO.mapRequired("length", Relocation.length); in mapping() 322 IO.mapRequired("extern", Relocation.is_extern); in mapping() 323 IO.mapRequired("type", Relocation.type); in mapping() 324 IO.mapRequired("scattered", Relocation.is_scattered); in mapping() 325 IO.mapRequired("value", Relocation.value); in mapping()
|