Skip to content

Commit

Permalink
Enhance Wasm symbol reading
Browse files Browse the repository at this point in the history
Add support for:
 - Symbols for imports (with Dynamic scope).
 - "Virtual" file symbols to delimit imports from main file.
 - Symbols for local functions (with Compilation scope and real address and size).
 - Symbols for exports.
 - Text (functions) and Data (everything else) symbol kinds.
 - Start section converted to an entry address.
 - Symbols for local functions.
 - Predefined section kinds based on the section code.

Note that if a function is exported, then it will appear under its exported names with a Dynamic scope. Otherwise it's a local function and will appear with its debug name from the "names" section and a Compilation scope.

Also note that this adds support for fully built Wasm modules, but not for dynamic linking yet. That one will require adding more code for parsing relocation info and can be done in future in a separate PR.

Fixes gimli-rs#196.
  • Loading branch information
RReverser committed Feb 18, 2020
1 parent ab4d189 commit c052369
Showing 1 changed file with 258 additions and 77 deletions.
Loading

0 comments on commit c052369

Please sign in to comment.