diff options
-rw-r--r-- | lld/ELF/OutputSections.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lld/ELF/OutputSections.cpp b/lld/ELF/OutputSections.cpp index d237f33033c..492f96bc0f2 100644 --- a/lld/ELF/OutputSections.cpp +++ b/lld/ELF/OutputSections.cpp @@ -48,6 +48,11 @@ OutputSectionBase<ELFT>::OutputSectionBase(StringRef Name, uint32_t Type, } template <class ELFT> +void OutputSectionBase<ELFT>::writeHeaderTo(Elf_Shdr *Shdr) { + *Shdr = Header; +} + +template <class ELFT> GotPltSection<ELFT>::GotPltSection() : OutputSectionBase<ELFT>(".got.plt", SHT_PROGBITS, SHF_ALLOC | SHF_WRITE) { this->Header.sh_addralign = sizeof(uintX_t); @@ -290,11 +295,6 @@ InterpSection<ELFT>::InterpSection() this->Header.sh_addralign = 1; } -template <class ELFT> -void OutputSectionBase<ELFT>::writeHeaderTo(Elf_Shdr *SHdr) { - *SHdr = Header; -} - template <class ELFT> void InterpSection<ELFT>::writeTo(uint8_t *Buf) { memcpy(Buf, Config->DynamicLinker.data(), Config->DynamicLinker.size()); } |