From 93e630d08ed9382608d4dabb56f944dc62857671 Mon Sep 17 00:00:00 2001 From: Eli Bendersky Date: Wed, 16 Nov 2011 07:22:57 +0200 Subject: [PATCH] fix the 'key to flags' text printed after section enumeration. probably to match a newer readelf version --- scripts/readelf.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/readelf.py b/scripts/readelf.py index 13bd4a7..5b8981c 100755 --- a/scripts/readelf.py +++ b/scripts/readelf.py @@ -235,8 +235,12 @@ class ReadElf(object): section['sh_addralign'])) self._emitline('Key to Flags:') - self._emitline(' W (write), A (alloc), X (execute), M (merge), S (strings)') - self._emitline(' I (info), L (link order), G (group), x (unknown)') + self._emit(' W (write), A (alloc), X (execute), M (merge), S (strings)') + if self.elffile['e_machine'] in ('EM_X86_64', 'EM_L10M'): + self._emitline(', l (large)') + else: + self._emitline() + self._emitline(' I (info), L (link order), G (group), T (TLS), E (exclude), x (unknown)') self._emitline(' O (extra OS processing required) o (OS specific), p (processor specific)') def display_symbol_tables(self): -- 2.30.2