mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-10 07:00:53 +00:00
Don't discard weak symbols.
2007-10-22 Soren Sandmann <sandmann@daimi.au.dk> * elfparser.c (read_table): Don't discard weak symbols. * elfparser.c (elf_parser_lookup_symbol): If the symbol has unknown size, don't check that the address is in range. svn path=/trunk/; revision=381
This commit is contained in:
committed by
Søren Sandmann Pedersen
parent
e33a7f9a2f
commit
a7b39cf517
@ -353,19 +353,24 @@ const BinSymbol *
|
||||
bin_file_lookup_symbol (BinFile *bin_file,
|
||||
gulong address)
|
||||
{
|
||||
#if 0
|
||||
g_print ("-=-=-=- \n");
|
||||
#endif
|
||||
|
||||
if (bin_file->elf)
|
||||
{
|
||||
#if 0
|
||||
g_print ("bin file lookup lookup %d\n", address);
|
||||
#endif
|
||||
|
||||
address -= bin_file->text_offset;
|
||||
|
||||
const ElfSym *sym = elf_parser_lookup_symbol (bin_file->elf, address);
|
||||
|
||||
#if 0
|
||||
g_print ("lookup %d in %s\n", address, bin_file->filename);
|
||||
#endif
|
||||
|
||||
const ElfSym *sym = elf_parser_lookup_symbol (bin_file->elf, address);
|
||||
|
||||
if (sym)
|
||||
{
|
||||
#if 0
|
||||
|
||||
Reference in New Issue
Block a user