[ELF] - Check that output sections fit in address space.
authorGeorge Rimar <grimar@accesssoftek.com>
Tue, 3 Apr 2018 12:39:28 +0000 (12:39 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Tue, 3 Apr 2018 12:39:28 +0000 (12:39 +0000)
commit1fc9f39bd544dc757323d2ee8830134275e382ec
tree6ccbc6d1d195cb1da2489926714db40bded44b3d
parent8fcd04b786a0f1b58b0a2ba1a46f322d88b28fd9
[ELF] - Check that output sections fit in address space.

Added checks to test that we do not produce
output where VA of sections overruns the address
space available.

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

llvm-svn: 329063
lld/ELF/Writer.cpp
lld/test/ELF/linkerscript/i386-sections-max-va-overflow.s [new file with mode: 0644]
lld/test/ELF/linkerscript/output-too-large.s
lld/test/ELF/linkerscript/sections-max-va-overflow.s [new file with mode: 0644]