svn commit: r207819 - stable/7/usr.sbin/pmcstat
Fabien Thomas
fabient at FreeBSD.org
Sun May 9 15:41:27 UTC 2010
Author: fabient
Date: Sun May 9 15:41:27 2010
New Revision: 207819
URL: http://svn.freebsd.org/changeset/base/207819
Log:
MFC r207731:
Exclude undefined symbol from ELF file when doing function resolve.
Modified:
stable/7/usr.sbin/pmcstat/pmcstat_log.c
Directory Properties:
stable/7/usr.sbin/pmcstat/ (props changed)
Modified: stable/7/usr.sbin/pmcstat/pmcstat_log.c
==============================================================================
--- stable/7/usr.sbin/pmcstat/pmcstat_log.c Sun May 9 15:39:49 2010 (r207818)
+++ stable/7/usr.sbin/pmcstat/pmcstat_log.c Sun May 9 15:41:27 2010 (r207819)
@@ -539,6 +539,8 @@ pmcstat_image_add_symbols(struct pmcstat
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. */
More information about the svn-src-all
mailing list