summaryrefslogtreecommitdiff
path: root/src/base/loader/symtab.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/base/loader/symtab.hh')
-rw-r--r--src/base/loader/symtab.hh4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/base/loader/symtab.hh b/src/base/loader/symtab.hh
index 403cb13ac..bd0406b74 100644
--- a/src/base/loader/symtab.hh
+++ b/src/base/loader/symtab.hh
@@ -42,7 +42,7 @@
class SymbolTable
{
public:
- typedef std::map<Addr, std::string> ATable;
+ typedef std::multimap<Addr, std::string> ATable;
typedef std::map<std::string, Addr> STable;
private:
@@ -87,6 +87,8 @@ class SymbolTable
if (i == addrTable.end())
return false;
+ // There are potentially multiple symbols that map to the same
+ // address. For simplicity, just return the first one.
symbol = (*i).second;
return true;
}