From 96698c559d492aa87ef92e649aabab76e428cf59 Mon Sep 17 00:00:00 2001 From: Yann Rouillard Date: Fri, 10 May 2013 04:21:03 +0200 Subject: [PATCH] fix syminfo flags description: S flag (capability) is always first --- elftools/elf/descriptions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2