[PATCH] D27415: [ELF] - Replace MergeOutputSection with synthetic input section MergeSection.

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 8 08:35:50 PST 2016


ruiu added inline comments.


================
Comment at: ELF/LinkerScript.cpp:366
+      std::vector<InputSectionBase<ELFT> *> V = { S };
+      combineMergableSections(V);
+      addSection(Factory, V[0], getOutputSectionName(S->Name));
----------------
grimar wrote:
> ruiu wrote:
> > This is odd too.
> The same. We do not know what sections are orphans until we proccess the script.
Is that a real usage? If not, we shouldn't overthink.


https://reviews.llvm.org/D27415





More information about the llvm-commits mailing list