[lld] Add more complete support for the INCLUDE command.
authorRui Ueyama <ruiu@google.com>
Fri, 12 Oct 2018 17:07:32 +0000 (17:07 +0000)
committerRui Ueyama <ruiu@google.com>
Fri, 12 Oct 2018 17:07:32 +0000 (17:07 +0000)
commit2e9d40d5f45c4f7fa3e58acfb99c822dddec74df
tree6c398cdbfe8fd7cd43a7ff6a96219d2697221fa3
parentd0fbef9c753a78aa20d5a462b682bfaf83cc6e6e
[lld] Add more complete support for the INCLUDE command.

Patch by Ian Tessier.

This change adds INCLUDE support to the MEMORY and SECTION commands, and
to output sections, as per:

https://sourceware.org/binutils/docs/ld/File-Commands.html#File-Commands

Differential Revision: https://reviews.llvm.org/D52951

llvm-svn: 344368
lld/ELF/ScriptParser.cpp
lld/test/ELF/linkerscript/memory-include.test [new file with mode: 0644]
lld/test/ELF/linkerscript/output-section-include.test [new file with mode: 0644]
lld/test/ELF/linkerscript/section-include.test [new file with mode: 0644]