Searched refs:Rel (Results 1 - 25 of 27) sorted by relevance

12

/external/llvm/lib/Target/X86/MCTargetDesc/
H A DX86MachORelocationInfo.cpp27 const MCExpr *createExprForRelocation(RelocationRef Rel) override {
28 const MachOObjectFile *Obj = cast<MachOObjectFile>(Rel.getObjectFile());
30 uint64_t RelType; Rel.getType(RelType);
31 symbol_iterator SymI = Rel.getSymbol();
36 any_relocation_info RE = Obj->getRelocation(Rel.getRawDataRefImpl());
75 Rel.moveNext();
77 Obj->getRelocation(Rel.getRawDataRefImpl());
89 symbol_iterator RSymI = Rel.getSymbol();
H A DX86ELFRelocationInfo.cpp28 const MCExpr *createExprForRelocation(RelocationRef Rel) override {
29 uint64_t RelType; Rel.getType(RelType);
30 symbol_iterator SymI = Rel.getSymbol();
35 int64_t Addend; getELFRelocationAddend(Rel, Addend);
/external/llvm/include/llvm/MC/
H A DMCRelocationInfo.h41 /// \brief Create an MCExpr for the relocation \p Rel.
42 /// \returns If possible, an MCExpr corresponding to Rel, else 0.
43 virtual const MCExpr *createExprForRelocation(object::RelocationRef Rel);
/external/llvm/lib/MC/MCDisassembler/
H A DMCRelocationInfo.cpp25 MCRelocationInfo::createExprForRelocation(object::RelocationRef Rel) { argument
/external/llvm/include/llvm/Object/
H A DELFObjectFile.h43 virtual std::error_code getRelocationAddend(DataRefImpl Rel,
109 void moveRelocationNext(DataRefImpl &Rel) const override;
110 std::error_code getRelocationAddress(DataRefImpl Rel,
112 std::error_code getRelocationOffset(DataRefImpl Rel,
114 symbol_iterator getRelocationSymbol(DataRefImpl Rel) const override;
115 std::error_code getRelocationType(DataRefImpl Rel,
118 getRelocationTypeName(DataRefImpl Rel,
121 getRelocationValueString(DataRefImpl Rel,
124 uint64_t getROffset(DataRefImpl Rel) const;
127 /// \brief Get the relocation section that contains \a Rel
590 getRelocationAddress(DataRefImpl Rel, uint64_t &Result) const argument
608 getRelocationOffset(DataRefImpl Rel, uint64_t &Result) const argument
630 getRelocationType(DataRefImpl Rel, uint64_t &Result) const argument
654 getRelocationTypeName( DataRefImpl Rel, SmallVectorImpl<char> &Result) const argument
677 getRelocationAddend(DataRefImpl Rel, int64_t &Result) const argument
695 getRelocationValueString( DataRefImpl Rel, SmallVectorImpl<char> &Result) const argument
[all...]
H A DObjectFile.h244 virtual void moveRelocationNext(DataRefImpl &Rel) const = 0;
245 virtual std::error_code getRelocationAddress(DataRefImpl Rel,
247 virtual std::error_code getRelocationOffset(DataRefImpl Rel,
249 virtual symbol_iterator getRelocationSymbol(DataRefImpl Rel) const = 0;
250 virtual std::error_code getRelocationType(DataRefImpl Rel,
253 getRelocationTypeName(DataRefImpl Rel,
256 getRelocationValueString(DataRefImpl Rel,
258 virtual std::error_code getRelocationHidden(DataRefImpl Rel, argument
H A DMachO.h232 void moveRelocationNext(DataRefImpl &Rel) const override;
233 std::error_code getRelocationAddress(DataRefImpl Rel,
235 std::error_code getRelocationOffset(DataRefImpl Rel,
237 symbol_iterator getRelocationSymbol(DataRefImpl Rel) const override;
238 std::error_code getRelocationType(DataRefImpl Rel,
241 getRelocationTypeName(DataRefImpl Rel,
244 getRelocationValueString(DataRefImpl Rel,
246 std::error_code getRelocationHidden(DataRefImpl Rel,
386 MachO::any_relocation_info getRelocation(DataRefImpl Rel) const;
387 MachO::data_in_code_entry getDice(DataRefImpl Rel) cons
[all...]
H A DCOFF.h511 const coff_relocation *toRel(DataRefImpl Rel) const;
609 void moveRelocationNext(DataRefImpl &Rel) const override;
610 std::error_code getRelocationAddress(DataRefImpl Rel,
612 std::error_code getRelocationOffset(DataRefImpl Rel,
614 symbol_iterator getRelocationSymbol(DataRefImpl Rel) const override;
615 std::error_code getRelocationType(DataRefImpl Rel,
618 getRelocationTypeName(DataRefImpl Rel,
621 getRelocationValueString(DataRefImpl Rel,
H A DCOFFYAML.h167 static void mapping(IO &IO, COFFYAML::Relocation &Rel);
H A DELFYAML.h227 static void mapping(IO &IO, ELFYAML::Relocation &Rel);
H A DELF.h319 getRelocationSymbol(const Elf_Shdr *RelSec, const RelT *Rel) const;
586 ELFFile<ELFT>::getRelocationSymbol(const Elf_Shdr *Sec, const RelT *Rel) const {
591 SymTable, getEntry<Elf_Sym>(SymTable, Rel->getSymbol(isMips64EL())));
/external/elfutils/src/libelf/
H A Dgelf_xlate.h45 TYPE (Rel, LIBELFBITS)
H A Dabstract.h137 START (32, Rel, Ext##Rel) \
140 END (32, Ext##Rel)
142 START (64, Rel, Ext##Rel) \
145 END (64, Ext##Rel)
/external/llvm/tools/obj2yaml/
H A Dcoff2yaml.cpp121 COFFYAML::Relocation Rel; local
123 Sym->getName(Rel.SymbolName);
124 Rel.VirtualAddress = reloc->VirtualAddress;
125 Rel.Type = reloc->Type;
126 Relocations.push_back(Rel);
H A Delf2yaml.cpp36 std::error_code dumpRelocation(const Elf_Shdr *Shdr, const RelT *Rel,
167 const RelT *Rel,
169 R.Type = Rel->getType(Obj.isMips64EL());
170 R.Offset = Rel->r_offset;
173 auto NamePair = Obj.getRelocationSymbol(Shdr, Rel);
166 dumpRelocation(const Elf_Shdr *Shdr, const RelT *Rel, ELFYAML::Relocation &R) argument
/external/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DRuntimeDyldELF.h78 RelocationValueRef &Rel);
81 RelocationValueRef &Rel);
H A DRuntimeDyldELF.cpp574 RelocationValueRef &Rel) {
580 Rel.SymbolName = NULL;
581 Rel.SectionID = 0;
595 Rel.SectionID = findOrEmitSection(Obj, *si, false, LocalSections);
602 Rel.Addend = 0x8000;
609 RelocationValueRef &Rel) {
654 if (Rel.Addend != (int64_t)TargetSymbolOffset)
660 Rel.SectionID = findOrEmitSection(Obj, (*tsi), IsCode, LocalSections);
661 Rel.Addend = (intptr_t)Addend;
/external/llvm/tools/yaml2obj/
H A Dyaml2elf.cpp359 for (const auto &Rel : Section.Relocations) {
361 if (SymN2I.lookup(Rel.Symbol, SymIdx)) {
362 errs() << "error: Unknown symbol referenced: '" << Rel.Symbol
370 REntry.r_offset = Rel.Offset;
371 REntry.r_addend = Rel.Addend;
372 REntry.setSymbolAndType(SymIdx, Rel.Type, isMips64EL(Doc));
377 REntry.r_offset = Rel.Offset;
378 REntry.setSymbolAndType(SymIdx, Rel.Type, isMips64EL(Doc));
/external/llvm/lib/Object/
H A DMachOObjectFile.cpp667 void MachOObjectFile::moveRelocationNext(DataRefImpl &Rel) const {
668 ++Rel.d.b;
671 std::error_code MachOObjectFile::getRelocationAddress(DataRefImpl Rel, argument
674 getRelocationOffset(Rel, Offset);
677 Sec.d.a = Rel.d.a;
683 std::error_code MachOObjectFile::getRelocationOffset(DataRefImpl Rel, argument
687 MachO::any_relocation_info RE = getRelocation(Rel);
693 MachOObjectFile::getRelocationSymbol(DataRefImpl Rel) const {
694 MachO::any_relocation_info RE = getRelocation(Rel);
713 std::error_code MachOObjectFile::getRelocationType(DataRefImpl Rel, argument
721 getRelocationTypeName(DataRefImpl Rel, SmallVectorImpl<char> &Result) const argument
833 getRelocationValueString(DataRefImpl Rel, SmallVectorImpl<char> &Result) const argument
1008 getRelocationHidden(DataRefImpl Rel, bool &Result) const argument
[all...]
H A DCOFFYAML.cpp341 COFFYAML::Relocation &Rel) {
342 IO.mapRequired("VirtualAddress", Rel.VirtualAddress);
343 IO.mapRequired("SymbolName", Rel.SymbolName);
348 IO, Rel.Type);
352 IO, Rel.Type);
355 IO.mapRequired("Type", Rel.Type);
340 mapping(IO &IO, COFFYAML::Relocation &Rel) argument
H A DCOFFObjectFile.cpp1008 const coff_relocation *COFFObjectFile::toRel(DataRefImpl Rel) const {
1009 return reinterpret_cast<const coff_relocation*>(Rel.p);
1012 void COFFObjectFile::moveRelocationNext(DataRefImpl &Rel) const {
1013 Rel.p = reinterpret_cast<uintptr_t>(
1014 reinterpret_cast<const coff_relocation*>(Rel.p) + 1);
1017 std::error_code COFFObjectFile::getRelocationAddress(DataRefImpl Rel, argument
1022 std::error_code COFFObjectFile::getRelocationOffset(DataRefImpl Rel, argument
1024 const coff_relocation *R = toRel(Rel);
1033 symbol_iterator COFFObjectFile::getRelocationSymbol(DataRefImpl Rel) const {
1034 const coff_relocation *R = toRel(Rel);
1047 getRelocationType(DataRefImpl Rel, uint64_t &Res) const argument
1082 getRelocationTypeName(DataRefImpl Rel, SmallVectorImpl<char> &Result) const argument
1158 getRelocationValueString(DataRefImpl Rel, SmallVectorImpl<char> &Result) const argument
[all...]
H A DELFYAML.cpp593 ELFYAML::Relocation &Rel) {
597 IO.mapRequired("Offset", Rel.Offset);
598 IO.mapRequired("Symbol", Rel.Symbol);
603 IO, Rel.Type);
609 IO.mapRequired("Type", Rel.Type);
611 IO.mapOptional("Addend", Rel.Addend, (int64_t)0);
592 mapping(IO &IO, ELFYAML::Relocation &Rel) argument
/external/llvm/tools/llvm-readobj/
H A DELFDumper.cpp68 void printRelocation(const Elf_Shdr *Sec, typename ELFO::Elf_Rela Rel);
668 typename ELFO::Elf_Rela Rel) {
670 Obj->getRelocationTypeName(Rel.getType(Obj->isMips64EL()), RelocName);
673 Obj->getRelocationSymbol(Sec, &Rel);
679 W.printHex("Offset", Rel.r_offset);
680 W.printNumber("Type", RelocName, (int)Rel.getType(Obj->isMips64EL()));
682 Rel.getSymbol(Obj->isMips64EL()));
683 W.printHex("Addend", Rel.r_addend);
686 OS << W.hex(Rel.r_offset)
689 << " " << W.hex(Rel
667 printRelocation(const Elf_Shdr *Sec, typename ELFO::Elf_Rela Rel) argument
[all...]
/external/llvm/lib/MC/
H A DMachObjectWriter.cpp620 for (RelAndSymbol &Rel : Relocs) {
621 if (!Rel.Sym)
625 unsigned Index = Rel.Sym->getIndex();
628 Rel.MRE.r_word1 = (Rel.MRE.r_word1 & (-1 << 24)) | Index | (1 << 27);
630 Rel.MRE.r_word1 = (Rel.MRE.r_word1 & 0xff) | Index << 8 | (1 << 4);
/external/clang/lib/Basic/
H A DFileManager.cpp526 StringRef Rel = path::relative_path(P); local
528 for (StringRef C : llvm::make_range(path::begin(Rel), path::end(Rel))) {

Completed in 324 milliseconds

12