mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-04 19:53:48 +01:00
Rewrite SymbolTable
This commit is contained in:
1 parent
33da416a82
commit
5844d0107b
13 files changed
+527
-625
No files matched your search
@@ -592,18 +592,18 @@ bool ElfReader::LoadSymbols()
|
||||
|
||||
if (bRelocate)
|
||||
value += sectionAddrs[sectionIndex];
|
||||
SymbolType symtype = ST_DATA;
|
||||
|
||||
switch (type)
|
||||
{
|
||||
case STT_OBJECT:
|
||||
symtype = ST_DATA; break;
|
||||
symbolMap.AddData(value,size,DATATYPE_BYTE);
|
||||
break;
|
||||
case STT_FUNC:
|
||||
symtype = ST_FUNCTION; break;
|
||||
symbolMap.AddFunction(name,value,size);
|
||||
break;
|
||||
default:
|
||||
continue;
|
||||
}
|
||||
symbolMap.AddSymbol(name, value, size, symtype);
|
||||
hasSymbols = true;
|
||||
//...
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user