diff options
Diffstat (limited to 'lld/ELF/LinkerScript.h')
-rw-r--r-- | lld/ELF/LinkerScript.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lld/ELF/LinkerScript.h b/lld/ELF/LinkerScript.h index db9559bd0de..64f68561155 100644 --- a/lld/ELF/LinkerScript.h +++ b/lld/ELF/LinkerScript.h @@ -23,6 +23,8 @@ namespace elf { template <class ELFT> class InputSectionBase; template <class ELFT> class OutputSectionBase; template <class ELFT> class OutputSectionFactory; +template <class ELFT> class DefinedCommon; +template <class ELFT> class CommonInputSection; typedef std::function<uint64_t(uint64_t)> Expr; @@ -120,7 +122,8 @@ template <class ELFT> class LinkerScript { public: std::vector<OutputSectionBase<ELFT> *> - createSections(OutputSectionFactory<ELFT> &Factory); + createSections(OutputSectionFactory<ELFT> &Factory, + CommonInputSection<ELFT> *Common); std::vector<PhdrEntry<ELFT>> createPhdrs(ArrayRef<OutputSectionBase<ELFT> *> S); @@ -137,7 +140,7 @@ private: getSectionMap(); std::vector<InputSectionBase<ELFT> *> - getInputSections(const InputSectionDescription *); + getInputSections(const InputSectionDescription *, CommonInputSection<ELFT> *); // "ScriptConfig" is a bit too long, so define a short name for it. ScriptConfiguration &Opt = *ScriptConfig; |