summaryrefslogtreecommitdiff
path: root/src/binary-reader-logging.cc
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2018-12-12 15:48:35 -0800
committerGitHub <noreply@github.com>2018-12-12 15:48:35 -0800
commita5827e0c2e5d3e4a05a65853ec5b5284dffe9585 (patch)
treec86fd39f6e3b060f36d2426a6063112a924bd76b /src/binary-reader-logging.cc
parent152a5258aa0d24bf10b7e57878abba78dd0c3c56 (diff)
downloadwabt-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.cc7
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)