Index: ELF/SyntheticSections.h =================================================================== --- ELF/SyntheticSections.h +++ ELF/SyntheticSections.h @@ -124,7 +124,7 @@ uint32_t getTlsIndexOff() const { return TlsIndexOff; } - unsigned getGp() const; + uintX_t getGp() const; private: // MIPS GOT consists of three parts: local, global and tls. Each part Index: ELF/SyntheticSections.cpp =================================================================== --- ELF/SyntheticSections.cpp +++ ELF/SyntheticSections.cpp @@ -626,7 +626,8 @@ return Config->Relocatable; } -template unsigned MipsGotSection::getGp() const { +template +typename MipsGotSection::uintX_t MipsGotSection::getGp() const { return ElfSym::MipsGp->template getVA(0); }