From: Deyuan Guo Date: Mon, 15 Jul 2013 22:08:57 +0000 (-0400) Subject: loader: Load weak symbols for function tracing X-Git-Tag: stable_2014_02_15~193 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fb29dcf378374bf1e5c93afbe002e66e882ca21d;p=gem5.git loader: Load weak symbols for function tracing --- diff --git a/src/base/loader/elf_object.cc b/src/base/loader/elf_object.cc index b6253adbe..6d4c29776 100644 --- a/src/base/loader/elf_object.cc +++ b/src/base/loader/elf_object.cc @@ -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