typedef typename ELFT::uint uintX_t;
public:
- typedef Phdr<ELFT> Phdr;
+ typedef PhdrEntry<ELFT> Phdr;
StringRef getOutputSection(InputSectionBase<ELFT> *S);
ArrayRef<uint8_t> getFiller(StringRef Name);
void run();
private:
- typedef Phdr<ELFT> Phdr;
+ typedef PhdrEntry<ELFT> Phdr;
void copyLocalSymbols();
void addReservedSymbols();
// Program header entry
template<class ELFT>
-Phdr<ELFT>::Phdr(unsigned Type, unsigned Flags) {
+PhdrEntry<ELFT>::PhdrEntry(unsigned Type, unsigned Flags) {
H.p_type = Type;
H.p_flags = Flags;
}
template<class ELFT>
-void Phdr<ELFT>::AddSec(OutputSectionBase<ELFT> *Sec) {
+void PhdrEntry<ELFT>::AddSec(OutputSectionBase<ELFT> *Sec) {
Last = Sec;
if (!First)
First = Sec;
template void elf::writeResult<ELF64LE>(SymbolTable<ELF64LE> *Symtab);
template void elf::writeResult<ELF64BE>(SymbolTable<ELF64BE> *Symtab);
-template struct elf::Phdr<ELF32LE>;
-template struct elf::Phdr<ELF32BE>;
-template struct elf::Phdr<ELF64LE>;
-template struct elf::Phdr<ELF64BE>;
+template struct elf::PhdrEntry<ELF32LE>;
+template struct elf::PhdrEntry<ELF32BE>;
+template struct elf::PhdrEntry<ELF64LE>;
+template struct elf::PhdrEntry<ELF64BE>;
template bool elf::needsInterpSection<ELF32LE>();
template bool elf::needsInterpSection<ELF32BE>();
// Each contains type, access flags and range of output sections that will be
// placed in it.
template<class ELFT>
-struct Phdr {
- Phdr(unsigned Type, unsigned Flags);
+struct PhdrEntry {
+ PhdrEntry(unsigned Type, unsigned Flags);
void AddSec(OutputSectionBase<ELFT> *Sec);
typename ELFT::Phdr H = {};