| 1 | /* |
1 | /* |
| 2 | * Copyright 2003-2007 Gentoo Foundation |
2 | * Copyright 2003-2007 Gentoo Foundation |
| 3 | * Distributed under the terms of the GNU General Public License v2 |
3 | * Distributed under the terms of the GNU General Public License v2 |
| 4 | * $Header: /var/cvsroot/gentoo-projects/pax-utils/scanelf.c,v 1.215 2009/12/03 08:01:45 vapier Exp $ |
4 | * $Header: /var/cvsroot/gentoo-projects/pax-utils/scanelf.c,v 1.216 2009/12/20 20:25:04 vapier Exp $ |
| 5 | * |
5 | * |
| 6 | * Copyright 2003-2007 Ned Ludd - <solar@gentoo.org> |
6 | * Copyright 2003-2007 Ned Ludd - <solar@gentoo.org> |
| 7 | * Copyright 2004-2007 Mike Frysinger - <vapier@gentoo.org> |
7 | * Copyright 2004-2007 Mike Frysinger - <vapier@gentoo.org> |
| 8 | */ |
8 | */ |
| 9 | |
9 | |
| 10 | static const char *rcsid = "$Id: scanelf.c,v 1.215 2009/12/03 08:01:45 vapier Exp $"; |
10 | static const char *rcsid = "$Id: scanelf.c,v 1.216 2009/12/20 20:25:04 vapier Exp $"; |
| 11 | const char * const argv0 = "scanelf"; |
11 | const char * const argv0 = "scanelf"; |
| 12 | |
12 | |
| 13 | #include "paxinc.h" |
13 | #include "paxinc.h" |
| 14 | |
14 | |
| 15 | #define IS_MODIFIER(c) (c == '%' || c == '#' || c == '+') |
15 | #define IS_MODIFIER(c) (c == '%' || c == '#' || c == '+') |
| … | |
… | |
| 1801 | "Print Endianness", |
1801 | "Print Endianness", |
| 1802 | "Print OSABI", |
1802 | "Print OSABI", |
| 1803 | "Print EABI (EM_ARM Only)", |
1803 | "Print EABI (EM_ARM Only)", |
| 1804 | "Print only ELF files matching octal permissions", |
1804 | "Print only ELF files matching octal permissions", |
| 1805 | "Print ELF file size", |
1805 | "Print ELF file size", |
| 1806 | "Print all scanned info (-x -e -t -r -b)\n", |
1806 | "Print all useful/simple info\n", |
| 1807 | "Only output 'bad' things", |
1807 | "Only output 'bad' things", |
| 1808 | "Be verbose (can be specified more than once)", |
1808 | "Be verbose (can be specified more than once)", |
| 1809 | "Use specified format for output", |
1809 | "Use specified format for output", |
| 1810 | "Read input stream from a filename", |
1810 | "Read input stream from a filename", |
| 1811 | "Write output stream to a filename", |
1811 | "Write output stream to a filename", |