simpler check for syminfo entries that are not displayed by elfdump
authorYann Rouillard <yann@pleiades.fr.eu.org>
Sun, 19 May 2013 16:43:22 +0000 (18:43 +0200)
committerYann Rouillard <yann@pleiades.fr.eu.org>
Sun, 19 May 2013 16:43:22 +0000 (18:43 +0200)
scripts/elfdump.py

index 2891bb9aa5287d04aba60aaf7b0a0395cc867d32..8cf66f1d42392cc0962a7519b271e5a41a38fc5c 100755 (executable)
@@ -88,9 +88,7 @@ class Elfdump(object):
             for nsym, syminfo in enumerate(section.iter_symbols(), start=1):
 
                 # elfdump doesn't display anything for this kind of symbols
-                symbol = symtable.get_symbol(nsym)
-                if (symbol['st_info']['type'] == 'STT_NOTYPE' and
-                        symbol['st_shndx'] == 'SHN_UNDEF'):
+                if not (syminfo['si_flags'] or syminfo['si_boundto']):
                     continue
 
                 index = ''