Home
last modified time | relevance | path

Searched refs:Rel (Results 1 – 25 of 65) sorted by relevance

123

/freebsd-12.1/contrib/llvm/include/llvm/Object/
H A DRelocVisitor.h128 switch (Rel) { in visitX86_64()
146 switch (Rel) { in visitAarch64()
161 switch (Rel) { in visitBpf()
172 switch (Rel) { in visitMips64()
185 switch (Rel) { in visitPPC64()
196 switch (Rel) { in visitSystemz()
211 switch (Rel) { in visitSparc64()
223 switch (Rel) { in visitAmdgpu()
233 switch (Rel) { in visitX86()
280 if (Rel == ELF::R_SPARC_32 || Rel == ELF::R_SPARC_UA32) in visitSparc32()
[all …]
H A DELFObjectFile.h219 using Elf_Rel = typename ELFT::Rel;
274 void getRelocationTypeName(DataRefImpl Rel,
830 ++Rel.d.b; in moveRelocationNext()
837 const Elf_Shdr *sec = getRelSection(Rel); in getRelocationSymbol()
854 const Elf_Shdr *sec = getRelSection(Rel); in getRelocationOffset()
856 return getRel(Rel)->r_offset; in getRelocationOffset()
858 return getRela(Rel)->r_offset; in getRelocationOffset()
863 const Elf_Shdr *sec = getRelSection(Rel); in getRelocationType()
878 uint32_t type = getRelocationType(Rel); in getRelocationTypeName()
887 return (int64_t)getRela(Rel)->r_addend; in getRelocationAddend()
[all …]
H A DMachO.h337 void moveRelocationNext(DataRefImpl &Rel) const override;
338 uint64_t getRelocationOffset(DataRefImpl Rel) const override;
339 symbol_iterator getRelocationSymbol(DataRefImpl Rel) const override;
340 section_iterator getRelocationSection(DataRefImpl Rel) const;
341 uint64_t getRelocationType(DataRefImpl Rel) const override;
342 void getRelocationTypeName(DataRefImpl Rel,
344 uint8_t getRelocationLength(DataRefImpl Rel) const;
350 section_iterator getRelocationRelocatedSection(relocation_iterator Rel) const;
550 MachO::any_relocation_info getRelocation(DataRefImpl Rel) const;
551 MachO::data_in_code_entry getDice(DataRefImpl Rel) const;
H A DWasm.h190 void moveRelocationNext(DataRefImpl &Rel) const override;
191 uint64_t getRelocationOffset(DataRefImpl Rel) const override;
192 symbol_iterator getRelocationSymbol(DataRefImpl Rel) const override;
193 uint64_t getRelocationType(DataRefImpl Rel) const override;
194 void getRelocationTypeName(DataRefImpl Rel,
H A DObjectFile.h261 virtual void moveRelocationNext(DataRefImpl &Rel) const = 0;
262 virtual uint64_t getRelocationOffset(DataRefImpl Rel) const = 0;
263 virtual symbol_iterator getRelocationSymbol(DataRefImpl Rel) const = 0;
264 virtual uint64_t getRelocationType(DataRefImpl Rel) const = 0;
265 virtual void getRelocationTypeName(DataRefImpl Rel,
H A DELF.h62 using Elf_Rel = typename ELFT::Rel;
122 Expected<const Elf_Sym *> getRelocationSymbol(const Elf_Rel *Rel,
424 ELFFile<ELFT>::getRelocationSymbol(const Elf_Rel *Rel, in getRelocationSymbol() argument
426 uint32_t Index = Rel->getSymbol(isMips64EL()); in getRelocationSymbol()
/freebsd-12.1/contrib/llvm/tools/lld/ELF/
H A DMarkLive.cpp47 const typename ELFT::Rel &Rel) { in getAddend() argument
49 Rel.getType(Config->IsMips64EL)); in getAddend()
55 return Rel.r_addend; in getAddend()
64 resolveReloc(InputSectionBase &Sec, RelT &Rel, in resolveReloc() argument
66 Symbol &B = Sec.getFile<ELFT>()->getRelocTargetSym(Rel); in resolveReloc()
80 Offset += getAddend<ELFT>(Sec, Rel); in resolveReloc()
97 resolveReloc<ELFT>(Sec, Rel, Fn); in forEachSuccessor()
99 for (const typename ELFT::Rel &Rel : Sec.template rels<ELFT>()) in forEachSuccessor() local
100 resolveReloc<ELFT>(Sec, Rel, Fn); in forEachSuccessor()
143 const RelTy &Rel = Rels[I2]; in scanEhFrameSection() local
[all …]
H A DRelocations.cpp636 Addend = getAddend<ELFT>(Rel); in computeAddend()
694 while (Rel != End && Rel->r_offset == Offset) in getMipsN32RelType()
768 Rel->addReloc( in addPltEntry()
984 const RelTy &Rel = *I; in scanReloc() local
1418 if (Target->inBranchRange(Rel.Type, Src, Rel.Sym->getVA())) in normalizeExistingThunk()
1420 Rel.Sym = &T->Destination; in normalizeExistingThunk()
1421 if (Rel.Sym->isInPlt()) in normalizeExistingThunk()
1422 Rel.Expr = toPlt(Rel.Expr); in normalizeExistingThunk()
1480 if (!Target->needsThunk(Rel.Expr, Rel.Type, IS->File, Src, in createThunks()
1486 std::tie(T, IsNew) = getThunk(*Rel.Sym, Rel.Type, Src); in createThunks()
[all …]
H A DRelocations.h147 bool operator()(const Relocation &Rel, uint64_t Val) {
148 return Rel.Offset < Val;
151 bool operator()(uint64_t Val, const Relocation &Rel) {
152 return Val < Rel.Offset;
188 bool normalizeExistingThunk(Relocation &Rel, uint64_t Src);
209 static inline int64_t getAddend(const typename ELFT::Rel &Rel) {
213 static inline int64_t getAddend(const typename ELFT::Rela &Rel) {
214 return Rel.r_addend;
H A DInputSection.cpp409 for (const RelTy &Rel : Rels) { in copyRelocations() local
783 for (const RelTy &Rel : Rels) { in relocateNonAlloc() local
843 assert(Rel.Expr == R_ABS); in relocateNonAllocForRelocatable()
845 uint64_t TargetVA = SignExtend64(Rel.Sym->getVA(Rel.Addend), Bits); in relocateNonAllocForRelocatable()
874 uint64_t Offset = Rel.Offset; in relocateAlloc()
878 RelType Type = Rel.Type; in relocateAlloc()
881 RelExpr Expr = Rel.Expr; in relocateAlloc()
883 getRelocTargetVA(File, Type, Rel.Addend, AddrLoc, *Rel.Sym, Expr), in relocateAlloc()
993 if (Rel.Sym->isLocal()) in adjustSplitStackFunctionPrologues()
1006 if (Rel.Sym->Type != STT_FUNC) in adjustSplitStackFunctionPrologues()
[all …]
H A DDWARF.cpp71 const RelTy &Rel = *It; in findAux() local
74 uint32_t SymIndex = Rel.getSymbol(Config->IsMips64EL); in findAux()
79 auto *DR = dyn_cast<Defined>(&File->getRelocTargetSym(Rel)); in findAux()
81 RelType Type = Rel.getType(Config->IsMips64EL); in findAux()
84 llvm::utohexstr(Rel.r_offset) + " has unsupported target"); in findAux()
87 uint64_t Val = DR->Value + getAddend<ELFT>(Rel); in findAux()
H A DInputFiles.h169 typedef typename ELFT::Rel Elf_Rel;
194 template <typename RelT> Symbol &getRelocTargetSym(const RelT &Rel) const { in getRelocTargetSym() argument
195 uint32_t SymIndex = Rel.getSymbol(Config->IsMips64EL); in getRelocTargetSym()
/freebsd-12.1/contrib/llvm/tools/lld/COFF/
H A DChunks.cpp54 for (const coff_relocation &Rel : Relocs) in readRelocTargets() local
356 const coff_relocation &Rel = Relocs[I]; in writeTo() local
362 if (Rel.VirtualAddress >= InputSize) { in writeTo()
392 uint64_t P = RVA + Rel.VirtualAddress; in writeTo()
395 applyRelX64(Off, Rel.Type, OS, S, P); in writeTo()
398 applyRelX86(Off, Rel.Type, OS, S, P); in writeTo()
401 applyRelARM(Off, Rel.Type, OS, S, P); in writeTo()
423 if (Rel.Type == IMAGE_REL_I386_DIR32) in getBaserelType()
427 if (Rel.Type == IMAGE_REL_ARM_ADDR32) in getBaserelType()
429 if (Rel.Type == IMAGE_REL_ARM_MOV32T) in getBaserelType()
[all …]
/freebsd-12.1/contrib/llvm/lib/DebugInfo/DWARF/
H A DDWARFDataExtractor.cpp22 Optional<RelocAddrEntry> Rel = Obj->find(*Section, *Off); in getRelocatedValue() local
23 if (!Rel) in getRelocatedValue()
26 *SecNdx = Rel->SectionIndex; in getRelocatedValue()
27 return getUnsigned(Off, Size) + Rel->Value; in getRelocatedValue()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Index/
H A DIndexingContext.cpp332 for (auto &Rel : Relations) { in shouldReportOccurrenceForSystemDeclOnlyMode() local
333 if (acceptForRelation(Rel.Roles)) in shouldReportOccurrenceForSystemDeclOnlyMode()
402 auto addRelation = [&](SymbolRelation Rel) { in handleDeclOccurrence() argument
405 return Elem.RelatedSymbol == Rel.RelatedSymbol; in handleDeclOccurrence()
408 It->Roles |= Rel.Roles; in handleDeclOccurrence()
410 FinalRelations.push_back(Rel); in handleDeclOccurrence()
412 Roles |= Rel.Roles; in handleDeclOccurrence()
429 for (auto &Rel : Relations) { in handleDeclOccurrence() local
430 addRelation(SymbolRelation(Rel.Roles, in handleDeclOccurrence()
431 Rel.RelatedSymbol->getCanonicalDecl())); in handleDeclOccurrence()
/freebsd-12.1/contrib/llvm/tools/llvm-objdump/
H A Dllvm-objdump.cpp491 auto SecOrErr = EF.getSection(Rel.d.a); in getRelocationValueString()
521 const Elf_Rela *ERela = Obj->getRela(Rel); in getRelocationValueString()
580 symbol_iterator SymI = Rel.getSymbol(); in getRelocationValueString()
678 Fmt << Rel.Index; in getRelocationValueString()
686 Fmt << (Rel.Addend < 0 ? "" : "+") << Rel.Addend; in getRelocationValueString()
720 DataRefImpl RelNext = Rel; in getRelocationValueString()
769 DataRefImpl RelNext = Rel; in getRelocationValueString()
791 DataRefImpl RelNext = Rel; in getRelocationValueString()
831 DataRefImpl RelNext = Rel; in getRelocationValueString()
870 const ObjectFile *Obj = Rel.getObject(); in getRelocationValueString()
[all …]
/freebsd-12.1/contrib/llvm/lib/ObjectYAML/
H A DCOFFYAML.cpp408 COFFYAML::Relocation &Rel) { in mapping() argument
409 IO.mapRequired("VirtualAddress", Rel.VirtualAddress); in mapping()
410 IO.mapOptional("SymbolName", Rel.SymbolName, StringRef()); in mapping()
411 IO.mapOptional("SymbolTableIndex", Rel.SymbolTableIndex); in mapping()
416 IO, Rel.Type); in mapping()
420 IO, Rel.Type); in mapping()
424 IO, Rel.Type); in mapping()
428 IO, Rel.Type); in mapping()
431 IO.mapRequired("Type", Rel.Type); in mapping()
H A DELFYAML.cpp956 ELFYAML::Relocation &Rel) { in mapping() argument
960 IO.mapRequired("Offset", Rel.Offset); in mapping()
961 IO.mapOptional("Symbol", Rel.Symbol); in mapping()
966 IO, Rel.Type); in mapping()
972 IO.mapRequired("Type", Rel.Type); in mapping()
974 IO.mapOptional("Addend", Rel.Addend, (int64_t)0); in mapping()
/freebsd-12.1/contrib/llvm/lib/MC/
H A DMachObjectWriter.cpp611 for (RelAndSymbol &Rel : Relocations[&Section]) { in computeSymbolTable()
612 if (!Rel.Sym) in computeSymbolTable()
616 unsigned Index = Rel.Sym->getIndex(); in computeSymbolTable()
619 Rel.MRE.r_word1 = (Rel.MRE.r_word1 & (~0U << 24)) | Index | (1 << 27); in computeSymbolTable()
621 Rel.MRE.r_word1 = (Rel.MRE.r_word1 & 0xff) | Index << 8 | (1 << 4); in computeSymbolTable()
951 for (const RelAndSymbol &Rel : make_range(Relocs.rbegin(), Relocs.rend())) { in writeObject() local
952 W.write<uint32_t>(Rel.MRE.r_word0); in writeObject()
953 W.write<uint32_t>(Rel.MRE.r_word1); in writeObject()
/freebsd-12.1/contrib/llvm/lib/Object/
H A DCOFFObjectFile.cpp1140 const coff_relocation *COFFObjectFile::toRel(DataRefImpl Rel) const { in toRel()
1141 return reinterpret_cast<const coff_relocation*>(Rel.p); in toRel()
1144 void COFFObjectFile::moveRelocationNext(DataRefImpl &Rel) const { in moveRelocationNext()
1145 Rel.p = reinterpret_cast<uintptr_t>( in moveRelocationNext()
1146 reinterpret_cast<const coff_relocation*>(Rel.p) + 1); in moveRelocationNext()
1150 const coff_relocation *R = toRel(Rel); in getRelocationOffset()
1155 const coff_relocation *R = toRel(Rel); in getRelocationSymbol()
1168 uint64_t COFFObjectFile::getRelocationType(DataRefImpl Rel) const { in getRelocationType()
1169 const coff_relocation* R = toRel(Rel); in getRelocationType()
1299 DataRefImpl Rel, SmallVectorImpl<char> &Result) const { in getRelocationTypeName() argument
[all …]
H A DWasmObjectFile.cpp1370 void WasmObjectFile::moveRelocationNext(DataRefImpl &Rel) const { Rel.d.b++; } in moveRelocationNext()
1373 const wasm::WasmRelocation &Rel = getWasmRelocation(Ref); in getRelocationOffset() local
1374 return Rel.Offset; in getRelocationOffset()
1378 const wasm::WasmRelocation &Rel = getWasmRelocation(Ref); in getRelocationSymbol() local
1379 if (Rel.Type == wasm::R_WEBASSEMBLY_TYPE_INDEX_LEB) in getRelocationSymbol()
1382 Sym.d.a = Rel.Index; in getRelocationSymbol()
1388 const wasm::WasmRelocation &Rel = getWasmRelocation(Ref); in getRelocationType() local
1389 return Rel.Type; in getRelocationType()
1394 const wasm::WasmRelocation &Rel = getWasmRelocation(Ref); in getRelocationTypeName() local
1402 switch (Rel.Type) { in getRelocationTypeName()
H A DMachOObjectFile.cpp2072 ++Rel.d.b; in moveRelocationNext()
2079 MachO::any_relocation_info RE = getRelocation(Rel); in getRelocationOffset()
2085 MachO::any_relocation_info RE = getRelocation(Rel); in getRelocationSymbol()
2110 MachO::any_relocation_info RE = getRelocation(Rel); in getRelocationType()
2117 uint64_t RType = getRelocationType(Rel); in getRelocationTypeName()
2224 MachO::any_relocation_info RE = getRelocation(Rel); in getRelocationLength()
2413 Sec.d.a = Rel->getRawDataRefImpl().d.a; in getRelocationRelocatedSection()
4389 Sec.d.a = Rel.d.a; in getRelocation()
4399 if (Rel.d.a == 0) in getRelocation()
4406 getPtr(*this, Offset)) + Rel.d.b; in getRelocation()
[all …]
/freebsd-12.1/contrib/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DRuntimeDyldELF.h94 RelocationValueRef &Rel);
97 RelocationValueRef &Rel);
/freebsd-12.1/contrib/llvm/tools/llvm-readobj/
H A DELFDumper.cpp3443 Rela.r_offset = Rel.r_offset; in printDynamicRelocations()
3444 Rela.r_info = Rel.r_info; in printDynamicRelocations()
3475 Rela.r_offset = Rel.r_offset; in printDynamicRelocations()
3476 Rela.r_info = Rel.r_info; in printDynamicRelocations()
4265 W.printHex("Offset", Rel.r_offset); in printRelocation()
4274 << W.hex(Rel.r_addend) << "\n"; in printRelocation()
4432 Rela.r_offset = Rel.r_offset; in printDynamicRelocations()
4433 Rela.r_info = Rel.r_info; in printDynamicRelocations()
4449 Rela.r_offset = Rel.r_offset; in printDynamicRelocations()
4450 Rela.r_info = Rel.r_info; in printDynamicRelocations()
[all …]
/freebsd-12.1/sys/sys/
H A Delf_generic.h69 __ElfType(Rel);

123