From: Maynard J. <may...@us...> - 2009-06-23 14:39:48
|
Update of /cvsroot/oprofile/oprofile/libutil++ In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv3627/libutil++ Modified Files: bfd_support.cpp Log Message: Discard symbols from sections that do not have SEC_LOAD flag set Index: bfd_support.cpp =================================================================== RCS file: /cvsroot/oprofile/oprofile/libutil++/bfd_support.cpp,v retrieving revision 1.14 retrieving revision 1.15 diff -u -p -d -r1.14 -r1.15 --- bfd_support.cpp 5 Jun 2009 15:46:20 -0000 1.14 +++ bfd_support.cpp 23 Jun 2009 14:39:33 -0000 1.15 @@ -367,6 +367,9 @@ bool interesting_symbol(asymbol * sym) if (sym->flags & BSF_SECTION_SYM) return false; + if (!sym->section->flags & SEC_LOAD) + return false; + return true; } |