From: Eli Bendersky Date: Sun, 31 Mar 2013 14:58:21 +0000 (-0700) Subject: Fix formatting of some dynamic tag fields to match readelf X-Git-Tag: v0.21~14 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bfb1bf537096106d5db89b050c8bc90d09249562;p=pyelftools.git Fix formatting of some dynamic tag fields to match readelf --- diff --git a/scripts/readelf.py b/scripts/readelf.py index 91c0e75..c1ed3fc 100755 --- a/scripts/readelf.py +++ b/scripts/readelf.py @@ -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)