summaryrefslogtreecommitdiff
path: root/src/binaryen-shell.cpp
diff options
context:
space:
mode:
authorDerek Schuff <dschuff@chromium.org>2016-04-06 15:12:14 -0700
committerDerek Schuff <dschuff@chromium.org>2016-04-06 15:12:14 -0700
commitc4c82597aaf43d7fee3cd8877801d9dd91e33f7b (patch)
tree04795d214e9d818bf0d1b9d81a47ea8924e40878 /src/binaryen-shell.cpp
parent0d1a66c540a2c89e1d4543fe318976ad1c6411f1 (diff)
downloadbinaryen-c4c82597aaf43d7fee3cd8877801d9dd91e33f7b.tar.gz
binaryen-c4c82597aaf43d7fee3cd8877801d9dd91e33f7b.tar.bz2
binaryen-c4c82597aaf43d7fee3cd8877801d9dd91e33f7b.zip
Fix s2wasm handling of aliased functions
This fixes 2 bugs in s2wasm: * Handle address-taken aliases (i.e. when they appear in relocations), by looking up and subsituting the address of the aliasee. * Skip whitespace at the top of the scan() loop instead of requiring it to match. When there are multiple alias declarations in a row, the match("FUNCTION") at the end of an alias delcaration consumes the whitespace at the beginning of the next line, causing it to fail to match the tab character specified in the match pattern at the top of the loop.
Diffstat (limited to 'src/binaryen-shell.cpp')
0 files changed, 0 insertions, 0 deletions