Home
last modified time | relevance | path

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

12

/freebsd-12.1/contrib/llvm/tools/lld/ELF/
H A DRelocations.h133 struct Relocation {
142 bool operator()(const Relocation &Lhs, const Relocation &Rhs) {
147 bool operator()(const Relocation &Rel, uint64_t Val) {
151 bool operator()(uint64_t Val, const Relocation &Rel) {
188 bool normalizeExistingThunk(Relocation &Rel, uint64_t Src);
H A DInputSection.cpp553 static Relocation *getRISCVPCRelHi20(const Symbol *Sym, uint64_t Addend) { in getRISCVPCRelHi20()
687 if (const Relocation *HiRel = getRISCVPCRelHi20(&Sym, A)) in getRelocTargetVA()
841 for (const Relocation &Rel : Sec->Relocations) { in relocateNonAllocForRelocatable()
873 for (const Relocation &Rel : Relocations) { in relocateAlloc()
936 DenseSet<Defined *> &Prologues, std::vector<Relocation *> &MorestackCalls) { in switchMorestackCallsToMorestackNonSplit()
949 llvm::sort(MorestackCalls, [](const Relocation *L, const Relocation *R) { in switchMorestackCallsToMorestackNonSplit()
988 std::vector<Relocation *> MorestackCalls; in adjustSplitStackFunctionPrologues()
990 for (Relocation &Rel : Relocations) { in adjustSplitStackFunctionPrologues()
H A DAArch64ErrataFix.cpp557 [=](const Relocation &R) { return R.Offset == PatcheeOffset; }); in implementPatch()
569 return Relocation{R_PC, R_AARCH64_JUMP26, Offset, 0, PatchSym}; in implementPatch()
/freebsd-12.1/contrib/llvm/tools/lld/lib/ReaderWriter/MachO/
H A DArchHandler.h120 virtual bool isPairedReloc(const normalized::Relocation &) = 0;
138 getReferenceInfo(const normalized::Relocation &reloc,
153 getPairReferenceInfo(const normalized::Relocation &reloc1,
154 const normalized::Relocation &reloc2,
305 static RelocPattern relocPattern(const normalized::Relocation &reloc);
307 static normalized::Relocation relocFromPattern(RelocPattern pattern);
H A DArchHandler.cpp62 ArchHandler::RelocPattern ArchHandler::relocPattern(const Relocation &reloc) { in relocPattern()
89 normalized::Relocation
91 normalized::Relocation result; in relocFromPattern()
119 normalized::Relocation reloc = relocFromPattern(pattern); in appendReloc()
H A DArchHandler_x86.cpp47 bool isPairedReloc(const normalized::Relocation &) override;
89 llvm::Error getReferenceInfo(const normalized::Relocation &reloc,
99 getPairReferenceInfo(const normalized::Relocation &reloc1,
100 const normalized::Relocation &reloc2,
244 bool ArchHandler_x86::isPairedReloc(const Relocation &reloc) { in isPairedReloc()
252 ArchHandler_x86::getReferenceInfo(const Relocation &reloc, in getReferenceInfo()
349 ArchHandler_x86::getPairReferenceInfo(const normalized::Relocation &reloc1, in getPairReferenceInfo()
350 const normalized::Relocation &reloc2, in getPairReferenceInfo()
H A DArchHandler_x86_64.cpp144 bool isPairedReloc(const normalized::Relocation &) override;
146 llvm::Error getReferenceInfo(const normalized::Relocation &reloc,
156 getPairReferenceInfo(const normalized::Relocation &reloc1,
157 const normalized::Relocation &reloc2,
232 Reference::KindValue kindFromReloc(const normalized::Relocation &reloc);
329 bool ArchHandler_x86_64::isPairedReloc(const Relocation &reloc) { in isPairedReloc()
334 ArchHandler_x86_64::kindFromReloc(const Relocation &reloc) { in kindFromReloc()
370 ArchHandler_x86_64::getReferenceInfo(const Relocation &reloc, in getReferenceInfo()
447 ArchHandler_x86_64::getPairReferenceInfo(const normalized::Relocation &reloc1, in getPairReferenceInfo()
448 const normalized::Relocation &reloc2, in getPairReferenceInfo()
H A DMachONormalizedFileBinaryUtils.h129 inline Relocation unpackRelocation(const llvm::MachO::any_relocation_info &r, in unpackRelocation()
134 Relocation result; in unpackRelocation()
162 packRelocation(const Relocation &r, bool swap, bool isBigEndian) { in packRelocation()
H A DArchHandler_arm64.cpp98 bool isPairedReloc(const normalized::Relocation &) override;
138 llvm::Error getReferenceInfo(const normalized::Relocation &reloc,
148 getPairReferenceInfo(const normalized::Relocation &reloc1,
149 const normalized::Relocation &reloc2,
331 bool ArchHandler_arm64::isPairedReloc(const Relocation &r) { in isPairedReloc()
379 const Relocation &reloc, const DefinedAtom *inAtom, uint32_t offsetInAtom, in getReferenceInfo()
474 const normalized::Relocation &reloc1, const normalized::Relocation &reloc2, in getPairReferenceInfo()
H A DMachONormalizedFile.h81 struct Relocation { struct
82 Relocation() : offset(0), scattered(false), in Relocation() function
98 typedef std::vector<Relocation> Relocations; argument
H A DArchHandler_arm.cpp41 bool isPairedReloc(const normalized::Relocation &) override;
83 llvm::Error getReferenceInfo(const normalized::Relocation &reloc,
93 getPairReferenceInfo(const normalized::Relocation &reloc1,
94 const normalized::Relocation &reloc2,
327 bool ArchHandler_arm::isPairedReloc(const Relocation &reloc) { in isPairedReloc()
526 const Relocation &reloc, const DefinedAtom *inAtom, uint32_t offsetInAtom, in getReferenceInfo()
637 ArchHandler_arm::getPairReferenceInfo(const normalized::Relocation &reloc1, in getPairReferenceInfo()
638 const normalized::Relocation &reloc2, in getPairReferenceInfo()
H A DMachONormalizedFileYAML.cpp85 static Relocation& element(IO &io, Relocations &seq, size_t index) { in element()
351 struct MappingTraits<Relocation> {
352 static void mapping(IO &io, Relocation &reloc) { in mapping()
/freebsd-12.1/contrib/llvm/include/llvm/ObjectYAML/
H A DELFYAML.h115 Relocation, enumerator
165 struct Relocation { struct
173 std::vector<Relocation> Relocations; argument
175 RelocationSection() : Section(SectionKind::Relocation) {} in RelocationSection()
178 return S->Kind == SectionKind::Relocation; in classof()
221 LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::ELFYAML::Relocation) in LLVM_YAML_IS_SEQUENCE_VECTOR()
355 template <> struct MappingTraits<ELFYAML::Relocation> { in LLVM_YAML_IS_SEQUENCE_VECTOR()
356 static void mapping(IO &IO, ELFYAML::Relocation &Rel); in LLVM_YAML_IS_SEQUENCE_VECTOR()
H A DCOFFYAML.h58 struct Relocation { struct
78 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 DWasmYAML.h107 struct Relocation { struct
171 std::vector<Relocation> Relocations;
367 LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::WasmYAML::Relocation) in LLVM_YAML_IS_SEQUENCE_VECTOR()
439 template <> struct MappingTraits<WasmYAML::Relocation> { in LLVM_YAML_IS_SEQUENCE_VECTOR()
440 static void mapping(IO &IO, WasmYAML::Relocation &Relocation); in LLVM_YAML_IS_SEQUENCE_VECTOR()
/freebsd-12.1/contrib/llvm/tools/llvm-objcopy/COFF/
H A DObject.h27 struct Relocation { struct
28 Relocation() {} in Relocation() function
29 Relocation(const object::coff_relocation& R) : Reloc(R) {} in Relocation() argument
39 std::vector<Relocation> Relocs; argument
H A DObject.cpp56 for (const Relocation &R : Sec.Relocs) { in markSymbols()
H A DReader.cpp121 for (Relocation &R : Sec.Relocs) { in setRelocTargets()
/freebsd-12.1/contrib/llvm/lib/Object/
H A DELFObjectFile.cpp387 for (const auto &Relocation : RelaPlt->relocations()) { in getPltAddresses() local
388 if (Relocation.getType() != JumpSlotReloc) in getPltAddresses()
390 auto PltEntryIter = GotToPlt.find(Relocation.getOffset()); in getPltAddresses()
393 Relocation.getSymbol()->getRawDataRefImpl(), PltEntryIter->second)); in getPltAddresses()
/freebsd-12.1/contrib/llvm/lib/ObjectYAML/
H A DWasmYAML.cpp282 void MappingTraits<WasmYAML::Relocation>::mapping( in mapping()
283 IO &IO, WasmYAML::Relocation &Relocation) { in mapping() argument
284 IO.mapRequired("Type", Relocation.Type); in mapping()
285 IO.mapRequired("Index", Relocation.Index); in mapping()
286 IO.mapRequired("Offset", Relocation.Offset); in mapping()
287 IO.mapOptional("Addend", Relocation.Addend, 0); in mapping()
/freebsd-12.1/contrib/llvm/lib/MC/
H A DWinCOFFObjectWriter.cpp655 for (const auto &Relocation : Sec.Relocations) in writeSection() local
656 WriteRelocation(Relocation.Data); in writeSection()
932 for (auto &Relocation : Sec->Relocations) { in assignFileOffsets() local
933 assert(Relocation.Symb->getIndex() != -1); in assignFileOffsets()
934 Relocation.Data.SymbolTableIndex = Relocation.Symb->getIndex(); in assignFileOffsets()
/freebsd-12.1/stand/i386/gptboot/
H A Dgptldr.S36 .set MEM_REL,0x700 # Relocation address
/freebsd-12.1/contrib/llvm/tools/llvm-objcopy/ELF/
H A DObject.h537 struct Relocation { struct
586 std::vector<Relocation> Relocations;
589 void addRelocation(Relocation Rel) { Relocations.push_back(Rel); } in addRelocation()
/freebsd-12.1/contrib/llvm/tools/llvm-readobj/
H A DCOFFDumper.cpp260 for (const auto &Relocation : Relocations) { in resolveSymbol() local
261 uint64_t RelocationOffset = Relocation.getOffset(); in resolveSymbol()
264 SymI = Relocation.getSymbol(); in resolveSymbol()
331 for (const auto &Relocation : Relocations) { in printBinaryBlockWithRelocs() local
332 uint64_t RelocationOffset = Relocation.getOffset(); in printBinaryBlockWithRelocs()
334 printRelocation(Sec, Relocation, OffsetStart); in printBinaryBlockWithRelocs()
/freebsd-12.1/contrib/llvm/lib/Target/Mips/
H A DRelocation.txt1 MIPS Relocation Principles

12