summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/s2wasm.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/s2wasm.h b/src/s2wasm.h
index 4ba491061..71b17fc5b 100644
--- a/src/s2wasm.h
+++ b/src/s2wasm.h
@@ -830,12 +830,15 @@ private:
void parseObject(Name name) {
if (match(".data") || match(".bss")) {
+ } else if (match(".section")) {
+ s = strchr(s, '\n');
} else if (match(".lcomm")) {
mustMatch(name.str);
skipComma();
getInt();
return;
}
+ skipWhitespace();
size_t align = 16; // XXX default?
if (match(".globl")) {
mustMatch(name.str);