From 89e86d1c68df2a9308b299643070535635eb5cf9 Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Tue, 23 Jan 2018 16:56:42 -0800 Subject: 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. --- src/binary-reader-objdump.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/binary-reader-objdump.cc') 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); } -- cgit v1.2.3