| /src/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 auto ERela = Obj->getCrel(Rel); in getRelocationValueString() 112 const typename ELFT::Rela *ERela = Obj->getRela(Rel); in getRelocationValueString() 116 const typename ELFT::Rel *ERel = Obj->getRel(Rel); in getRelocationValueString() 166 const RelocationRef &Rel, in getELFRelocationValueString() argument 169 return getRelocationValueString(ELF32LE, Rel, Result); in getELFRelocationValueString() 171 return getRelocationValueString(ELF64LE, Rel, Result); in getELFRelocationValueString() 173 return getRelocationValueString(ELF32BE, Rel, Result); in getELFRelocationValueString() 175 return getRelocationValueString(ELF64BE, Rel, Result); in getELFRelocationValueString()
|
| H A D | ELFDump.h | 28 const object::RelocationRef &Rel,
|
| /src/contrib/llvm-project/llvm/include/llvm/Object/ |
| H A D | ELFObjectFile.h | 83 virtual Expected<int64_t> getRelocationAddend(DataRefImpl Rel) const = 0; 341 void moveRelocationNext(DataRefImpl &Rel) const override; 342 uint64_t getRelocationOffset(DataRefImpl Rel) const override; 343 symbol_iterator getRelocationSymbol(DataRefImpl Rel) const override; 344 uint64_t getRelocationType(DataRefImpl Rel) const override; 345 void getRelocationTypeName(DataRefImpl Rel, 454 const Elf_Rel *getRel(DataRefImpl Rel) const; 463 const Elf_Shdr *getRelSection(DataRefImpl Rel) const { in getRelSection() argument 464 auto RelSecOrErr = EF.getSection(Rel.d.a); in getRelSection() 486 Expected<int64_t> getRelocationAddend(DataRefImpl Rel) const override; [all …]
|
| H A D | GOFFObjectFile.h | 119 void moveRelocationNext(DataRefImpl &Rel) const override {} in moveRelocationNext() argument 120 uint64_t getRelocationOffset(DataRefImpl Rel) const override { return 0; } in getRelocationOffset() argument 121 symbol_iterator getRelocationSymbol(DataRefImpl Rel) const override { in getRelocationSymbol() argument 125 uint64_t getRelocationType(DataRefImpl Rel) const override { return 0; } in getRelocationType() argument 126 void getRelocationTypeName(DataRefImpl Rel, in getRelocationTypeName() argument
|
| 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; 705 MachO::any_relocation_info getRelocation(DataRefImpl Rel) const; 706 MachO::data_in_code_entry getDice(DataRefImpl Rel) const;
|
| H A D | Wasm.h | 202 void moveRelocationNext(DataRefImpl &Rel) const override; 203 uint64_t getRelocationOffset(DataRefImpl Rel) const override; 204 symbol_iterator getRelocationSymbol(DataRefImpl Rel) const override; 205 uint64_t getRelocationType(DataRefImpl Rel) const override; 206 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,
|
| /src/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() 217 auto FixupAddress = orc::ExecutorAddr(FixupSection.sh_addr) + Rel.r_offset; in addSingleRelocation()
|
| H A D | ELF_aarch64.cpp | 156 Error addSingleRelocation(const typename ELFT::Rela &Rel, in addSingleRelocation() argument 162 uint32_t SymbolIndex = Rel.getSymbol(false); in addSingleRelocation() 163 auto ObjSymbol = Base::Obj.getRelocationSymbol(Rel, Base::SymTabSec); in addSingleRelocation() 176 uint32_t Type = Rel.getType(false); in addSingleRelocation() 181 int64_t Addend = Rel.r_addend; in addSingleRelocation() 183 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()
|
| /src/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()
|
| /src/contrib/llvm-project/llvm/lib/Object/ |
| H A D | XCOFFObjectFile.cpp | 570 void XCOFFObjectFile::moveRelocationNext(DataRefImpl &Rel) const { in moveRelocationNext() 572 Rel.p = reinterpret_cast<uintptr_t>(viewAs<XCOFFRelocation64>(Rel.p) + 1); in moveRelocationNext() 574 Rel.p = reinterpret_cast<uintptr_t>(viewAs<XCOFFRelocation32>(Rel.p) + 1); in moveRelocationNext() 577 uint64_t XCOFFObjectFile::getRelocationOffset(DataRefImpl Rel) const { in getRelocationOffset() 579 const XCOFFRelocation64 *Reloc = viewAs<XCOFFRelocation64>(Rel.p); in getRelocationOffset() 593 const XCOFFRelocation32 *Reloc = viewAs<XCOFFRelocation32>(Rel.p); in getRelocationOffset() 610 symbol_iterator XCOFFObjectFile::getRelocationSymbol(DataRefImpl Rel) const { in getRelocationSymbol() 613 const XCOFFRelocation64 *Reloc = viewAs<XCOFFRelocation64>(Rel.p); in getRelocationSymbol() 619 const XCOFFRelocation32 *Reloc = viewAs<XCOFFRelocation32>(Rel.p); in getRelocationSymbol() 630 uint64_t XCOFFObjectFile::getRelocationType(DataRefImpl Rel) const { in getRelocationType() [all …]
|
| H A D | ELF.cpp | 333 std::vector<typename ELFT::Rel> 365 Elf_Rel Rel; in decode_relrs() local 366 Rel.r_info = 0; in decode_relrs() 367 Rel.setType(getRelativeRelocationType(), false); in decode_relrs() 378 Rel.r_offset = Entry; in decode_relrs() 379 Relocs.push_back(Rel); in decode_relrs() 386 Rel.r_offset = Offset; in decode_relrs() 387 Relocs.push_back(Rel); in decode_relrs()
|
| /src/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()
|
| H A D | ELFEmitter.cpp | 1294 for (const ELFYAML::Relocation &Rel : *Section.Relocations) in writeSectionContent() 1295 OffsetMask |= Rel.Offset; in writeSectionContent() 1300 for (const ELFYAML::Relocation &Rel : *Section.Relocations) { in writeSectionContent() 1303 Rel.Symbol ? toSymbolIndex(*Rel.Symbol, Section.Name, IsDynamic) : 0; in writeSectionContent() 1309 (static_cast<typename ELFT::uint>(Rel.Offset) - Offset) >> Shift; in writeSectionContent() 1310 Offset = Rel.Offset; in writeSectionContent() 1312 DeltaOffset * 8 + (SymIdx != CurSymIdx) + (Type != Rel.Type ? 2 : 0) + in writeSectionContent() 1313 (Addend != static_cast<typename ELFT::uint>(Rel.Addend) ? 4 : 0); in writeSectionContent() 1327 CBA.writeSLEB128(static_cast<int32_t>(Rel.Type - Type)); in writeSectionContent() 1328 Type = Rel.Type; in writeSectionContent() [all …]
|
| /src/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()
|
| /src/contrib/llvm-project/llvm/lib/MC/ |
| H A D | MachObjectWriter.cpp | 662 for (RelAndSymbol &Rel : Relocations[&Section]) { in computeSymbolTable() 663 if (!Rel.Sym) in computeSymbolTable() 667 unsigned Index = Rel.Sym->getIndex(); in computeSymbolTable() 670 Rel.MRE.r_word1 = (Rel.MRE.r_word1 & (~0U << 24)) | Index | (1 << 27); in computeSymbolTable() 672 Rel.MRE.r_word1 = (Rel.MRE.r_word1 & 0xff) | Index << 8 | (1 << 4); in computeSymbolTable() 1039 for (const RelAndSymbol &Rel : llvm::reverse(Relocs)) { in writeObject() local 1040 W.write<uint32_t>(Rel.MRE.r_word0); in writeObject() 1041 W.write<uint32_t>(Rel.MRE.r_word1); in writeObject()
|
| /src/contrib/llvm-project/llvm/include/llvm/ObjectYAML/ |
| H A D | ELFYAML.h | 89 return sizeof(typename ELFT::Rel); in LLVM_YAML_STRONG_TYPEDEF() 928 static void mapping(IO &IO, ELFYAML::StackSizeEntry &Rel); in LLVM_YAML_IS_SEQUENCE_VECTOR() 944 static void mapping(IO &IO, ELFYAML::PGOAnalysisMapEntry &Rel); in LLVM_YAML_IS_SEQUENCE_VECTOR() 948 static void mapping(IO &IO, ELFYAML::PGOAnalysisMapEntry::PGOBBEntry &Rel); in LLVM_YAML_IS_SEQUENCE_VECTOR() 955 ELFYAML::PGOAnalysisMapEntry::PGOBBEntry::SuccessorEntry &Rel); in LLVM_YAML_IS_SEQUENCE_VECTOR() 959 static void mapping(IO &IO, ELFYAML::GnuHashHeader &Rel); in LLVM_YAML_IS_SEQUENCE_VECTOR() 963 static void mapping(IO &IO, ELFYAML::DynamicEntry &Rel); in LLVM_YAML_IS_SEQUENCE_VECTOR() 991 static void mapping(IO &IO, ELFYAML::Relocation &Rel); in LLVM_YAML_IS_SEQUENCE_VECTOR()
|