Branch
Hash :
33f2cf95
Author :
Date :
2022-03-21T15:15:34
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
SECTIONS
{
output :
{
file1(.text)
. = . + 1000;
file2(.text)
. += 1000;
file3(.text)
} = 0x1234;
}
----------------------------------------------------
[
"SECTIONS\r\n",
["punctuation", "{"],
"\r\n output ",
["operator", ":"],
["punctuation", "{"],
"\r\n file1",
["punctuation", "("],
["section", ".text"],
["punctuation", ")"],
["location-counter", "."],
["operator", "="],
["location-counter", "."],
["operator", "+"],
["number", "1000"],
["punctuation", ";"],
"\r\n file2",
["punctuation", "("],
["section", ".text"],
["punctuation", ")"],
["location-counter", "."],
["operator", "+="],
["number", "1000"],
["punctuation", ";"],
"\r\n file3",
["punctuation", "("],
["section", ".text"],
["punctuation", ")"],
["punctuation", "}"],
["operator", "="],
["number", "0x1234"],
["punctuation", ";"],
["punctuation", "}"]
]