MFC r207731:

Exclude undefined symbol from ELF file when doing function resolve.
This commit is contained in:
Fabien Thomas 2010-05-09 15:39:49 +00:00
parent 23dfb3511d
commit 2a31f8e49e

View File

@ -539,6 +539,8 @@ pmcstat_image_add_symbols(struct pmcstat_image *image, Elf *e,
return;
if (GELF_ST_TYPE(sym.st_info) != STT_FUNC)
continue;
if (sym.st_shndx == STN_UNDEF)
continue;
if (!firsttime && pmcstat_symbol_search(image, sym.st_value))
continue; /* We've seen this symbol already. */