Linker script: Fix bug with several .bss
authorEugene Leviant <evgeny.leviant@gmail.com>
Wed, 21 Sep 2016 11:29:28 +0000 (11:29 +0000)
committerEugene Leviant <evgeny.leviant@gmail.com>
Wed, 21 Sep 2016 11:29:28 +0000 (11:29 +0000)
commit2506cb4ddb05a5b1eee261aca2c6bfaa9bca348d
treef35943e43cf858e0858b17e379e3b32f0edee1bd
parent451dd080ede79a420b8f88ec367c6c1e433de2ed
Linker script: Fix bug with several .bss

When final image has several .bss sections, lld fails
because second .bss always has zero VA. This causes
link error "Not enough space for ELF and program headers"

llvm-svn: 282067
lld/ELF/LinkerScript.cpp
lld/test/ELF/linkerscript/double-bss.s [new file with mode: 0644]