diff options
author | Andy Wingo <wingo@igalia.com> | 2020-09-17 00:21:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-16 15:21:23 -0700 |
commit | cd0b3db0524f11023e6cdbbaa6e430f8dc3aa2f8 (patch) | |
tree | 1d01157358857ff1d8a4d1b3366e5b53296c5f25 /docs/demo/third_party/split/split.min.js | |
parent | 21350996d5bbcd9cafbaa3a5687e6fb503da060c (diff) | |
download | wabt-cd0b3db0524f11023e6cdbbaa6e430f8dc3aa2f8.tar.gz wabt-cd0b3db0524f11023e6cdbbaa6e430f8dc3aa2f8.tar.bz2 wabt-cd0b3db0524f11023e6cdbbaa6e430f8dc3aa2f8.zip |
Eager symbol tables (#1537)
* Eagerly create symbol tables when writing relocatable binaries
Instead of adding entries to the symbol table as they are referenced,
when writing relocatable binaries, we're going to make symbols for all
functions. This allows exported functions and globals to be written
with the proper exported / no_strip flags, so that resulting files will
link with wasm-ld.
* Symbol table names are export names, without the dollar.
In the previous commit, I wrongly assumed that the globally visible name
for linking was taken from the exports section, whereas actually it's
from the symbol table. Therefore this patch changes to strip off the
dollar, and also to make all named bindings globally visible. The
exported-to-the-host binding is mostly unrelated to the
visible-to-other-compilation-units binding. Unnamed definitions aren't
added to the symbol table.
* Add symbol tables test
* Rename Intern helper to EnsureUnique
Diffstat (limited to 'docs/demo/third_party/split/split.min.js')
0 files changed, 0 insertions, 0 deletions