From 738feca9aa0ca0b21e47d0a6d9bf5f572902d2a3 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Thu, 17 Dec 2015 20:08:19 -0800 Subject: accept more things in s2wasm --- src/s2wasm.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/s2wasm.h') diff --git a/src/s2wasm.h b/src/s2wasm.h index 68e284978..7b3aa5b49 100644 --- a/src/s2wasm.h +++ b/src/s2wasm.h @@ -283,6 +283,7 @@ private: else if (match("type")) parseType(); else if (match("imports")) skipImports(); else if (match("data")) {} + else if (match("ident")) {} else if (match("section")) s = strchr(s, '\n'); else abort_on("process"); } @@ -828,7 +829,13 @@ private: } void parseObject(Name name) { - match(".data"); + if (match(".data") || match(".bss")) { + } else if (match(".lcomm")) { + mustMatch(name.str); + skipComma(); + getInt(); + return; + } size_t align = 16; // XXX default? if (match(".globl")) { mustMatch(name.str); -- cgit v1.2.3