From: Yann Rouillard Date: Fri, 10 May 2013 02:21:03 +0000 (+0200) Subject: fix syminfo flags description: S flag (capability) is always first X-Git-Tag: v0.22~62 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=96698c559d492aa87ef92e649aabab76e428cf59;p=pyelftools.git fix syminfo flags description: S flag (capability) is always first --- diff --git a/elftools/elf/descriptions.py b/elftools/elf/descriptions.py index 2c32b1f..f6ee40c 100644 --- a/elftools/elf/descriptions.py +++ b/elftools/elf/descriptions.py @@ -87,6 +87,7 @@ def describe_dyn_tag(x): def describe_syminfo_flags(x): s = '' for flag in ( + SYMINFO_FLAGS.SYMINFO_FLG_CAP, SYMINFO_FLAGS.SYMINFO_FLG_DIRECT, SYMINFO_FLAGS.SYMINFO_FLG_DIRECTBIND, SYMINFO_FLAGS.SYMINFO_FLG_COPY, @@ -95,7 +96,6 @@ def describe_syminfo_flags(x): SYMINFO_FLAGS.SYMINFO_FLG_AUXILIARY, SYMINFO_FLAGS.SYMINFO_FLG_FILTER, SYMINFO_FLAGS.SYMINFO_FLG_INTERPOSE, - SYMINFO_FLAGS.SYMINFO_FLG_CAP, SYMINFO_FLAGS.SYMINFO_FLG_DEFERRED): s += _DESCR_SYMINFO_FLAGS[flag] if (x & flag) else '' return s