Lines Matching refs:ELFT

24 template <class ELFT> class MIPS final : public TargetInfo {
45 template <class ELFT> MIPS<ELFT>::MIPS() { in MIPS()
57 if (ELFT::Is64Bits) { in MIPS()
72 template <class ELFT> uint32_t MIPS<ELFT>::calcEFlags() const { in calcEFlags()
73 return calcMipsEFlags<ELFT>(); in calcEFlags()
76 template <class ELFT>
77 RelExpr MIPS<ELFT>::getRelExpr(RelType type, const Symbol &s, in getRelExpr()
80 if (ELFT::Is64Bits || config->mipsN32Abi) in getRelExpr()
200 template <class ELFT> RelType MIPS<ELFT>::getDynRel(RelType type) const { in getDynRel()
206 template <class ELFT>
207 void MIPS<ELFT>::writeGotPlt(uint8_t *buf, const Symbol &) const { in writeGotPlt()
258 template <class ELFT> void MIPS<ELFT>::writePltHeader(uint8_t *buf) const { in writePltHeader()
293 } else if (ELFT::Is64Bits) { in writePltHeader()
319 template <class ELFT>
320 void MIPS<ELFT>::writePlt(uint8_t *buf, const Symbol &sym, in writePlt()
343 uint32_t loadInst = ELFT::Is64Bits ? 0xddf90000 : 0x8df90000; in writePlt()
346 uint32_t addInst = ELFT::Is64Bits ? 0x65f80000 : 0x25f80000; in writePlt()
357 template <class ELFT>
358 bool MIPS<ELFT>::needsThunk(RelExpr expr, RelType type, const InputFile *file, in needsThunk()
369 auto *f = dyn_cast_or_null<ObjFile<ELFT>>(file); in needsThunk()
378 return d && isMipsPIC<ELFT>(d); in needsThunk()
381 template <class ELFT>
382 int64_t MIPS<ELFT>::getImplicitAddend(const uint8_t *buf, RelType type) const { in getImplicitAddend()
383 const endianness e = ELFT::Endianness; in getImplicitAddend()
518 template <class ELFT>
524 const endianness e = ELFT::Endianness; in fixupCrossModeJump()
567 template <class ELFT>
568 void MIPS<ELFT>::relocate(uint8_t *loc, const Relocation &rel, in relocate()
570 const endianness e = ELFT::Endianness; in relocate()
573 if (ELFT::Is64Bits || config->mipsN32Abi) in relocate()
577 val = fixupCrossModeJump<ELFT>(loc, type, val); in relocate()
758 template <class ELFT> bool MIPS<ELFT>::usesOnlyLowPageBits(RelType type) const { in usesOnlyLowPageBits()
764 template <class ELFT> bool elf::isMipsPIC(const Defined *sym) { in isMipsPIC()
778 return cast<ObjFile<ELFT>>(file)->getObj().getHeader().e_flags & EF_MIPS_PIC; in isMipsPIC()
781 template <class ELFT> TargetInfo *elf::getMipsTargetInfo() { in getMipsTargetInfo()
782 static MIPS<ELFT> target; in getMipsTargetInfo()