projects
/
pyelftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8d2cf7
)
Fix formatting of some dynamic tag fields to match readelf
author
Eli Bendersky
<eliben@gmail.com>
Sun, 31 Mar 2013 14:58:21 +0000
(07:58 -0700)
committer
Eli Bendersky
<eliben@gmail.com>
Sun, 31 Mar 2013 14:58:21 +0000
(07:58 -0700)
scripts/readelf.py
patch
|
blob
|
history
diff --git
a/scripts/readelf.py
b/scripts/readelf.py
index 91c0e75dd3df5296529e19219b359dd0872d9e73..c1ed3fc8d2146bd1610b7366b64d76436f7b3464 100755
(executable)
--- 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)