From bfb1bf537096106d5db89b050c8bc90d09249562 Mon Sep 17 00:00:00 2001 From: Eli Bendersky Date: Sun, 31 Mar 2013 07:58:21 -0700 Subject: [PATCH] Fix formatting of some dynamic tag fields to match readelf --- scripts/readelf.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.30.2