diff options
author | Sam Clegg <sbc@chromium.org> | 2018-01-23 16:56:42 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-23 16:56:42 -0800 |
commit | 89e86d1c68df2a9308b299643070535635eb5cf9 (patch) | |
tree | 4ec729e55fd8cac7fb75b36d6827864f7502445c /src/binary-reader-objdump.cc | |
parent | 8bcd84f39737a8f26da1dec33a80da7c7ee4e390 (diff) | |
download | wabt-89e86d1c68df2a9308b299643070535635eb5cf9.tar.gz wabt-89e86d1c68df2a9308b299643070535635eb5cf9.tar.bz2 wabt-89e86d1c68df2a9308b299643070535635eb5cf9.zip |
Print symbol names when dumping table relocations (#731)
These relocations point to function index space so we
can print the name of the function here.
Diffstat (limited to 'src/binary-reader-objdump.cc')
-rw-r--r-- | src/binary-reader-objdump.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/binary-reader-objdump.cc b/src/binary-reader-objdump.cc index 49ef82ea..712f4551 100644 --- a/src/binary-reader-objdump.cc +++ b/src/binary-reader-objdump.cc @@ -135,6 +135,8 @@ void BinaryReaderObjdumpBase::PrintRelocation(const Reloc& reloc, printf(" + %d", reloc.addend); break; case RelocType::FuncIndexLEB: + case RelocType::TableIndexSLEB: + case RelocType::TableIndexI32: if (const char* name = GetFunctionName(reloc.index)) { printf(" <%s>", name); } |