diff options
author | Alon Zakai <alonzakai@gmail.com> | 2015-12-20 19:22:08 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2015-12-20 19:25:09 -0800 |
commit | c7eaa6261215689f4cea1264da8b44494bc7f2a9 (patch) | |
tree | f37309bd98d3bb18ea290a94490f85f3b8f34f2f /src | |
parent | 42000f2ed456c05747c04e8b4a159bb8a3464c21 (diff) | |
download | binaryen-c7eaa6261215689f4cea1264da8b44494bc7f2a9.tar.gz binaryen-c7eaa6261215689f4cea1264da8b44494bc7f2a9.tar.bz2 binaryen-c7eaa6261215689f4cea1264da8b44494bc7f2a9.zip |
ignore .section inside objects in s2wasm, and update .s tests
Diffstat (limited to 'src')
-rw-r--r-- | src/s2wasm.h | 3 |
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); |