From: Yann Rouillard Date: Sun, 19 May 2013 16:43:22 +0000 (+0200) Subject: simpler check for syminfo entries that are not displayed by elfdump X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=121174baccfc46599b62c6c4fdb87067f6fac128;p=pyelftools.git simpler check for syminfo entries that are not displayed by elfdump --- 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 = ''