fix syminfo flags description: S flag (capability) is always first
authorYann Rouillard <yann@pleiades.fr.eu.org>
Fri, 10 May 2013 02:21:03 +0000 (04:21 +0200)
committerYann Rouillard <yann@pleiades.fr.eu.org>
Fri, 10 May 2013 02:21:03 +0000 (04:21 +0200)
elftools/elf/descriptions.py

index 2c32b1f71ab919a0c7b1355fad57635fbf7076d8..f6ee40cfb310092c51ad22362ef8a727cf27ffef 100644 (file)
@@ -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