Page MenuHomePhabricator

[WebAssembly] make wasm-ld --verbose show data section startVA and name
ClosedPublic

Authored by quantum on Jun 3 2019, 5:18 PM.

Details

Summary

Make wasm-ld --verbose show data section start virtual address and name
as well, instead of just showing the size. This makes it much easier to
track which global variable is in which address when used in conjunction
with --no-merge-data-sections.

Diff Detail

Repository
rL LLVM

Event Timeline

quantum created this revision.Jun 3 2019, 5:18 PM
sbc100 accepted this revision.Jun 3 2019, 5:23 PM
This revision is now accepted and ready to land.Jun 3 2019, 5:23 PM
ruiu added a subscriber: ruiu.Jun 3 2019, 5:49 PM

You might be interested in adding -Map option to lld/wasm. I found that option useful, as it prints out a layout information in a hierarchical manner. Here is an implementation for lld/ELF.

https://github.com/llvm-project/lld/blob/master/ELF/MapFile.cpp

ruiu accepted this revision.Jun 3 2019, 5:50 PM

By the way this LGTM

This revision was automatically updated to reflect the committed changes.