Home
last modified time | relevance | path

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

12345

/openbsd-src/gnu/llvm/lld/ELF/Arch/
H A DAArch64.cpp49 void relocate(uint8_t *loc, const Relocation &rel,
55 void relaxTlsGdToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const;
56 void relaxTlsGdToIe(uint8_t *loc, const Relocation &rel, uint64_t val) const;
57 void relaxTlsIeToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const;
63 AArch64Relaxer(ArrayRef<Relocation> relocs);
64 bool tryRelaxAdrpAdd(const Relocation &adrpRel, const Relocation &addRel,
66 bool tryRelaxAdrpLdr(const Relocation &adrpRel, const Relocation &ldrRel,
360 void AArch64::relocate(uint8_t *loc, const Relocation &rel, in relocate()
519 void AArch64::relaxTlsGdToLe(uint8_t *loc, const Relocation &rel, in relaxTlsGdToLe()
550 void AArch64::relaxTlsGdToIe(uint8_t *loc, const Relocation &rel, in relaxTlsGdToIe()
[all …]
H A DPPC.cpp50 void relocate(uint8_t *loc, const Relocation &rel,
57 void relaxTlsGdToIe(uint8_t *loc, const Relocation &rel, uint64_t val) const;
58 void relaxTlsGdToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const;
59 void relaxTlsLdToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const;
60 void relaxTlsIeToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const;
310 void PPC::relocate(uint8_t *loc, const Relocation &rel, uint64_t val) const { in relocate()
401 void PPC::relaxTlsGdToIe(uint8_t *loc, const Relocation &rel, in relaxTlsGdToIe()
420 void PPC::relaxTlsGdToLe(uint8_t *loc, const Relocation &rel, in relaxTlsGdToLe()
436 void PPC::relaxTlsLdToLe(uint8_t *loc, const Relocation &rel, in relaxTlsLdToLe()
460 void PPC::relaxTlsIeToLe(uint8_t *loc, const Relocation &rel, in relaxTlsIeToLe()
[all …]
H A DX86_64.cpp38 void relocate(uint8_t *loc, const Relocation &rel,
165 static bool isRelocationForJmpInsn(Relocation &R) { in isRelocationForJmpInsn()
175 InputSection *nextIS, Relocation &r) { in isFallThruRelocation()
253 Relocation &r = is.relocs()[rIndex]; in deleteFallThruJmpInsn()
281 Relocation &rB = is.relocs()[rbIndex]; in deleteFallThruJmpInsn()
417 static void relaxTlsGdToLe(uint8_t *loc, const Relocation &rel, uint64_t val) { in relaxTlsGdToLe()
457 static void relaxTlsGdToIe(uint8_t *loc, const Relocation &rel, uint64_t val) { in relaxTlsGdToIe()
498 static void relaxTlsIeToLe(uint8_t *loc, const Relocation &, uint64_t val) { in relaxTlsIeToLe() argument
539 static void relaxTlsLdToLe(uint8_t *loc, const Relocation &rel, uint64_t val) { in relaxTlsLdToLe()
718 static void relaxGot(uint8_t *loc, const Relocation &rel, uint64_t val);
[all …]
H A DPPC64.cpp167 void relocate(uint8_t *loc, const Relocation &rel,
178 void relaxGot(uint8_t *loc, const Relocation &rel, uint64_t val) const;
185 void relaxTlsGdToIe(uint8_t *loc, const Relocation &rel, uint64_t val) const;
186 void relaxTlsGdToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const;
187 void relaxTlsLdToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const;
188 void relaxTlsIeToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const;
364 static bool tryRelaxPPC64TocIndirection(const Relocation &rel, in tryRelaxPPC64TocIndirection()
640 void PPC64::relaxGot(uint8_t *loc, const Relocation &rel, uint64_t val) const { in relaxGot()
704 void PPC64::relaxTlsGdToLe(uint8_t *loc, const Relocation &rel, in relaxTlsGdToLe()
767 void PPC64::relaxTlsLdToLe(uint8_t *loc, const Relocation &rel, in relaxTlsLdToLe()
[all …]
H A DX86.cpp37 void relocate(uint8_t *loc, const Relocation &rel,
283 void X86::relocate(uint8_t *loc, const Relocation &rel, uint64_t val) const { in relocate()
347 static void relaxTlsGdToLe(uint8_t *loc, const Relocation &rel, uint64_t val) { in relaxTlsGdToLe()
382 static void relaxTlsGdToIe(uint8_t *loc, const Relocation &rel, uint64_t val) { in relaxTlsGdToIe()
416 static void relaxTlsIeToLe(uint8_t *loc, const Relocation &rel, uint64_t val) { in relaxTlsIeToLe()
453 static void relaxTlsLdToLe(uint8_t *loc, const Relocation &rel, uint64_t val) { in relaxTlsLdToLe()
488 for (const Relocation &rel : sec.relocs()) { in relocateAlloc()
H A DMSP430.cpp37 void relocate(uint8_t *loc, const Relocation &rel,
62 void MSP430::relocate(uint8_t *loc, const Relocation &rel, uint64_t val) const { in relocate()
H A DAMDGPU.cpp32 void relocate(uint8_t *loc, const Relocation &rel,
129 void AMDGPU::relocate(uint8_t *loc, const Relocation &rel, uint64_t val) const { in relocate()
H A DSPARCV9.cpp29 void relocate(uint8_t *loc, const Relocation &rel,
87 void SPARCV9::relocate(uint8_t *loc, const Relocation &rel, in relocate()
H A DAVR.cpp48 void relocate(uint8_t *loc, const Relocation &rel,
96 void AVR::relocate(uint8_t *loc, const Relocation &rel, uint64_t val) const { in relocate()
/openbsd-src/gnu/llvm/lld/ELF/
H A DTarget.h87 virtual void relocate(uint8_t *loc, const Relocation &rel,
90 relocate(loc, Relocation{R_NONE, type, 0, 0, nullptr}, val); in relocateNoSym()
226 void reportRangeError(uint8_t *loc, const Relocation &rel, const Twine &v,
232 inline void checkInt(uint8_t *loc, int64_t v, int n, const Relocation &rel) { in checkInt()
238 inline void checkUInt(uint8_t *loc, uint64_t v, int n, const Relocation &rel) { in checkUInt()
245 const Relocation &rel) { in checkIntUInt()
254 const Relocation &rel) { in checkAlignment()
H A DRelocations.h108 struct Relocation { struct
149 const Relocation &rel, uint64_t src);
155 std::pair<Thunk *, bool> getThunk(InputSection *isec, Relocation &rel,
161 bool normalizeExistingThunk(Relocation &rel, uint64_t src);
H A DThunks.cpp80 const Relocation &rel) const override;
112 const Relocation &rel) const override;
308 PPC32PltCallStub(const InputSection &isec, const Relocation &rel, in PPC32PltCallStub()
314 bool isCompatibleWith(const InputSection &isec, const Relocation &rel) const override;
344 const Relocation &rel) const override;
374 const Relocation &rel) const override;
397 const Relocation &rel) const override;
414 const Relocation &rel) const override;
431 const Relocation &rel) const override;
565 const Relocation &rel) const { in isCompatibleWith()
[all …]
H A DThunks.h53 const Relocation &) const { in isCompatibleWith() argument
70 Thunk *addThunk(const InputSection &isec, Relocation &rel);
H A DARMErrataFix.cpp207 uint32_t instr, const Relocation *r) { in branchDestInFirstRegion()
247 Relocation *rel;
284 auto relIt = llvm::find_if(isec->relocs(), [=](const Relocation &r) { in scanCortexA8Errata657417()
455 Relocation{sr.rel->expr, patchRelType, 0, patchRelAddend, sr.rel->sym}); in implementPatch()
473 isec->addReloc(Relocation{R_PC, type, sr.off, -4, psec->patchSym}); in implementPatch()
H A DInputSection.h211 SmallVector<Relocation, 0> relocations;
213 void addReloc(const Relocation &r) { relocations.push_back(r); } in addReloc()
214 MutableArrayRef<Relocation> relocs() { return relocations; } in relocs()
215 ArrayRef<Relocation> relocs() const { return relocations; } in relocs()
H A DInputSection.cpp546 static Relocation *getRISCVPCRelHi20(const Symbol *sym, uint64_t addend) { in getRISCVPCRelHi20()
561 Relocation r; in getRISCVPCRelHi20()
565 [](const Relocation &lhs, const Relocation &rhs) { in getRISCVPCRelHi20()
713 if (const Relocation *hiRel = getRISCVPCRelHi20(&sym, a)) in getRelocTargetVA()
953 for (const Relocation &rel : sec->relocs()) { in relocateNonAllocForRelocatable()
988 SmallVector<Relocation *, 0> &morestackCalls) { in switchMorestackCallsToMorestackNonSplit() argument
1001 llvm::sort(morestackCalls, [](const Relocation *l, const Relocation *r) { in switchMorestackCallsToMorestackNonSplit()
1038 SmallVector<Relocation *, 0> morestackCalls; in adjustSplitStackFunctionPrologues()
1040 for (Relocation &rel : relocs()) { in adjustSplitStackFunctionPrologues()
/openbsd-src/gnu/llvm/llvm/include/llvm/ObjectYAML/
H A DCOFFYAML.h57 struct Relocation { struct
77 std::vector<Relocation> Relocations; argument
119 LLVM_YAML_IS_SEQUENCE_VECTOR(COFFYAML::Relocation) in LLVM_YAML_IS_SEQUENCE_VECTOR()
200 struct MappingTraits<COFFYAML::Relocation> { in LLVM_YAML_IS_SEQUENCE_VECTOR()
201 static void mapping(IO &IO, COFFYAML::Relocation &Rel); in LLVM_YAML_IS_SEQUENCE_VECTOR()
H A DXCOFFYAML.h65 struct Relocation { struct
83 std::vector<Relocation> Relocations; argument
221 LLVM_YAML_IS_SEQUENCE_VECTOR(XCOFFYAML::Relocation) in LLVM_YAML_IS_SEQUENCE_VECTOR() argument
264 template <> struct MappingTraits<XCOFFYAML::Relocation> { in LLVM_YAML_IS_SEQUENCE_VECTOR()
265 static void mapping(IO &IO, XCOFFYAML::Relocation &R); in LLVM_YAML_IS_SEQUENCE_VECTOR()
H A DMachOYAML.h31 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 DWasmYAML.h114 struct Relocation { struct
191 std::vector<Relocation> Relocations;
436 LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::WasmYAML::Relocation) in LLVM_YAML_IS_SEQUENCE_VECTOR()
511 template <> struct MappingTraits<WasmYAML::Relocation> { in LLVM_YAML_IS_SEQUENCE_VECTOR()
512 static void mapping(IO &IO, WasmYAML::Relocation &Relocation); in LLVM_YAML_IS_SEQUENCE_VECTOR()
H A DELFYAML.h189 Relocation, enumerator
590 struct Relocation { struct
598 std::optional<std::vector<Relocation>> Relocations; argument
601 RelocationSection() : Section(ChunkKind::Relocation) {} in RelocationSection()
608 return S->Kind == ChunkKind::Relocation; in classof()
751 LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::ELFYAML::Relocation) in LLVM_YAML_IS_SEQUENCE_VECTOR()
940 template <> struct MappingTraits<ELFYAML::Relocation> { in LLVM_YAML_IS_SEQUENCE_VECTOR()
941 static void mapping(IO &IO, ELFYAML::Relocation &Rel); in LLVM_YAML_IS_SEQUENCE_VECTOR()
/openbsd-src/gnu/llvm/llvm/lib/ObjCopy/COFF/
H A DCOFFObject.h26 struct Relocation { struct
27 Relocation() = default;
28 Relocation(const object::coff_relocation &R) : Reloc(R) {} in Relocation() function
37 std::vector<Relocation> Relocs; argument
/openbsd-src/gnu/llvm/llvm/lib/ObjectYAML/
H A DMachOYAML.cpp317 void MappingTraits<MachOYAML::Relocation>::mapping( in mapping()
318 IO &IO, MachOYAML::Relocation &Relocation) { in mapping() argument
319 IO.mapRequired("address", Relocation.address); in mapping()
320 IO.mapRequired("symbolnum", Relocation.symbolnum); in mapping()
321 IO.mapRequired("pcrel", Relocation.is_pcrel); in mapping()
322 IO.mapRequired("length", Relocation.length); in mapping()
323 IO.mapRequired("extern", Relocation.is_extern); in mapping()
324 IO.mapRequired("type", Relocation.type); in mapping()
325 IO.mapRequired("scattered", Relocation.is_scattered); in mapping()
326 IO.mapRequired("value", Relocation.value); in mapping()
H A DWasmYAML.cpp319 void MappingTraits<WasmYAML::Relocation>::mapping( in mapping()
320 IO &IO, WasmYAML::Relocation &Relocation) { in mapping() argument
321 IO.mapRequired("Type", Relocation.Type); in mapping()
322 IO.mapRequired("Index", Relocation.Index); in mapping()
323 IO.mapRequired("Offset", Relocation.Offset); in mapping()
324 IO.mapOptional("Addend", Relocation.Addend, 0); in mapping()
/openbsd-src/gnu/llvm/llvm/bindings/python/llvm/tests/
H A Dtest_object.py5 from ..object import Relocation
64 assert isinstance(relocation, Relocation)

12345