Use size_t instead of ELFT::uint for the string table offset. If the
linker is built 32-bit, it can't write an output file larger than 2GB.
Other code in this area uses size_t as well.
llvm-svn: 284680
return;
for (auto I = Mid, E = V.end(); I != E; ++I) {
SymbolBody *B = I->Symbol;
- typename ELFT::uint StrOff = I->StrTabOffset;
+ size_t StrOff = I->StrTabOffset;
Symbols.push_back({B, StrOff, hashGnu(B->getName())});
}
struct SymbolTableEntry {
SymbolBody *Symbol;
- std::size_t StrTabOffset;
+ size_t StrTabOffset;
};
template <class ELFT>