From 04c56ecbe54b34106038fce67c088242eedc1669 Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Thu, 4 Jun 2020 14:21:39 -0400 Subject: Weak symbols should also display as exported --- examples/triage/exports.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples') diff --git a/examples/triage/exports.cpp b/examples/triage/exports.cpp index 97bdcc75..6d7a3de7 100644 --- a/examples/triage/exports.cpp +++ b/examples/triage/exports.cpp @@ -14,12 +14,12 @@ GenericExportsModel::GenericExportsModel(BinaryViewRef data) m_sortOrder = Qt::AscendingOrder; for (auto& sym: data->GetSymbolsOfType(FunctionSymbol)) { - if (sym->GetBinding() == GlobalBinding) + if ((sym->GetBinding() == GlobalBinding) || (sym->GetBinding() == WeakBinding)) m_allEntries.push_back(sym); } for (auto& sym: data->GetSymbolsOfType(DataSymbol)) { - if (sym->GetBinding() == GlobalBinding) + if ((sym->GetBinding() == GlobalBinding) || (sym->GetBinding() == WeakBinding)) m_allEntries.push_back(sym); } if (data->GetTypeName() == "PE") -- cgit v1.3.1