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. */
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"