loader: Load weak symbols for function tracing

This commit is contained in:
Deyuan Guo 2013-07-15 18:08:57 -04:00
parent 5ba9e7afe2
commit fb29dcf378

View file

@ -411,7 +411,9 @@ ElfObject::loadGlobalSymbols(SymbolTable *symtab, Addr addrMask)
bool
ElfObject::loadLocalSymbols(SymbolTable *symtab, Addr addrMask)
{
return loadSomeSymbols(symtab, STB_LOCAL, addrMask);
bool found_local = loadSomeSymbols(symtab, STB_LOCAL, addrMask);
bool found_weak = loadSomeSymbols(symtab, STB_WEAK, addrMask);
return found_local || found_weak;
}
bool