Merge pull request #4160 from sepalani/symbolmap
Map: Prevents symbols from being stripped
This commit is contained in:
commit
9e1cfbee0e
|
@ -346,16 +346,6 @@ bool PPCSymbolDB::LoadMap(const std::string& filename, bool bad)
|
||||||
strcpy(name, namepos);
|
strcpy(name, namepos);
|
||||||
name[strlen(name) - 1] = 0;
|
name[strlen(name) - 1] = 0;
|
||||||
|
|
||||||
// we want the function names only .... TODO: or do we really? aren't we wasting information
|
|
||||||
// here?
|
|
||||||
for (size_t i = 0; i < strlen(name); i++)
|
|
||||||
{
|
|
||||||
if (name[i] == ' ')
|
|
||||||
name[i] = 0x00;
|
|
||||||
if (name[i] == '(')
|
|
||||||
name[i] = 0x00;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Check if this is a valid entry.
|
// Check if this is a valid entry.
|
||||||
if (strcmp(name, ".text") != 0 && strcmp(name, ".init") != 0 && strlen(name) > 0)
|
if (strcmp(name, ".text") != 0 && strcmp(name, ".init") != 0 && strlen(name) > 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue