summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/s2wasm.h9
1 files changed, 8 insertions, 1 deletions
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);