Fix formatting of some dynamic tag fields to match readelf
authorEli Bendersky <eliben@gmail.com>
Sun, 31 Mar 2013 14:58:21 +0000 (07:58 -0700)
committerEli Bendersky <eliben@gmail.com>
Sun, 31 Mar 2013 14:58:21 +0000 (07:58 -0700)
scripts/readelf.py

index 91c0e75dd3df5296529e19219b359dd0872d9e73..c1ed3fc8d2146bd1610b7366b64d76436f7b3464 100755 (executable)
@@ -310,7 +310,8 @@ class ReadElf(object):
                 elif (tag.entry.d_tag.endswith('SZ') or
                       tag.entry.d_tag.endswith('ENT')):
                     parsed = '%i (bytes)' % tag['d_val']
-                elif tag.entry.d_tag.endswith('NUM'):
+                elif (tag.entry.d_tag.endswith('NUM') or
+                      tag.entry.d_tag.endswith('COUNT')):
                     parsed = '%i' % tag['d_val']
                 elif tag.entry.d_tag == 'DT_PLTREL':
                     s = describe_dyn_tag(tag.entry.d_val)