@@ -296,9 +296,8 @@ class IgotPltSection final : public SyntheticSection {
296
296
std::vector<const SymbolBody *> Entries;
297
297
};
298
298
299
- template < class ELFT > class StringTableSection final : public SyntheticSection {
299
+ class StringTableSection final : public SyntheticSection {
300
300
public:
301
- typedef typename ELFT::uint uintX_t;
302
301
StringTableSection (StringRef Name, bool Dynamic);
303
302
unsigned addString (StringRef S, bool HashIt = true );
304
303
void writeTo (uint8_t *Buf) override ;
@@ -308,7 +307,7 @@ template <class ELFT> class StringTableSection final : public SyntheticSection {
308
307
private:
309
308
const bool Dynamic;
310
309
311
- uintX_t Size = 0 ;
310
+ uint64_t Size = 0 ;
312
311
313
312
llvm::DenseMap<StringRef, unsigned > StringMap;
314
313
std::vector<StringRef> Strings;
@@ -415,7 +414,7 @@ template <class ELFT> class SymbolTableSection final : public SyntheticSection {
415
414
typedef typename ELFT::Sym Elf_Sym;
416
415
typedef typename ELFT::uint uintX_t;
417
416
418
- SymbolTableSection (StringTableSection<ELFT> &StrTabSec);
417
+ SymbolTableSection (StringTableSection &StrTabSec);
419
418
420
419
void finalizeContents () override ;
421
420
void postThunkContents () override ;
@@ -430,7 +429,7 @@ template <class ELFT> class SymbolTableSection final : public SyntheticSection {
430
429
// A vector of symbols and their string table offsets.
431
430
std::vector<SymbolTableEntry> Symbols;
432
431
433
- StringTableSection<ELFT> &StrTabSec;
432
+ StringTableSection &StrTabSec;
434
433
};
435
434
436
435
// Outputs GNU Hash section. For detailed explanation see:
@@ -766,7 +765,7 @@ template <class ELFT> struct In {
766
765
static BssSection *BssRelRo;
767
766
static InputSection *Common;
768
767
static DynamicSection<ELFT> *Dynamic;
769
- static StringTableSection<ELFT> *DynStrTab;
768
+ static StringTableSection *DynStrTab;
770
769
static SymbolTableSection<ELFT> *DynSymTab;
771
770
static EhFrameHeader<ELFT> *EhFrameHdr;
772
771
static GnuHashTableSection<ELFT> *GnuHashTab;
@@ -784,8 +783,8 @@ template <class ELFT> struct In {
784
783
static RelocationSection<ELFT> *RelaDyn;
785
784
static RelocationSection<ELFT> *RelaPlt;
786
785
static RelocationSection<ELFT> *RelaIplt;
787
- static StringTableSection<ELFT> *ShStrTab;
788
- static StringTableSection<ELFT> *StrTab;
786
+ static StringTableSection *ShStrTab;
787
+ static StringTableSection *StrTab;
789
788
static SymbolTableSection<ELFT> *SymTab;
790
789
static VersionDefinitionSection<ELFT> *VerDef;
791
790
static VersionTableSection<ELFT> *VerSym;
@@ -798,7 +797,7 @@ template <class ELFT> BssSection *In<ELFT>::BssRelRo;
798
797
template <class ELFT > BuildIdSection<ELFT> *In<ELFT>::BuildId;
799
798
template <class ELFT > InputSection *In<ELFT>::Common;
800
799
template <class ELFT > DynamicSection<ELFT> *In<ELFT>::Dynamic;
801
- template <class ELFT > StringTableSection<ELFT> *In<ELFT>::DynStrTab;
800
+ template <class ELFT > StringTableSection *In<ELFT>::DynStrTab;
802
801
template <class ELFT > SymbolTableSection<ELFT> *In<ELFT>::DynSymTab;
803
802
template <class ELFT > EhFrameHeader<ELFT> *In<ELFT>::EhFrameHdr;
804
803
template <class ELFT > GdbIndexSection<ELFT> *In<ELFT>::GdbIndex;
@@ -816,8 +815,8 @@ template <class ELFT> PltSection<ELFT> *In<ELFT>::Iplt;
816
815
template <class ELFT > RelocationSection<ELFT> *In<ELFT>::RelaDyn;
817
816
template <class ELFT > RelocationSection<ELFT> *In<ELFT>::RelaPlt;
818
817
template <class ELFT > RelocationSection<ELFT> *In<ELFT>::RelaIplt;
819
- template <class ELFT > StringTableSection<ELFT> *In<ELFT>::ShStrTab;
820
- template <class ELFT > StringTableSection<ELFT> *In<ELFT>::StrTab;
818
+ template <class ELFT > StringTableSection *In<ELFT>::ShStrTab;
819
+ template <class ELFT > StringTableSection *In<ELFT>::StrTab;
821
820
template <class ELFT > SymbolTableSection<ELFT> *In<ELFT>::SymTab;
822
821
template <class ELFT > VersionDefinitionSection<ELFT> *In<ELFT>::VerDef;
823
822
template <class ELFT > VersionTableSection<ELFT> *In<ELFT>::VerSym;
0 commit comments