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
18 lines
174 B
Plaintext
18 lines
174 B
Plaintext
/*
|
|
RUN: linker-script-test %s | FileCheck %s
|
|
*/
|
|
|
|
MEMORY
|
|
{
|
|
}
|
|
|
|
/*
|
|
CHECK: kw_memory: MEMORY
|
|
CHECK: l_brace: {
|
|
CHECK: r_brace: }
|
|
CHECK: eof:
|
|
CHECK: MEMORY
|
|
CHECK: {
|
|
CHECK: }
|
|
*/
|