diff options
author | Sam Clegg <sbc@chromium.org> | 2018-11-14 16:17:44 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-14 16:17:44 -0800 |
commit | e13d7c942a25df6f181cdbabb01b557666842752 (patch) | |
tree | e49952e70d602f80e9d08f77c5ae91f4bf8376d0 /src/binary-reader-objdump.cc | |
parent | 9b549f947297d680b1e493facdd15a469f6e8244 (diff) | |
download | wabt-e13d7c942a25df6f181cdbabb01b557666842752.tar.gz wabt-e13d7c942a25df6f181cdbabb01b557666842752.tar.bz2 wabt-e13d7c942a25df6f181cdbabb01b557666842752.zip |
Add support for dylink section (#955)
See: 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 | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/binary-reader-objdump.cc b/src/binary-reader-objdump.cc index 81f2926d..51ebcae0 100644 --- a/src/binary-reader-objdump.cc +++ b/src/binary-reader-objdump.cc @@ -738,6 +738,11 @@ class BinaryReaderObjdump : public BinaryReaderObjdumpBase { Result OnInitExprI32ConstExpr(Index index, uint32_t value) override; Result OnInitExprI64ConstExpr(Index index, uint64_t value) override; + Result OnDylinkInfo(uint32_t mem_size, + uint32_t mem_align, + uint32_t table_size, + uint32_t table_align) override; + Result OnRelocCount(Index count, Index section_index) override; Result OnReloc(RelocType type, Offset offset, @@ -1313,6 +1318,17 @@ Result BinaryReaderObjdump::OnDataSegmentData(Index index, return Result::Ok; } +Result BinaryReaderObjdump::OnDylinkInfo(uint32_t mem_size, + uint32_t mem_align, + uint32_t table_size, + uint32_t table_align) { + PrintDetails(" - mem_size : %u\n", mem_size); + PrintDetails(" - mem_align : %u\n", mem_align); + PrintDetails(" - table_size : %u\n", table_size); + PrintDetails(" - table_align: %u\n", table_align); + 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, |