From: Yann Rouillard Date: Fri, 10 May 2013 02:19:06 +0000 (+0200) Subject: elfdump now correctly displays syminfo entries with filter attribute X-Git-Tag: v0.22~63 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=11c1c76e1391cbcf6c3ea901c6bc742459a3554e;p=pyelftools.git elfdump now correctly displays syminfo entries with filter attribute --- diff --git a/scripts/elfdump.py b/scripts/elfdump.py index a7a14da..b96f17c 100755 --- a/scripts/elfdump.py +++ b/scripts/elfdump.py @@ -103,7 +103,10 @@ class Elfdump(object): boundto = '' else: dyn_tag = dyntable.get_tag(syminfo['si_boundto']) - boundto = bytes2str(dyn_tag.needed) + if syminfo['si_flags'] & SYMINFO_FLAGS.SYMINFO_FLG_FILTER: + boundto = bytes2str(dyn_tag.sunw_filter) + else: + boundto = bytes2str(dyn_tag.needed) index = '[%d]' % syminfo['si_boundto'] # syminfo names are truncated to 24 chars, similarly to elfdump