google / bloaty

Bloaty: a size profiler for binaries
Apache License 2.0
4.71k stars 340 forks source link

[WebAssembly] Add support for data sections #294

Closed dschuff closed 2 years ago

dschuff commented 2 years ago

Extend the name section parsing to read data segment names. Parse the data section, and use those names to sink data segments.

Add a lit test for general section parsing, and function and data symbols. While doing that, I discovered a couple of minor bugs where section headers were incorrectly attributed. Rather than fix them in this PR, I left notes in the test file.

dschuff commented 2 years ago

/cc @sbc100