summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2020-06-04 14:21:39 -0400
committerPeter LaFosse <peter@vector35.com>2020-06-23 09:02:48 -0400
commit04c56ecbe54b34106038fce67c088242eedc1669 (patch)
treeb18a8c6021f1ff71b507fa86740f1431110ed41d /examples
parent6c819d1f0e00dad14de96aaa90f9643e710face4 (diff)
Weak symbols should also display as exported
Diffstat (limited to 'examples')
-rw-r--r--examples/triage/exports.cpp4
1 files changed, 2 insertions, 2 deletions
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")