/freebsd/contrib/llvm-project/llvm/tools/llvm-objdump/ |
H A D | WasmDump.cpp | 47 const wasm::WasmRelocation &Rel = Obj->getWasmRelocation(RelRef); in getWasmRelocationValueString() local 54 Fmt << Rel.Index; in getWasmRelocationValueString() 62 Fmt << (Rel.Addend < 0 ? "" : "+") << Rel.Addend; in getWasmRelocationValueString()
|
H A D | ELFDump.cpp | 94 DataRefImpl Rel = RelRef.getRawDataRefImpl(); in getRelocationValueString() local 95 auto SecOrErr = EF.getSection(Rel.d.a); in getRelocationValueString() 108 const typename ELFT::Rela *ERela = Obj->getRela(Rel); in getRelocationValueString() 112 const typename ELFT::Rel *ERel = Obj->getRel(Rel); in getRelocationValueString() 162 const RelocationRef &Rel, in getELFRelocationValueString() argument 165 return getRelocationValueString(ELF32LE, Rel, Result); in getELFRelocationValueString() 167 return getRelocationValueString(ELF64LE, Rel, Result); in getELFRelocationValueString() 169 return getRelocationValueString(ELF32BE, Rel, Result); in getELFRelocationValueString() 171 return getRelocationValueString(ELF64BE, Rel, Result); in getELFRelocationValueString()
|
H A D | ELFDump.h | 28 const object::RelocationRef &Rel,
|
H A D | COFFDump.h | 26 const object::RelocationRef &Rel,
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Object/ |
H A D | GOFFObjectFile.h | 114 void moveRelocationNext(DataRefImpl &Rel) const override {} in moveRelocationNext() argument 115 uint64_t getRelocationOffset(DataRefImpl Rel) const override { return 0; } in getRelocationOffset() argument 116 symbol_iterator getRelocationSymbol(DataRefImpl Rel) const override { in getRelocationSymbol() argument 120 uint64_t getRelocationType(DataRefImpl Rel) const override { return 0; } in getRelocationType() argument 121 void getRelocationTypeName(DataRefImpl Rel, in getRelocationTypeName() argument
|
H A D | ELFObjectFile.h | 326 void getRelocationTypeName(DataRefImpl Rel, 431 auto RelSecOrErr = EF.getSection(Rel.d.a); in getRelSection() 1037 ++Rel.d.b; in moveRelocationNext() 1044 const Elf_Shdr *sec = getRelSection(Rel); in getRelocationSymbol() 1061 const Elf_Shdr *sec = getRelSection(Rel); in getRelocationOffset() 1063 return getRel(Rel)->r_offset; in getRelocationOffset() 1065 return getRela(Rel)->r_offset; in getRelocationOffset() 1070 const Elf_Shdr *sec = getRelSection(Rel); in getRelocationType() 1085 uint32_t type = getRelocationType(Rel); in getRelocationTypeName() 1094 return (int64_t)getRela(Rel)->r_addend; in getRelocationAddend() [all …]
|
H A D | MachO.h | 486 void moveRelocationNext(DataRefImpl &Rel) const override; 487 uint64_t getRelocationOffset(DataRefImpl Rel) const override; 488 symbol_iterator getRelocationSymbol(DataRefImpl Rel) const override; 489 section_iterator getRelocationSection(DataRefImpl Rel) const; 490 uint64_t getRelocationType(DataRefImpl Rel) const override; 491 void getRelocationTypeName(DataRefImpl Rel, 493 uint8_t getRelocationLength(DataRefImpl Rel) const; 499 section_iterator getRelocationRelocatedSection(relocation_iterator Rel) const; 704 MachO::any_relocation_info getRelocation(DataRefImpl Rel) const; 705 MachO::data_in_code_entry getDice(DataRefImpl Rel) const;
|
H A D | Wasm.h | 197 void moveRelocationNext(DataRefImpl &Rel) const override; 198 uint64_t getRelocationOffset(DataRefImpl Rel) const override; 199 symbol_iterator getRelocationSymbol(DataRefImpl Rel) const override; 200 uint64_t getRelocationType(DataRefImpl Rel) const override; 201 void getRelocationTypeName(DataRefImpl Rel,
|
H A D | ObjectFile.h | 288 virtual void moveRelocationNext(DataRefImpl &Rel) const = 0; 289 virtual uint64_t getRelocationOffset(DataRefImpl Rel) const = 0; 290 virtual symbol_iterator getRelocationSymbol(DataRefImpl Rel) const = 0; 291 virtual uint64_t getRelocationType(DataRefImpl Rel) const = 0; 292 virtual void getRelocationTypeName(DataRefImpl Rel,
|
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/JITLink/ |
H A D | ELF_loongarch.cpp | 91 Error addSingleRelocation(const typename ELFT::Rela &Rel, in addSingleRelocation() argument 96 uint32_t SymbolIndex = Rel.getSymbol(false); in addSingleRelocation() 97 auto ObjSymbol = Base::Obj.getRelocationSymbol(Rel, Base::SymTabSec); in addSingleRelocation() 110 uint32_t Type = Rel.getType(false); in addSingleRelocation() 115 int64_t Addend = Rel.r_addend; in addSingleRelocation() 116 auto FixupAddress = orc::ExecutorAddr(FixupSect.sh_addr) + Rel.r_offset; in addSingleRelocation()
|
H A D | ELF_i386.cpp | 162 Error addSingleRelocation(const typename ELFT::Rel &Rel, in addSingleRelocation() argument 167 uint32_t SymbolIndex = Rel.getSymbol(false); in addSingleRelocation() 168 auto ObjSymbol = Base::Obj.getRelocationSymbol(Rel, Base::SymTabSec); in addSingleRelocation() 181 Expected<i386::EdgeKind_i386> Kind = getRelocationKind(Rel.getType(false)); in addSingleRelocation() 185 auto FixupAddress = orc::ExecutorAddr(FixupSection.sh_addr) + Rel.r_offset; in addSingleRelocation()
|
H A D | COFF_x86_64.cpp | 65 Error addSingleRelocation(const object::RelocationRef &Rel, in addSingleRelocation() argument 68 const object::coff_relocation *COFFRel = getObject().getCOFFRelocation(Rel); in addSingleRelocation() 69 auto SymbolIt = Rel.getSymbol(); in addSingleRelocation() 91 orc::ExecutorAddr(FixupSect.getAddress()) + Rel.getOffset(); in addSingleRelocation() 97 switch (Rel.getType()) { in addSingleRelocation() 167 formatv("{0:d}", Rel.getType())); in addSingleRelocation()
|
H A D | ELF_aarch32.cpp | 158 Error addSingleRelRelocation(const typename ELFT::Rel &Rel, in addSingleRelRelocation() argument 161 uint32_t SymbolIndex = Rel.getSymbol(false); in addSingleRelRelocation() 162 auto ObjSymbol = Base::Obj.getRelocationSymbol(Rel, Base::SymTabSec); in addSingleRelRelocation() 175 uint32_t Type = Rel.getType(false); in addSingleRelRelocation() 180 auto FixupAddress = orc::ExecutorAddr(FixupSect.sh_addr) + Rel.r_offset; in addSingleRelRelocation()
|
H A D | ELF_x86_64.cpp | 126 Error addSingleRelocation(const typename ELFT::Rela &Rel, in addSingleRelocation() argument 131 auto ELFReloc = Rel.getType(false); in addSingleRelocation() 137 uint32_t SymbolIndex = Rel.getSymbol(false); in addSingleRelocation() 138 auto ObjSymbol = Base::Obj.getRelocationSymbol(Rel, Base::SymTabSec); in addSingleRelocation() 152 int64_t Addend = Rel.r_addend; in addSingleRelocation() 214 auto FixupAddress = orc::ExecutorAddr(FixupSection.sh_addr) + Rel.r_offset; in addSingleRelocation()
|
H A D | ELF_aarch64.cpp | 151 Error addSingleRelocation(const typename ELFT::Rela &Rel, in addSingleRelocation() argument 157 uint32_t SymbolIndex = Rel.getSymbol(false); in addSingleRelocation() 158 auto ObjSymbol = Base::Obj.getRelocationSymbol(Rel, Base::SymTabSec); in addSingleRelocation() 171 uint32_t Type = Rel.getType(false); in addSingleRelocation() 176 int64_t Addend = Rel.r_addend; in addSingleRelocation() 178 orc::ExecutorAddr(FixupSect.sh_addr) + Rel.r_offset; in addSingleRelocation()
|
H A D | ELF_ppc64.cpp | 225 Error addSingleRelocation(const typename ELFT::Rela &Rel, in addSingleRelocation() argument 229 auto ELFReloc = Rel.getType(false); in addSingleRelocation() 250 auto ObjSymbol = Base::Obj.getRelocationSymbol(Rel, Base::SymTabSec); in addSingleRelocation() 254 uint32_t SymbolIndex = Rel.getSymbol(false); in addSingleRelocation() 264 int64_t Addend = Rel.r_addend; in addSingleRelocation() 266 orc::ExecutorAddr(FixupSection.sh_addr) + Rel.r_offset; in addSingleRelocation()
|
H A D | ELFLinkGraphBuilder.h | 156 [Instance, Method](const auto &Rel, const auto &Target, auto &GS) { in forEachRelaRelocation() 157 return (Instance->*Method)(Rel, Target, GS); in forEachRelaRelocation() 169 [Instance, Method](const auto &Rel, const auto &Target, auto &GS) { in forEachRelRelocation() 170 return (Instance->*Method)(Rel, Target, GS); in forEachRelRelocation() 685 for (const typename ELFT::Rel &R : *RelEntries) in forEachRelRelocation()
|
/freebsd/contrib/llvm-project/clang/lib/Index/ |
H A D | IndexingContext.cpp | 347 for (auto &Rel : Relations) { in shouldReportOccurrenceForSystemDeclOnlyMode() local 348 if (acceptForRelation(Rel.Roles)) in shouldReportOccurrenceForSystemDeclOnlyMode() 417 auto addRelation = [&](SymbolRelation Rel) { in handleDeclOccurrence() argument 419 return Elem.RelatedSymbol == Rel.RelatedSymbol; in handleDeclOccurrence() 422 It->Roles |= Rel.Roles; in handleDeclOccurrence() 424 FinalRelations.push_back(Rel); in handleDeclOccurrence() 426 Roles |= Rel.Roles; in handleDeclOccurrence() 443 for (auto &Rel : Relations) { in handleDeclOccurrence() local 444 addRelation(SymbolRelation(Rel.Roles, in handleDeclOccurrence() 445 Rel.RelatedSymbol->getCanonicalDecl())); in handleDeclOccurrence()
|
/freebsd/contrib/llvm-project/llvm/lib/Object/ |
H A D | XCOFFObjectFile.cpp | 564 void XCOFFObjectFile::moveRelocationNext(DataRefImpl &Rel) const { in moveRelocationNext() 566 Rel.p = reinterpret_cast<uintptr_t>(viewAs<XCOFFRelocation64>(Rel.p) + 1); in moveRelocationNext() 568 Rel.p = reinterpret_cast<uintptr_t>(viewAs<XCOFFRelocation32>(Rel.p) + 1); in moveRelocationNext() 571 uint64_t XCOFFObjectFile::getRelocationOffset(DataRefImpl Rel) const { in getRelocationOffset() 573 const XCOFFRelocation64 *Reloc = viewAs<XCOFFRelocation64>(Rel.p); in getRelocationOffset() 587 const XCOFFRelocation32 *Reloc = viewAs<XCOFFRelocation32>(Rel.p); in getRelocationOffset() 607 const XCOFFRelocation64 *Reloc = viewAs<XCOFFRelocation64>(Rel.p); in getRelocationSymbol() 624 uint64_t XCOFFObjectFile::getRelocationType(DataRefImpl Rel) const { in getRelocationType() 626 return viewAs<XCOFFRelocation64>(Rel.p)->Type; in getRelocationType() 627 return viewAs<XCOFFRelocation32>(Rel.p)->Type; in getRelocationType() [all …]
|
H A D | ELF.cpp | 329 std::vector<typename ELFT::Rel> 361 Elf_Rel Rel; in decode_relrs() local 362 Rel.r_info = 0; in decode_relrs() 363 Rel.setType(getRelativeRelocationType(), false); in decode_relrs() 374 Rel.r_offset = Entry; in decode_relrs() 375 Relocs.push_back(Rel); in decode_relrs() 382 Rel.r_offset = Offset; in decode_relrs() 383 Relocs.push_back(Rel); in decode_relrs()
|
/freebsd/contrib/llvm-project/llvm/lib/ObjCopy/XCOFF/ |
H A D | XCOFFReader.cpp | 41 for (const XCOFFRelocation32 &Rel : Relocations.get()) in readSections() local 42 ReadSec.Relocations.push_back(Rel); in readSections()
|
H A D | XCOFFWriter.cpp | 85 for (const XCOFFRelocation32 &Rel : Sec.Relocations) { in writeSections() local 86 memcpy(Ptr, &Rel, sizeof(XCOFFRelocation32)); in writeSections()
|
/freebsd/contrib/llvm-project/llvm/lib/ObjectYAML/ |
H A D | COFFYAML.cpp | 416 COFFYAML::Relocation &Rel) { in mapping() argument 417 IO.mapRequired("VirtualAddress", Rel.VirtualAddress); in mapping() 418 IO.mapOptional("SymbolName", Rel.SymbolName, StringRef()); in mapping() 419 IO.mapOptional("SymbolTableIndex", Rel.SymbolTableIndex); in mapping() 424 IO, Rel.Type); in mapping() 428 IO, Rel.Type); in mapping() 432 IO, Rel.Type); in mapping() 436 IO, Rel.Type); in mapping() 439 IO.mapRequired("Type", Rel.Type); in mapping()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/ObjectYAML/ |
H A D | ELFYAML.h | 89 return sizeof(typename ELFT::Rel); in LLVM_YAML_STRONG_TYPEDEF() 915 static void mapping(IO &IO, ELFYAML::StackSizeEntry &Rel); in LLVM_YAML_IS_SEQUENCE_VECTOR() 919 static void mapping(IO &IO, ELFYAML::BBAddrMapEntry &Rel); in LLVM_YAML_IS_SEQUENCE_VECTOR() 923 static void mapping(IO &IO, ELFYAML::BBAddrMapEntry::BBEntry &Rel); in LLVM_YAML_IS_SEQUENCE_VECTOR() 927 static void mapping(IO &IO, ELFYAML::PGOAnalysisMapEntry &Rel); in LLVM_YAML_IS_SEQUENCE_VECTOR() 931 static void mapping(IO &IO, ELFYAML::PGOAnalysisMapEntry::PGOBBEntry &Rel); in LLVM_YAML_IS_SEQUENCE_VECTOR() 938 ELFYAML::PGOAnalysisMapEntry::PGOBBEntry::SuccessorEntry &Rel); in LLVM_YAML_IS_SEQUENCE_VECTOR() 942 static void mapping(IO &IO, ELFYAML::GnuHashHeader &Rel); in LLVM_YAML_IS_SEQUENCE_VECTOR() 946 static void mapping(IO &IO, ELFYAML::DynamicEntry &Rel); in LLVM_YAML_IS_SEQUENCE_VECTOR() 974 static void mapping(IO &IO, ELFYAML::Relocation &Rel); in LLVM_YAML_IS_SEQUENCE_VECTOR()
|
/freebsd/contrib/llvm-project/llvm/lib/MC/ |
H A D | MachObjectWriter.cpp | 626 for (RelAndSymbol &Rel : Relocations[&Section]) { in computeSymbolTable() 627 if (!Rel.Sym) in computeSymbolTable() 631 unsigned Index = Rel.Sym->getIndex(); in computeSymbolTable() 634 Rel.MRE.r_word1 = (Rel.MRE.r_word1 & (~0U << 24)) | Index | (1 << 27); in computeSymbolTable() 636 Rel.MRE.r_word1 = (Rel.MRE.r_word1 & 0xff) | Index << 8 | (1 << 4); in computeSymbolTable() 1006 for (const RelAndSymbol &Rel : llvm::reverse(Relocs)) { in writeObject() local 1007 W.write<uint32_t>(Rel.MRE.r_word0); in writeObject() 1008 W.write<uint32_t>(Rel.MRE.r_word1); in writeObject()
|