| 1 | /* |
1 | /* |
| 2 | * Copyright 2008 Gentoo Foundation |
2 | * Copyright 2008-2012 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/scanmacho.c,v 1.22 2011/09/27 19:58:09 vapier Exp $ |
4 | * $Header: /var/cvsroot/gentoo-projects/pax-utils/scanmacho.c,v 1.23 2012/11/04 07:26:24 vapier Exp $ |
| 5 | * |
5 | * |
| 6 | * based on scanelf by: |
6 | * based on scanelf by: |
| 7 | * Copyright 2003-2007 Ned Ludd - <solar@gentoo.org> |
7 | * Copyright 2003-2012 Ned Ludd - <solar@gentoo.org> |
| 8 | * Copyright 2004-2007 Mike Frysinger - <vapier@gentoo.org> |
8 | * Copyright 2004-2012 Mike Frysinger - <vapier@gentoo.org> |
| 9 | * for Darwin specific fun: |
9 | * for Darwin specific fun: |
| 10 | * 2008-2010 Fabian Groffen - <grobian@gentoo.org> |
10 | * 2008-2012 Fabian Groffen - <grobian@gentoo.org> |
| 11 | */ |
11 | */ |
| 12 | |
12 | |
| 13 | static const char rcsid[] = "$Id: scanmacho.c,v 1.22 2011/09/27 19:58:09 vapier Exp $"; |
13 | static const char rcsid[] = "$Id: scanmacho.c,v 1.23 2012/11/04 07:26:24 vapier Exp $"; |
| 14 | const char argv0[] = "scanmacho"; |
14 | const char argv0[] = "scanmacho"; |
| 15 | |
15 | |
| 16 | #include "paxinc.h" |
16 | #include "paxinc.h" |
| 17 | |
17 | |
| 18 | #define IS_MODIFIER(c) (c == '%' || c == '#' || c == '+') |
18 | #define IS_MODIFIER(c) (c == '%' || c == '#' || c == '+') |