elfdump now correctly displays syminfo entries with filter attribute
authorYann Rouillard <yann@pleiades.fr.eu.org>
Fri, 10 May 2013 02:19:06 +0000 (04:19 +0200)
committerYann Rouillard <yann@pleiades.fr.eu.org>
Fri, 10 May 2013 02:19:06 +0000 (04:19 +0200)
scripts/elfdump.py

index a7a14dadf1ff665fc5f6b5bbcf8dace61d839219..b96f17c33135798cd7649a6015e322d7d77aab37 100755 (executable)
@@ -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