diff options
author | Sam Clegg <sbc@chromium.org> | 2018-12-12 15:48:35 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-12 15:48:35 -0800 |
commit | a5827e0c2e5d3e4a05a65853ec5b5284dffe9585 (patch) | |
tree | c86fd39f6e3b060f36d2426a6063112a924bd76b /src/binary-reader-objdump.cc | |
parent | 152a5258aa0d24bf10b7e57878abba78dd0c3c56 (diff) | |
download | wabt-a5827e0c2e5d3e4a05a65853ec5b5284dffe9585.tar.gz wabt-a5827e0c2e5d3e4a05a65853ec5b5284dffe9585.tar.bz2 wabt-a5827e0c2e5d3e4a05a65853ec5b5284dffe9585.zip |
Add needed_dynlibs to dylink section (#974)
This field was recently added:
https://github.com/WebAssembly/tool-conventions/blob/master/DynamicLinking.md
Diffstat (limited to 'src/binary-reader-objdump.cc')
-rw-r--r-- | src/binary-reader-objdump.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/binary-reader-objdump.cc b/src/binary-reader-objdump.cc index 7653d105..fb4c3d23 100644 --- a/src/binary-reader-objdump.cc +++ b/src/binary-reader-objdump.cc @@ -767,6 +767,8 @@ class BinaryReaderObjdump : public BinaryReaderObjdumpBase { uint32_t mem_align, uint32_t table_size, uint32_t table_align) override; + Result OnDylinkNeededCount(Index count) override; + Result OnDylinkNeeded(string_view so_name) override; Result OnRelocCount(Index count, Index section_index) override; Result OnReloc(RelocType type, @@ -1354,6 +1356,18 @@ Result BinaryReaderObjdump::OnDylinkInfo(uint32_t mem_size, return Result::Ok; } +Result BinaryReaderObjdump::OnDylinkNeededCount(Index count) { + if (count) { + PrintDetails(" - needed_dynlibs[%u]:\n", count); + } + return Result::Ok; +} + +Result BinaryReaderObjdump::OnDylinkNeeded(string_view so_name) { + PrintDetails(" - " PRIstringview "\n", WABT_PRINTF_STRING_VIEW_ARG(so_name)); + return Result::Ok; +} + Result BinaryReaderObjdump::OnRelocCount(Index count, Index section_index) { BinaryReaderObjdumpBase::OnRelocCount(count, section_index); PrintDetails(" - relocations for section: %d (%s) [%d]\n", section_index, |