[ELF] - Disable emiting multiple output sections when merging is disabled.
authorGeorge Rimar <grimar@accesssoftek.com>
Tue, 29 Nov 2016 16:11:09 +0000 (16:11 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Tue, 29 Nov 2016 16:11:09 +0000 (16:11 +0000)
commit9b3ae73fc8bf5de598f9a56e9aeb8b0acd3fdaf0
tree0759c91c737fa425402914c1c8e1c8ff4814f5d5
parent3fb5a6dc9e0c30af868c85ac77c94ebec836b08a
[ELF] - Disable emiting multiple output sections when merging is disabled.

When -O0 is specified, we do not do section merging.
Though before this patch several sections were generated instead
of single, what is useless.

Differential revision: https://reviews.llvm.org/D27041

llvm-svn: 288151
lld/ELF/InputSection.cpp
lld/test/ELF/merge-string.s
lld/test/ELF/no-merge.s [new file with mode: 0644]