summaryrefslogtreecommitdiff
path: root/src/base/loader
diff options
context:
space:
mode:
authorAli Saidi <saidi@eecs.umich.edu>2007-01-16 19:09:27 -0500
committerAli Saidi <saidi@eecs.umich.edu>2007-01-16 19:09:27 -0500
commit8d75e4ac3f3eb06733e85079e852f64576553519 (patch)
tree66aa19bcce1221f7d2e928dcf537120420ca609f /src/base/loader
parentd6c92cdb3c9a8e13fddb58c89f13daac34390522 (diff)
downloadgem5-8d75e4ac3f3eb06733e85079e852f64576553519.tar.xz
Don't add symbols for loaded files to symbol table since they are pretty much meaningless with all the copying that goes on
--HG-- extra : convert_revision : 4d2c1bb72c0344d78d9c3d5958feb3de247102a0
Diffstat (limited to 'src/base/loader')
-rw-r--r--src/base/loader/raw_object.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/base/loader/raw_object.cc b/src/base/loader/raw_object.cc
index 2a52b0d6e..d002d9005 100644
--- a/src/base/loader/raw_object.cc
+++ b/src/base/loader/raw_object.cc
@@ -63,19 +63,19 @@ RawObject::RawObject(const std::string &_filename, int _fd, size_t _len,
bool
RawObject::loadGlobalSymbols(SymbolTable *symtab, Addr addrMask)
{
- int fnameStart = filename.rfind('/',filename.size()) + 1;
+/* int fnameStart = filename.rfind('/',filename.size()) + 1;
int extStart = filename.rfind('.',filename.size());
symtab->insert(text.baseAddr & addrMask, filename.substr(fnameStart,
- extStart-fnameStart) + "_start");
+ extStart-fnameStart) + "_start");*/
return true;
}
bool
RawObject::loadLocalSymbols(SymbolTable *symtab, Addr addrMask)
{
- int fnameStart = filename.rfind('/',filename.size()) + 1;
+/* int fnameStart = filename.rfind('/',filename.size()) + 1;
int extStart = filename.rfind('.',filename.size());
symtab->insert(text.baseAddr & addrMask, filename.substr(fnameStart,
- extStart-fnameStart) + "_start");
+ extStart-fnameStart) + "_start");*/
return true;
}