[PATCH] D27041: [ELF] - Disable emiting multiple output sections when merging is disabled.

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 25 08:28:17 PST 2016


ruiu added inline comments.


================
Comment at: ELF/InputSection.cpp:60-62
+  if (Config->Optimize == 0)
+    return Flags & ~(SHF_MERGE | SHF_STRINGS);
+  return Flags;
----------------
We shouldn't implement the same logic again here. You want to change this line https://github.com/llvm-mirror/lld/blob/d93aa5ab9ac56831d625a0233a0e17f482822d07/ELF/InputSection.cpp#L208to turn off SHF_MERGE and SHF_STRINGS flags unconditionally.


https://reviews.llvm.org/D27041





More information about the llvm-commits mailing list