Lines Matching defs:Rel

103   void moveRelocationNext(DataRefImpl &Rel) const override;
104 std::error_code getRelocationAddress(DataRefImpl Rel,
106 std::error_code getRelocationOffset(DataRefImpl Rel,
108 symbol_iterator getRelocationSymbol(DataRefImpl Rel) const override;
109 std::error_code getRelocationType(DataRefImpl Rel,
112 getRelocationTypeName(DataRefImpl Rel,
115 getRelocationValueString(DataRefImpl Rel,
118 uint64_t getROffset(DataRefImpl Rel) const;
121 /// \brief Get the relocation section that contains \a Rel.
122 const Elf_Shdr *getRelSection(DataRefImpl Rel) const {
123 return EF.getSection(Rel.d.a);
126 const Elf_Rel *getRel(DataRefImpl Rel) const;
196 std::error_code getRelocationAddend(DataRefImpl Rel, int64_t &Res) const;
530 void ELFObjectFile<ELFT>::moveRelocationNext(DataRefImpl &Rel) const {
531 ++Rel.d.b;
536 ELFObjectFile<ELFT>::getRelocationSymbol(DataRefImpl Rel) const {
538 const Elf_Shdr *sec = getRelSection(Rel);
541 report_fatal_error("Invalid section type in Rel!");
543 symbolIdx = getRel(Rel)->getSymbol(EF.isMips64EL());
547 symbolIdx = getRela(Rel)->getSymbol(EF.isMips64EL());
573 ELFObjectFile<ELFT>::getRelocationAddress(DataRefImpl Rel,
575 uint64_t ROffset = getROffset(Rel);
579 const Elf_Shdr *RelocationSec = getRelSection(Rel);
591 ELFObjectFile<ELFT>::getRelocationOffset(DataRefImpl Rel,
595 Result = getROffset(Rel);
600 uint64_t ELFObjectFile<ELFT>::getROffset(DataRefImpl Rel) const {
601 const Elf_Shdr *sec = getRelSection(Rel);
604 report_fatal_error("Invalid section type in Rel!");
606 return getRel(Rel)->r_offset;
608 return getRela(Rel)->r_offset;
613 std::error_code ELFObjectFile<ELFT>::getRelocationType(DataRefImpl Rel,
615 const Elf_Shdr *sec = getRelSection(Rel);
618 report_fatal_error("Invalid section type in Rel!");
620 Result = getRel(Rel)->getType(EF.isMips64EL());
624 Result = getRela(Rel)->getType(EF.isMips64EL());
638 DataRefImpl Rel, SmallVectorImpl<char> &Result) const {
639 const Elf_Shdr *sec = getRelSection(Rel);
645 type = getRel(Rel)->getType(EF.isMips64EL());
649 type = getRela(Rel)->getType(EF.isMips64EL());
660 ELFObjectFile<ELFT>::getRelocationAddend(DataRefImpl Rel,
662 const Elf_Shdr *sec = getRelSection(Rel);
665 report_fatal_error("Invalid section type in Rel!");
671 Result = getRela(Rel)->r_addend;
679 DataRefImpl Rel, SmallVectorImpl<char> &Result) const {
680 const Elf_Shdr *sec = getRelSection(Rel);
689 type = getRel(Rel)->getType(EF.isMips64EL());
690 symbol_index = getRel(Rel)->getSymbol(EF.isMips64EL());
695 type = getRela(Rel)->getType(EF.isMips64EL());
696 symbol_index = getRela(Rel)->getSymbol(EF.isMips64EL());
697 addend = getRela(Rel)->r_addend;
765 ELFObjectFile<ELFT>::getRel(DataRefImpl Rel) const {
766 return EF.template getEntry<Elf_Rel>(Rel.d.a, Rel.d.b);