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-logging.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-logging.cc')
-rw-r--r-- | src/binary-reader-logging.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/binary-reader-logging.cc b/src/binary-reader-logging.cc index a99c3206..e31471df 100644 --- a/src/binary-reader-logging.cc +++ b/src/binary-reader-logging.cc @@ -479,6 +479,12 @@ Result BinaryReaderLogging::OnDylinkInfo(uint32_t mem_size, return reader_->OnDylinkInfo(mem_size, mem_align, table_size, table_align); } +Result BinaryReaderLogging::OnDylinkNeeded(string_view so_name) { + LOGF("OnDylinkNeeded(name: " PRIstringview ")\n", + WABT_PRINTF_STRING_VIEW_ARG(so_name)); + return reader_->OnDylinkNeeded(so_name); +} + Result BinaryReaderLogging::OnRelocCount(Index count, Index section_index) { LOGF("OnRelocCount(count: %" PRIindex ", section: %" PRIindex ")\n", count, @@ -739,6 +745,7 @@ DEFINE_END(EndRelocSection) DEFINE_INDEX_INDEX(OnInitExprGetGlobalExpr, "index", "global_index") DEFINE_BEGIN(BeginDylinkSection) +DEFINE_INDEX(OnDylinkNeededCount) DEFINE_END(EndDylinkSection) DEFINE_BEGIN(BeginLinkingSection) |