[ELF] Set 'Live = true' in SyntheticSection ctor. NFC.

llvm-svn: 286588
This commit is contained in:
Eugene Leviant 2016-11-11 13:03:58 +00:00
parent a0e7325023
commit 17afb64d4f
2 changed files with 3 additions and 2 deletions

View File

@ -617,7 +617,6 @@ template <class ELFT>
GotPltSection<ELFT>::GotPltSection()
: SyntheticSection<ELFT>(SHF_ALLOC | SHF_WRITE, SHT_PROGBITS,
Target->GotPltEntrySize, ".got.plt") {
this->Live = true;
}
template <class ELFT> void GotPltSection<ELFT>::addEntry(SymbolBody &Sym) {

View File

@ -66,7 +66,9 @@ public:
SyntheticSection(uintX_t Flags, uint32_t Type, uintX_t Addralign,
StringRef Name)
: InputSection<ELFT>(Flags, Type, Addralign, ArrayRef<uint8_t>(), Name,
InputSectionData::Synthetic) {}
InputSectionData::Synthetic) {
this->Live = true;
}
virtual void writeTo(uint8_t *Buf) = 0;
virtual size_t getSize() const { return this->Data.size(); }