svn commit: r207818 - stable/8/usr.sbin/pmcstat
Fabien Thomas
fabient at FreeBSD.org
Sun May 9 15:39:49 UTC 2010
Author: fabient
Date: Sun May 9 15:39:49 2010
New Revision: 207818
URL: http://svn.freebsd.org/changeset/base/207818
Log:
MFC r207731:
Exclude undefined symbol from ELF file when doing function resolve.
Modified:
stable/8/usr.sbin/pmcstat/pmcstat_log.c
Directory Properties:
stable/8/usr.sbin/pmcstat/ (props changed)
Modified: stable/8/usr.sbin/pmcstat/pmcstat_log.c
==============================================================================
--- stable/8/usr.sbin/pmcstat/pmcstat_log.c Sun May 9 15:00:30 2010 (r207817)
+++ stable/8/usr.sbin/pmcstat/pmcstat_log.c Sun May 9 15:39:49 2010 (r207818)
@@ -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-stable
mailing list