diff options
author | Sam Clegg <sbc@chromium.org> | 2021-10-19 15:39:04 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-19 15:39:04 -0700 |
commit | 5d2a919ce1fea41a626c5cc8fc440879756fde9c (patch) | |
tree | 5b1f0cb7b560d51e73a7733593730b7e03508bc8 /src/binary-reader-objdump.cc | |
parent | 60ef15d09db5b6e9336ad7d3b400bd64571b3933 (diff) | |
download | wabt-5d2a919ce1fea41a626c5cc8fc440879756fde9c.tar.gz wabt-5d2a919ce1fea41a626c5cc8fc440879756fde9c.tar.bz2 wabt-5d2a919ce1fea41a626c5cc8fc440879756fde9c.zip |
Add support for target_features section (#1744)
Diffstat (limited to 'src/binary-reader-objdump.cc')
-rw-r--r-- | src/binary-reader-objdump.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/binary-reader-objdump.cc b/src/binary-reader-objdump.cc index 7cca4505..9b451c9b 100644 --- a/src/binary-reader-objdump.cc +++ b/src/binary-reader-objdump.cc @@ -986,6 +986,8 @@ class BinaryReaderObjdump : public BinaryReaderObjdumpBase { Index index, uint32_t addend) override; + Result OnFeature(uint8_t prefix, string_view name) override; + Result OnSymbolCount(Index count) override; Result OnDataSymbol(Index index, uint32_t flags, @@ -1022,7 +1024,6 @@ class BinaryReaderObjdump : public BinaryReaderObjdumpBase { Result OnComdatCount(Index count) override; Result OnComdatBegin(string_view name, uint32_t flags, Index count) override; Result OnComdatEntry(ComdatType kind, Index index) override; - Result EndLinkingSection() override { return Result::Ok; } Result OnTagCount(Index count) override; Result OnTagType(Index index, Index sig_index) override; @@ -1842,6 +1843,12 @@ Result BinaryReaderObjdump::OnReloc(RelocType type, return Result::Ok; } +Result BinaryReaderObjdump::OnFeature(uint8_t prefix, string_view name) { + PrintDetails(" - [%c] " PRIstringview "\n", prefix, + WABT_PRINTF_STRING_VIEW_ARG(name)); + return Result::Ok; +} + Result BinaryReaderObjdump::OnSymbolCount(Index count) { PrintDetails(" - symbol table [count=%d]\n", count); return Result::Ok; |