]> granicus.if.org Git - file/commitdiff
keep "[not] stripped" last since some scripts expect it to be there.
authorChristos Zoulas <christos@zoulas.com>
Tue, 14 Feb 2017 12:56:48 +0000 (12:56 +0000)
committerChristos Zoulas <christos@zoulas.com>
Tue, 14 Feb 2017 12:56:48 +0000 (12:56 +0000)
src/readelf.c

index d1b71cf7189076f8a18669eda2eaa41466bbb0f4..3695c890bb38eef45e91f79cd68d5c2cce26cbf2 100644 (file)
@@ -27,7 +27,7 @@
 #include "file.h"
 
 #ifndef lint
-FILE_RCSID("@(#)$File: readelf.c,v 1.131 2017/02/10 18:14:01 christos Exp $")
+FILE_RCSID("@(#)$File: readelf.c,v 1.132 2017/02/11 18:12:03 christos Exp $")
 #endif
 
 #ifdef BUILTIN_ELF
@@ -1373,12 +1373,12 @@ doshn(struct magic_set *ms, int clazz, int swap, int fd, off_t off, int num,
                }
        }
 
-       if (file_printf(ms, ", %sstripped", stripped ? "" : "not ") == -1)
-               return -1;
        if (has_debug_info) {
                if (file_printf(ms, ", with debug_info") == -1)
                        return -1;
        }
+       if (file_printf(ms, ", %sstripped", stripped ? "" : "not ") == -1)
+               return -1;
        if (cap_hw1) {
                const cap_desc_t *cdp;
                switch (mach) {