Fixed loading of symbols from libraries.
This commit is contained in:
parent
977ec4d99d
commit
cc5365836a
|
@ -980,7 +980,7 @@ DEBUG_ParseStabs(char * addr, unsigned int load_offset,
|
||||||
* sucks up swap space like crazy.
|
* sucks up swap space like crazy.
|
||||||
*/
|
*/
|
||||||
curr_func = DEBUG_AddSymbol( symname, &new_value, currpath,
|
curr_func = DEBUG_AddSymbol( symname, &new_value, currpath,
|
||||||
SYM_WINE | SYM_FUNC);
|
SYM_WINE | SYM_FUNC | SYM_INVALID);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -1161,7 +1161,7 @@ DEBUG_ProcessElfSymtab(char * addr, unsigned int load_offset,
|
||||||
new_value.type = NULL;
|
new_value.type = NULL;
|
||||||
new_value.addr.off = load_offset + symp->st_value;
|
new_value.addr.off = load_offset + symp->st_value;
|
||||||
new_value.cookie = DV_TARGET;
|
new_value.cookie = DV_TARGET;
|
||||||
flags = SYM_WINE | (ELF32_ST_BIND(symp->st_info) == STT_FUNC
|
flags = SYM_WINE | ((ELF32_ST_TYPE(symp->st_info) == STT_FUNC)
|
||||||
? SYM_FUNC : SYM_DATA);
|
? SYM_FUNC : SYM_DATA);
|
||||||
if( ELF32_ST_BIND(symp->st_info) == STB_GLOBAL )
|
if( ELF32_ST_BIND(symp->st_info) == STB_GLOBAL )
|
||||||
curr_sym = DEBUG_AddSymbol( symname, &new_value, NULL, flags );
|
curr_sym = DEBUG_AddSymbol( symname, &new_value, NULL, flags );
|
||||||
|
|
Loading…
Reference in New Issue