summary refs log tree commit diff
path: root/tools/lexh.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2020-08-10 12:28:48 -0400
committerQuentin Carbonneaux <quentin@c9x.me>2021-03-02 10:00:08 +0100
commit83c210834197b7ad3208214a4f9d8669134c4a3c (patch)
tree82b5e49cf07c1f4453819ad9a317480d0cddc328 /tools/lexh.c
parentcdee1d81c4c73113eb293bf2ac816bee53047f36 (diff)
downloadroux-83c210834197b7ad3208214a4f9d8669134c4a3c.tar.gz
add data $name = section "section" ...
This allows you to explicitly specify the section to emit the data
directive for, allowing for sections other than .data: for example, .bss
or .init_array.
Diffstat (limited to 'tools/lexh.c')
-rw-r--r--tools/lexh.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/lexh.c b/tools/lexh.c
index 9e8016a..2ebb022 100644
--- a/tools/lexh.c
+++ b/tools/lexh.c
@@ -25,9 +25,9 @@ char *tok[] = {
 	"vaarg", "vastart", "...", "env",
 
 	"call", "phi", "jmp", "jnz", "ret", "export",
-	"function", "type", "data", "align", "l", "w",
-	"h", "b", "d", "s", "z", "loadw", "loadl", "loads",
-	"loadd", "alloc1", "alloc2",
+	"function", "type", "data", "section", "align",
+	"l", "w", "h", "b", "d", "s", "z", "loadw", "loadl",
+	"loads", "loadd", "alloc1", "alloc2",
 
 };
 enum {