[ELF] - Do not use mergeable sections when LS is used.
authorGeorge Rimar <grimar@accesssoftek.com>
Fri, 12 Aug 2016 19:56:57 +0000 (19:56 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Fri, 12 Aug 2016 19:56:57 +0000 (19:56 +0000)
commit67e3ff83f5b438d64427c0779e8571aa745d5549
treef901afa4b0a9776716ab118e6ebdedfad9d77529
parentb6c52e8dfac5717f89c7a16a102331937c2dbe26
[ELF] - Do not use mergeable sections when LS is used.

After latest changes we combine input sections with
different attributes into single output section.
Problem here is that regular output sections does not
support adding mergeable input sections (and vise versa).
Patch just temporarily disables merging for now at
the same way we do for -O0 for example.

This change helps for linking FreeBSD kernel.

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

llvm-svn: 278555
lld/ELF/InputFiles.cpp
lld/test/ELF/linkerscript/linkerscript-merge-sections.s [new file with mode: 0644]