From 83c210834197b7ad3208214a4f9d8669134c4a3c Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Mon, 10 Aug 2020 12:28:48 -0400 Subject: 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. --- tools/lexh.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tools') 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 { -- cgit 1.4.1