From fb29dcf378374bf1e5c93afbe002e66e882ca21d Mon Sep 17 00:00:00 2001 From: Deyuan Guo Date: Mon, 15 Jul 2013 18:08:57 -0400 Subject: [PATCH] loader: Load weak symbols for function tracing --- src/base/loader/elf_object.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.30.2