From b6fa3659e244e5a273613f0ac28cd1f62074b565 Mon Sep 17 00:00:00 2001 From: Eli Bendersky Date: Fri, 16 Sep 2011 15:20:20 +0300 Subject: [PATCH] minor tweak in output formatting for symbols --- scripts/readelf.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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'], -- 2.30.2