[ELF] - Allow moving location counter backward in some cases.
authorGeorge Rimar <grimar@accesssoftek.com>
Wed, 12 Jul 2017 14:50:25 +0000 (14:50 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Wed, 12 Jul 2017 14:50:25 +0000 (14:50 +0000)
commit8c804d97467964bee14f47c72ec6b89f8d231f99
tree3ab1242bbd50d5bd5cc740d7929d8d3c3ac2e99e
parent2de1ddbd9c592c5297c6f02e52a472af2ed2ea3c
[ELF] - Allow moving location counter backward in some cases.

Patch removes restriction about moving location counter
backwards outside of output sections declarations.

That may be useful for some apps relying on such scripts,
known example is linux kernel.

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

llvm-svn: 307794
lld/ELF/LinkerScript.cpp
lld/test/ELF/linkerscript/locationcountererr2.s
lld/test/ELF/linkerscript/out-of-order.s