summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristos Zoulas <christos@zoulas.com>2017-02-14 12:56:48 +0000
committerChristos Zoulas <christos@zoulas.com>2017-02-14 12:56:48 +0000
commit50b75abad3345fed90d0d36bf14e5d05e7d9d220 (patch)
tree8635d51c7ce07d115658e3d95da09874cf23652c
parent24d9c399d52b972bd0158d09b77945033d392f59 (diff)
downloadfile-git-50b75abad3345fed90d0d36bf14e5d05e7d9d220.tar.gz
keep "[not] stripped" last since some scripts expect it to be there.
-rw-r--r--src/readelf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/readelf.c b/src/readelf.c
index f97752be..0e73e246 100644
--- a/src/readelf.c
+++ b/src/readelf.c
@@ -27,7 +27,7 @@
#include "file.h"
#ifndef lint
-FILE_RCSID("@(#)$File: readelf.c,v 1.132 2017/02/11 18:12:03 christos Exp $")
+FILE_RCSID("@(#)$File: readelf.c,v 1.133 2017/02/14 12:56:48 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) {