projects
/
pyelftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b69e7a9
)
simpler check for syminfo entries that are not displayed by elfdump
author
Yann Rouillard
<yann@pleiades.fr.eu.org>
Sun, 19 May 2013 16:43:22 +0000
(18:43 +0200)
committer
Yann Rouillard
<yann@pleiades.fr.eu.org>
Sun, 19 May 2013 16:43:22 +0000
(18:43 +0200)
scripts/elfdump.py
patch
|
blob
|
history
diff --git
a/scripts/elfdump.py
b/scripts/elfdump.py
index 2891bb9aa5287d04aba60aaf7b0a0395cc867d32..8cf66f1d42392cc0962a7519b271e5a41a38fc5c 100755
(executable)
--- a/
scripts/elfdump.py
+++ b/
scripts/elfdump.py
@@
-88,9
+88,7
@@
class Elfdump(object):
for nsym, syminfo in enumerate(section.iter_symbols(), start=1):
# elfdump doesn't display anything for this kind of symbols
- symbol = symtable.get_symbol(nsym)
- if (symbol['st_info']['type'] == 'STT_NOTYPE' and
- symbol['st_shndx'] == 'SHN_UNDEF'):
+ if not (syminfo['si_flags'] or syminfo['si_boundto']):
continue
index = ''