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
This commit is contained in:
parent
d6c92cdb3c
commit
8d75e4ac3f
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue