From: Eli Bendersky <eliben@gmail.com> Date: Wed, 16 Nov 2011 05:22:57 +0000 (+0200) Subject: fix the 'key to flags' text printed after section enumeration. probably to match... X-Git-Tag: v0.10~78 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=93e630d08ed9382608d4dabb56f944dc62857671;p=pyelftools.git fix the 'key to flags' text printed after section enumeration. probably to match a newer readelf version --- 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):