From: Eli Bendersky Date: Fri, 16 Sep 2011 12:20:20 +0000 (+0300) Subject: minor tweak in output formatting for symbols X-Git-Tag: v0.10~121 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b6fa3659e244e5a273613f0ac28cd1f62074b565;p=pyelftools.git minor tweak in output formatting for symbols --- diff --git a/scripts/readelf.py b/scripts/readelf.py index 34b4b93..c7f0a8f 100755 --- 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'],