projects
/
pyelftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3edefab
)
minor tweak in output formatting for symbols
author
Eli Bendersky
<eliben@gmail.com>
Fri, 16 Sep 2011 12:20:20 +0000
(15:20 +0300)
committer
Eli Bendersky
<eliben@gmail.com>
Fri, 16 Sep 2011 12:20:20 +0000
(15:20 +0300)
scripts/readelf.py
patch
|
blob
|
history
diff --git
a/scripts/readelf.py
b/scripts/readelf.py
index 34b4b93300df41e00fa9ce720955c8dbb05fd17e..c7f0a8f0d3d0e0be6ca5456dc2aba5c409eb5e15 100755
(executable)
--- a/
scripts/readelf.py
+++ b/
scripts/readelf.py
@@
-243,7
+243,8
@@
class ReadElf(object):
self._emitline(' Num: Value Size Type Bind Vis Ndx Name')
for nsym, symbol in enumerate(section.iter_symbols()):
- self._emitline('%6d: %s %5d %-7s %-6s %-7s %4s %s' % (
+ # symbol names are truncated to 25 chars, similarly to readelf
+ self._emitline('%6d: %s %5d %-7s %-6s %-7s %4s %.25s' % (
nsym,
self._format_hex(symbol['st_value'], fullhex=True, lead0x=False),
symbol['st_size'],