[ELF] Allows setting section for common symbols in linker script
llvm-svn: 277023
diff --git a/lld/ELF/LinkerScript.h b/lld/ELF/LinkerScript.h
index db9559b..64f6856 100644
--- a/lld/ELF/LinkerScript.h
+++ b/lld/ELF/LinkerScript.h
@@ -23,6 +23,8 @@
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 @@
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 @@
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;