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:
Soren Sandmann
2007-10-22 04:41:27 +00:00
committed by Søren Sandmann Pedersen
parent e33a7f9a2f
commit a7b39cf517
2 changed files with 48 additions and 19 deletions

View File

@ -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