[ELF] - Linkerscript: fix VA value assigned to sections when using constraints.
authorGeorge Rimar <grimar@accesssoftek.com>
Fri, 12 Aug 2016 20:38:20 +0000 (20:38 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Fri, 12 Aug 2016 20:38:20 +0000 (20:38 +0000)
commit8f66df92ba28f7db8c63bee46780b825750ad8d7
treec1ab6711f82f74471a595559ce2af0c220073b46
parentf4fdb5ddf3f18348393516bea845d406805e497b
[ELF] - Linkerscript: fix VA value assigned to sections when using constraints.

Previously we searched output section by name to assign VA. That did not
work in the case when multiple output sections with different constraints were defined in script.
Testcase shows the possible issue scenario, patch fixes the issue.

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

llvm-svn: 278561
lld/ELF/LinkerScript.cpp
lld/test/ELF/linkerscript/linkerscript-multi-sections-constraint.s