From 121174baccfc46599b62c6c4fdb87067f6fac128 Mon Sep 17 00:00:00 2001 From: Yann Rouillard Date: Sun, 19 May 2013 18:43:22 +0200 Subject: [PATCH] simpler check for syminfo entries that are not displayed by elfdump --- scripts/elfdump.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/elfdump.py b/scripts/elfdump.py index 2891bb9..8cf66f1 100755 --- a/scripts/elfdump.py +++ b/scripts/elfdump.py @@ -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 = '' -- 2.30.2