LinkerScript: Add parsing of the MEMORY command
authorMeador Inge <meadori@codesourcery.com>
Wed, 11 Mar 2015 15:34:44 +0000 (15:34 +0000)
committerMeador Inge <meadori@codesourcery.com>
Wed, 11 Mar 2015 15:34:44 +0000 (15:34 +0000)
commit2ce1ea86d0b30436110972f5d5f0814094027a97
tree4a795824f4201eb13f4939704b175a62e535a8b5
parentc04b6f242ca4a16165bea8043c2cdc19407cf240
LinkerScript: Add parsing of the MEMORY command

This patch implements parsing of the GNU ld MEMORY command [1].
The command and the memory block definitions are parsed as
specified (including the slightly strange "o" and "l" keywords).
Evaluation will be added at a later point in time.

[1] https://sourceware.org/binutils/docs-2.25/ld/MEMORY.html

llvm-svn: 231928
lld/include/lld/ReaderWriter/LinkerScript.h
lld/lib/ReaderWriter/LinkerScript.cpp
lld/test/LinkerScript/memory-empty.test [new file with mode: 0644]
lld/test/LinkerScript/memory-missing-attrs.test [new file with mode: 0644]
lld/test/LinkerScript/memory-missing-length.test [new file with mode: 0644]
lld/test/LinkerScript/memory-missing-name.test [new file with mode: 0644]
lld/test/LinkerScript/memory-missing-origin.test [new file with mode: 0644]
lld/test/LinkerScript/memory-valid.test [new file with mode: 0644]