[ELF] Set 'Live = true' in SyntheticSection ctor. NFC.
llvm-svn: 286588
This commit is contained in:
parent
a0e7325023
commit
17afb64d4f
|
@ -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) {
|
||||
|
|
|
@ -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(); }
|
||||
|
|
Loading…
Reference in New Issue