| /freebsd-13.1/contrib/llvm-project/llvm/tools/llvm-objdump/ |
| H A D | WasmDump.cpp | 34 const wasm::WasmRelocation &Rel = Obj->getWasmRelocation(RelRef); in getWasmRelocationValueString() local 41 Fmt << Rel.Index; in getWasmRelocationValueString() 49 Fmt << (Rel.Addend < 0 ? "" : "+") << Rel.Addend; in getWasmRelocationValueString()
|
| H A D | ELFDump.cpp | 60 DataRefImpl Rel = RelRef.getRawDataRefImpl(); in getRelocationValueString() local 61 auto SecOrErr = EF.getSection(Rel.d.a); in getRelocationValueString() 74 const typename ELFT::Rela *ERela = Obj->getRela(Rel); in getRelocationValueString() 78 const typename ELFT::Rel *ERel = Obj->getRel(Rel); in getRelocationValueString() 131 const RelocationRef &Rel, in getELFRelocationValueString() argument 134 return getRelocationValueString(ELF32LE, Rel, Result); in getELFRelocationValueString() 136 return getRelocationValueString(ELF64LE, Rel, Result); in getELFRelocationValueString() 138 return getRelocationValueString(ELF32BE, Rel, Result); in getELFRelocationValueString() 140 return getRelocationValueString(ELF64BE, Rel, Result); in getELFRelocationValueString()
|
| H A D | XCOFFDump.cpp | 23 const RelocationRef &Rel, in getXCOFFRelocationValueString() argument 25 symbol_iterator SymI = Rel.getSymbol(); in getXCOFFRelocationValueString()
|
| H A D | COFFDump.h | 27 const object::RelocationRef &Rel,
|
| H A D | ELFDump.h | 28 const object::RelocationRef &Rel,
|
| H A D | llvm-objdump.cpp | 380 const ObjectFile *Obj = Rel.getObject(); in getRelocationValueString() 382 return getELFRelocationValueString(ELF, Rel, Result); in getRelocationValueString() 384 return getCOFFRelocationValueString(COFF, Rel, Result); in getRelocationValueString() 386 return getWasmRelocationValueString(Wasm, Rel, Result); in getRelocationValueString() 388 return getMachORelocationValueString(MachO, Rel, Result); in getRelocationValueString() 390 return getXCOFFRelocationValueString(XCOFF, Rel, Result); in getRelocationValueString() 403 DataRefImpl Rel = RelRef.getRawDataRefImpl(); in getHidden() local 404 uint64_t Type = MachO->getRelocationType(Rel); in getHidden() 415 DataRefImpl RelPrev = Rel; in getHidden() 454 Rel.getTypeName(Name); in printRelocation() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Object/ |
| H A D | ELFObjectFile.h | 303 void getRelocationTypeName(DataRefImpl Rel, 408 auto RelSecOrErr = EF.getSection(Rel.d.a); in getRelSection() 992 ++Rel.d.b; in moveRelocationNext() 999 const Elf_Shdr *sec = getRelSection(Rel); in getRelocationSymbol() 1016 const Elf_Shdr *sec = getRelSection(Rel); in getRelocationOffset() 1018 return getRel(Rel)->r_offset; in getRelocationOffset() 1020 return getRela(Rel)->r_offset; in getRelocationOffset() 1025 const Elf_Shdr *sec = getRelSection(Rel); in getRelocationType() 1040 uint32_t type = getRelocationType(Rel); in getRelocationTypeName() 1049 return (int64_t)getRela(Rel)->r_addend; in getRelocationAddend() [all …]
|
| H A D | MachO.h | 335 void moveRelocationNext(DataRefImpl &Rel) const override; 336 uint64_t getRelocationOffset(DataRefImpl Rel) const override; 337 symbol_iterator getRelocationSymbol(DataRefImpl Rel) const override; 338 section_iterator getRelocationSection(DataRefImpl Rel) const; 339 uint64_t getRelocationType(DataRefImpl Rel) const override; 340 void getRelocationTypeName(DataRefImpl Rel, 342 uint8_t getRelocationLength(DataRefImpl Rel) const; 348 section_iterator getRelocationRelocatedSection(relocation_iterator Rel) const; 544 MachO::any_relocation_info getRelocation(DataRefImpl Rel) const; 545 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 | 287 virtual void moveRelocationNext(DataRefImpl &Rel) const = 0; 288 virtual uint64_t getRelocationOffset(DataRefImpl Rel) const = 0; 289 virtual symbol_iterator getRelocationSymbol(DataRefImpl Rel) const = 0; 290 virtual uint64_t getRelocationType(DataRefImpl Rel) const = 0; 291 virtual void getRelocationTypeName(DataRefImpl Rel,
|
| H A D | XCOFFObjectFile.h | 347 void moveRelocationNext(DataRefImpl &Rel) const override; 352 uint64_t getRelocationOffset(DataRefImpl Rel) const override; 353 symbol_iterator getRelocationSymbol(DataRefImpl Rel) const override; 354 uint64_t getRelocationType(DataRefImpl Rel) const override; 355 void getRelocationTypeName(DataRefImpl Rel,
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/Index/ |
| H A D | IndexingContext.cpp | 352 for (auto &Rel : Relations) { in shouldReportOccurrenceForSystemDeclOnlyMode() local 353 if (acceptForRelation(Rel.Roles)) in shouldReportOccurrenceForSystemDeclOnlyMode() 422 auto addRelation = [&](SymbolRelation Rel) { in handleDeclOccurrence() argument 424 return Elem.RelatedSymbol == Rel.RelatedSymbol; in handleDeclOccurrence() 427 It->Roles |= Rel.Roles; in handleDeclOccurrence() 429 FinalRelations.push_back(Rel); in handleDeclOccurrence() 431 Roles |= Rel.Roles; in handleDeclOccurrence() 448 for (auto &Rel : Relations) { in handleDeclOccurrence() local 449 addRelation(SymbolRelation(Rel.Roles, in handleDeclOccurrence() 450 Rel.RelatedSymbol->getCanonicalDecl())); in handleDeclOccurrence()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Object/ |
| H A D | ELF.cpp | 298 std::vector<typename ELFT::Rel> 330 Elf_Rel Rel; in decode_relrs() local 331 Rel.r_info = 0; in decode_relrs() 332 Rel.setType(getRelativeRelocationType(), false); in decode_relrs() 350 Rel.r_offset = Entry; in decode_relrs() 351 Relocs.push_back(Rel); in decode_relrs() 362 Rel.r_offset = Offset; in decode_relrs() 363 Relocs.push_back(Rel); in decode_relrs()
|
| H A D | XCOFFObjectFile.cpp | 352 void XCOFFObjectFile::moveRelocationNext(DataRefImpl &Rel) const { in moveRelocationNext() 353 Rel.p = reinterpret_cast<uintptr_t>(viewAs<XCOFFRelocation32>(Rel.p) + 1); in moveRelocationNext() 356 uint64_t XCOFFObjectFile::getRelocationOffset(DataRefImpl Rel) const { in getRelocationOffset() 359 const XCOFFRelocation32 *Reloc = viewAs<XCOFFRelocation32>(Rel.p); in getRelocationOffset() 375 symbol_iterator XCOFFObjectFile::getRelocationSymbol(DataRefImpl Rel) const { in getRelocationSymbol() 378 const XCOFFRelocation32 *Reloc = viewAs<XCOFFRelocation32>(Rel.p); in getRelocationSymbol() 389 uint64_t XCOFFObjectFile::getRelocationType(DataRefImpl Rel) const { in getRelocationType() 392 return viewAs<XCOFFRelocation32>(Rel.p)->Type; in getRelocationType() 396 DataRefImpl Rel, SmallVectorImpl<char> &Result) const { in getRelocationTypeName() argument 399 const XCOFFRelocation32 *Reloc = viewAs<XCOFFRelocation32>(Rel.p); in getRelocationTypeName()
|
| H A D | COFFObjectFile.cpp | 1149 const coff_relocation *COFFObjectFile::toRel(DataRefImpl Rel) const { in toRel() 1150 return reinterpret_cast<const coff_relocation*>(Rel.p); in toRel() 1153 void COFFObjectFile::moveRelocationNext(DataRefImpl &Rel) const { in moveRelocationNext() 1154 Rel.p = reinterpret_cast<uintptr_t>( in moveRelocationNext() 1155 reinterpret_cast<const coff_relocation*>(Rel.p) + 1); in moveRelocationNext() 1159 const coff_relocation *R = toRel(Rel); in getRelocationOffset() 1164 const coff_relocation *R = toRel(Rel); in getRelocationSymbol() 1177 uint64_t COFFObjectFile::getRelocationType(DataRefImpl Rel) const { in getRelocationType() 1178 const coff_relocation* R = toRel(Rel); in getRelocationType() 1311 DataRefImpl Rel, SmallVectorImpl<char> &Result) const { in getRelocationTypeName() argument [all …]
|
| H A D | MachOObjectFile.cpp | 2134 ++Rel.d.b; in moveRelocationNext() 2141 MachO::any_relocation_info RE = getRelocation(Rel); in getRelocationOffset() 2147 MachO::any_relocation_info RE = getRelocation(Rel); in getRelocationSymbol() 2172 MachO::any_relocation_info RE = getRelocation(Rel); in getRelocationType() 2179 uint64_t RType = getRelocationType(Rel); in getRelocationTypeName() 2287 MachO::any_relocation_info RE = getRelocation(Rel); in getRelocationLength() 2494 Sec.d.a = Rel->getRawDataRefImpl().d.a; in getRelocationRelocatedSection() 4428 Sec.d.a = Rel.d.a; in getRelocation() 4438 if (Rel.d.a == 0) in getRelocation() 4445 getPtr(*this, Offset)) + Rel.d.b; in getRelocation() [all …]
|
| H A D | WasmObjectFile.cpp | 1696 void WasmObjectFile::moveRelocationNext(DataRefImpl &Rel) const { Rel.d.b++; } in moveRelocationNext() 1699 const wasm::WasmRelocation &Rel = getWasmRelocation(Ref); in getRelocationOffset() local 1700 return Rel.Offset; in getRelocationOffset() 1704 const wasm::WasmRelocation &Rel = getWasmRelocation(Ref); in getRelocationSymbol() local 1705 if (Rel.Type == wasm::R_WASM_TYPE_INDEX_LEB) in getRelocationSymbol() 1709 Sym.d.b = Rel.Index; in getRelocationSymbol() 1714 const wasm::WasmRelocation &Rel = getWasmRelocation(Ref); in getRelocationType() local 1715 return Rel.Type; in getRelocationType() 1720 const wasm::WasmRelocation &Rel = getWasmRelocation(Ref); in getRelocationTypeName() local 1728 switch (Rel.Type) { in getRelocationTypeName()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/ObjectYAML/ |
| H A D | COFFYAML.cpp | 411 COFFYAML::Relocation &Rel) { in mapping() argument 412 IO.mapRequired("VirtualAddress", Rel.VirtualAddress); in mapping() 413 IO.mapOptional("SymbolName", Rel.SymbolName, StringRef()); in mapping() 414 IO.mapOptional("SymbolTableIndex", Rel.SymbolTableIndex); in mapping() 419 IO, Rel.Type); in mapping() 423 IO, Rel.Type); in mapping() 427 IO, Rel.Type); in mapping() 431 IO, Rel.Type); in mapping() 434 IO.mapRequired("Type", Rel.Type); in mapping()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/MC/ |
| H A D | MachObjectWriter.cpp | 627 for (RelAndSymbol &Rel : Relocations[&Section]) { in computeSymbolTable() 628 if (!Rel.Sym) in computeSymbolTable() 632 unsigned Index = Rel.Sym->getIndex(); in computeSymbolTable() 635 Rel.MRE.r_word1 = (Rel.MRE.r_word1 & (~0U << 24)) | Index | (1 << 27); in computeSymbolTable() 637 Rel.MRE.r_word1 = (Rel.MRE.r_word1 & 0xff) | Index << 8 | (1 << 4); in computeSymbolTable() 968 for (const RelAndSymbol &Rel : make_range(Relocs.rbegin(), Relocs.rend())) { in writeObject() local 969 W.write<uint32_t>(Rel.MRE.r_word0); in writeObject() 970 W.write<uint32_t>(Rel.MRE.r_word1); in writeObject()
|
| H A D | WasmObjectWriter.cpp | 137 raw_ostream &operator<<(raw_ostream &OS, const WasmRelocationEntry &Rel) { in operator <<() argument 138 Rel.print(OS); in operator <<() 1767 auto HandleReloc = [&](const WasmRelocationEntry &Rel) { in writeOneObject() argument 1771 if (Rel.Type != wasm::R_WASM_TABLE_INDEX_I32 && in writeOneObject() 1772 Rel.Type != wasm::R_WASM_TABLE_INDEX_I64 && in writeOneObject() 1773 Rel.Type != wasm::R_WASM_TABLE_INDEX_SLEB && in writeOneObject() 1774 Rel.Type != wasm::R_WASM_TABLE_INDEX_SLEB64 && in writeOneObject() 1775 Rel.Type != wasm::R_WASM_TABLE_INDEX_REL_SLEB && in writeOneObject() 1776 Rel.Type != wasm::R_WASM_TABLE_INDEX_REL_SLEB64) in writeOneObject() 1778 assert(Rel.Symbol->isFunction()); in writeOneObject() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/ |
| H A D | RuntimeDyldELF.h | 93 RelocationValueRef &Rel); 96 RelocationValueRef &Rel);
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/ObjectYAML/ |
| H A D | ELFYAML.h | 88 return sizeof(typename ELFT::Rel); in LLVM_YAML_STRONG_TYPEDEF() 892 static void mapping(IO &IO, ELFYAML::StackSizeEntry &Rel); in LLVM_YAML_IS_SEQUENCE_VECTOR() 896 static void mapping(IO &IO, ELFYAML::BBAddrMapEntry &Rel); in LLVM_YAML_IS_SEQUENCE_VECTOR() 900 static void mapping(IO &IO, ELFYAML::BBAddrMapEntry::BBEntry &Rel); in LLVM_YAML_IS_SEQUENCE_VECTOR() 904 static void mapping(IO &IO, ELFYAML::GnuHashHeader &Rel); in LLVM_YAML_IS_SEQUENCE_VECTOR() 908 static void mapping(IO &IO, ELFYAML::DynamicEntry &Rel); in LLVM_YAML_IS_SEQUENCE_VECTOR() 936 static void mapping(IO &IO, ELFYAML::Relocation &Rel); in LLVM_YAML_IS_SEQUENCE_VECTOR()
|
| /freebsd-13.1/sys/sys/ |
| H A D | elf_generic.h | 72 __ElfType(Rel);
|
| /freebsd-13.1/contrib/llvm-project/lld/ELF/ |
| H A D | MarkLive.cpp | 78 const typename ELFT::Rel &rel) { in getAddend() 295 for (const typename ELFT::Rel &rel : sec.template rels<ELFT>()) in mark()
|
| /freebsd-13.1/contrib/elftoolchain/libelf/ |
| H A D | libelf_align.c | 74 [ELF_T_REL] = MALIGN(Rel),
|