diff options
author | Heejin Ahn <aheejin@users.noreply.github.com> | 2016-08-26 08:56:42 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-26 08:56:42 -0700 |
commit | 2cb8b275caf090bf56cc78424aaa97766cd02fb6 (patch) | |
tree | c01c751c22a76a670e76a30cf0af0cd8e0901902 /src/asm2wasm.h | |
parent | e168e2b9b6dd099c97c7ec313c3062d80fa1a9a8 (diff) | |
download | binaryen-2cb8b275caf090bf56cc78424aaa97766cd02fb6.tar.gz binaryen-2cb8b275caf090bf56cc78424aaa97766cd02fb6.tar.bz2 binaryen-2cb8b275caf090bf56cc78424aaa97766cd02fb6.zip |
Fix alignment bug in .lcomm (#680)
When parsing .lcomm directives, s2wasm does not parse the alignment
number and skip it. This causes alignment bugs in some cases. (In the
test case attached, 'buf' should be 4 bytes aligned, but it does not
align it properly, so this code was generated:
```
(call $foo
(i32.const 13)
)
```
13 is not 4-bytes aligned. This patch fixes this bug.
Diffstat (limited to 'src/asm2wasm.h')
0 files changed, 0 insertions, 0 deletions