diff options
Diffstat (limited to 'ELF/SyntheticSections.h')
-rw-r--r-- | ELF/SyntheticSections.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/ELF/SyntheticSections.h b/ELF/SyntheticSections.h index 5aaf479f3e35..a990590513bb 100644 --- a/ELF/SyntheticSections.h +++ b/ELF/SyntheticSections.h @@ -36,7 +36,7 @@ class SyntheticSection : public InputSection { public: SyntheticSection(uint64_t Flags, uint32_t Type, uint32_t Alignment, StringRef Name) - : InputSection(Flags, Type, Alignment, {}, Name, + : InputSection(nullptr, Flags, Type, Alignment, {}, Name, InputSectionBase::Synthetic) { this->Live = true; } @@ -785,6 +785,9 @@ public: ARMExidxSentinelSection(); size_t getSize() const override { return 8; } void writeTo(uint8_t *Buf) override; + bool empty() const override; + + InputSection *Highest = 0; }; // A container for one or more linker generated thunks. Instances of these @@ -809,12 +812,12 @@ private: }; InputSection *createInterpSection(); -template <class ELFT> MergeInputSection *createCommentSection(); +MergeInputSection *createCommentSection(); void decompressSections(); void mergeSections(); Symbol *addSyntheticLocal(StringRef Name, uint8_t Type, uint64_t Value, - uint64_t Size, InputSectionBase *Section); + uint64_t Size, InputSectionBase &Section); // Linker generated sections which can be used as inputs. struct InX { |