diff options
author | Thomas Lively <7121787+tlively@users.noreply.github.com> | 2020-12-01 18:41:33 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-01 18:41:33 -0800 |
commit | 3b1d58aadd37ce8758447c9685d5c3a7bec9c418 (patch) | |
tree | 66a09c9f3d94384bbd983d70c410791d6609c7f6 /src/tools/wasm-split.cpp | |
parent | a5403d47483836d5e2d53c3f3721bd376551624a (diff) | |
download | binaryen-3b1d58aadd37ce8758447c9685d5c3a7bec9c418.tar.gz binaryen-3b1d58aadd37ce8758447c9685d5c3a7bec9c418.tar.bz2 binaryen-3b1d58aadd37ce8758447c9685d5c3a7bec9c418.zip |
[module-splitting] Allow splitting with non-const table offsets (#3408)
Extend the splitting logic to handle splitting modules with a single table
segment with a non-const offset. In this situation the placeholder function
names are interpreted as offsets from the table base global rather than absolute
indices into the table. Since addition is not allowed in segment offset
expressions, the secondary module's segment must start at the same place as the
first table's segment. That means that some primary functions must be duplicated
in the secondary segment to fill any gaps. They are exported and imported as
necessary.
Diffstat (limited to 'src/tools/wasm-split.cpp')
0 files changed, 0 insertions, 0 deletions