diff options
-rw-r--r-- | macho.h | 13 | ||||
-rw-r--r-- | paxmacho.c | 6 | ||||
-rw-r--r-- | scanmacho.c | 6 |
3 files changed, 11 insertions, 14 deletions
@@ -1,7 +1,7 @@ /* - * Copyright 2008 Gentoo Foundation + * Copyright 2008-2010 Gentoo Foundation * Distributed under the terms of the GNU General Public License v2 - * $Header: /var/cvsroot/gentoo-projects/pax-utils/macho.h,v 1.7 2008/12/30 12:34:28 vapier Exp $ + * $Header: /var/cvsroot/gentoo-projects/pax-utils/macho.h,v 1.8 2010/04/04 10:03:33 grobian Exp $ */ #ifndef _MACHO_H @@ -156,8 +156,7 @@ struct load_command symbols to the original source code files from which the symbols were generated. */ #define LC_DYSYMTAB 0xb /* Specifies additional symbol table - information used by the dynamic linker. - */ + information used by the dynamic linker. */ #define LC_THREAD 0x4 #define LC_UNIXTHREAD 0x5 /* For an executable file, the LC_UNIXTHREAD command defines the initial thread state @@ -182,8 +181,7 @@ struct load_command by the linker’s -init option). */ #define LC_ROUTINES_64 0x1a /* Contains the address of the shared library 64-bit initialization routine - (specified by the linker’s -init option). - */ + (specified by the linker’s -init option). */ #define LC_TWOLEVEL_HINTS 0x16 /* Contains the two-level namespace lookup hint table. */ #define LC_SUB_FRAMEWORK 0x12/* Identifies this file as the @@ -204,8 +202,7 @@ struct load_command another framework or bundle to link against it by including an LC_SUB_CLIENT load command containing the name of the - framework or a client name for a bundle. - */ + framework or a client name for a bundle. */ union lc_str { @@ -1,11 +1,11 @@ /* * Copyright 2003-2008 Gentoo Foundation * Distributed under the terms of the GNU General Public License v2 - * $Header: /var/cvsroot/gentoo-projects/pax-utils/paxmacho.c,v 1.17 2010/01/15 11:06:33 vapier Exp $ + * $Header: /var/cvsroot/gentoo-projects/pax-utils/paxmacho.c,v 1.18 2010/04/04 10:03:33 grobian Exp $ * * Copyright 2005-2007 Ned Ludd - <solar@gentoo.org> * Copyright 2005-2007 Mike Frysinger - <vapier@gentoo.org> - * 2008 Fabian Groffen - <grobian@gentoo.org> + * 2008-2010 Fabian Groffen - <grobian@gentoo.org> */ #include "paxinc.h" @@ -20,7 +20,6 @@ static const char *STR_X86_64 = "x86_64"; static const char *STR_ARM = "arm"; /* iPhone */ static const char *STR_UNKNOWN = "unknown"; -#define QUERY(n) { #n, n } typedef struct { const char *str; int value; @@ -36,6 +35,7 @@ static inline const char *find_pairtype(pairtype *pt, int type) } /* translate misc mach-o MH_ defines */ +#define QUERY(n) { #n, n } static pairtype macho_mh_type[] = { QUERY(MH_OBJECT), QUERY(MH_EXECUTE), diff --git a/scanmacho.c b/scanmacho.c index 7c137a8..c04187e 100644 --- a/scanmacho.c +++ b/scanmacho.c @@ -1,16 +1,16 @@ /* * Copyright 2008 Gentoo Foundation * Distributed under the terms of the GNU General Public License v2 - * $Header: /var/cvsroot/gentoo-projects/pax-utils/scanmacho.c,v 1.17 2010/01/15 11:06:33 vapier Exp $ + * $Header: /var/cvsroot/gentoo-projects/pax-utils/scanmacho.c,v 1.18 2010/04/04 10:03:33 grobian Exp $ * * based on scanelf by: * Copyright 2003-2007 Ned Ludd - <solar@gentoo.org> * Copyright 2004-2007 Mike Frysinger - <vapier@gentoo.org> * for Darwin specific fun: - * 2008 Fabian Groffen - <grobian@gentoo.org> + * 2008-2010 Fabian Groffen - <grobian@gentoo.org> */ -static const char *rcsid = "$Id: scanmacho.c,v 1.17 2010/01/15 11:06:33 vapier Exp $"; +static const char *rcsid = "$Id: scanmacho.c,v 1.18 2010/04/04 10:03:33 grobian Exp $"; const char * const argv0 = "scanmacho"; #include "paxinc.h" |