summaryrefslogtreecommitdiff
path: root/lld/ELF/Writer.h
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2016-12-19 17:01:01 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2016-12-19 17:01:01 +0000
commit3dc2e66fb0ceccaa577843f8d2b6923d0c6e2dfd (patch)
tree3b6b4500366ccc6253b84f1936ffc19d2f0e722f /lld/ELF/Writer.h
parent4342a02fee531dee3fe3ed9fd2af386fba4f8a81 (diff)
Detemplate PhdrEntry. NFC.
Diffstat (limited to 'lld/ELF/Writer.h')
-rw-r--r--lld/ELF/Writer.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/lld/ELF/Writer.h b/lld/ELF/Writer.h
index a88161fa14c..94d707ff4c5 100644
--- a/lld/ELF/Writer.h
+++ b/lld/ELF/Writer.h
@@ -28,11 +28,19 @@ template <class ELFT> bool isRelroSection(const OutputSectionBase *Sec);
// This describes a program header entry.
// Each contains type, access flags and range of output sections that will be
// placed in it.
-template <class ELFT> struct PhdrEntry {
+struct PhdrEntry {
PhdrEntry(unsigned Type, unsigned Flags);
void add(OutputSectionBase *Sec);
- typename ELFT::Phdr H = {};
+ uint64_t p_paddr = 0;
+ uint64_t p_vaddr = 0;
+ uint64_t p_align = 0;
+ uint64_t p_memsz = 0;
+ uint64_t p_filesz = 0;
+ uint64_t p_offset = 0;
+ uint32_t p_type = 0;
+ uint32_t p_flags = 0;
+
OutputSectionBase *First = nullptr;
OutputSectionBase *Last = nullptr;
bool HasLMA = false;