/[gentoo-projects]/pax-utils/scanelf.c
Gentoo

Diff of /pax-utils/scanelf.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.209 Revision 1.210
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.209 2009/03/15 08:53:29 vapier Exp $ 4 * $Header: /var/cvsroot/gentoo-projects/pax-utils/scanelf.c,v 1.210 2009/03/15 08:56:14 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
10static const char *rcsid = "$Id: scanelf.c,v 1.209 2009/03/15 08:53:29 vapier Exp $"; 10static const char *rcsid = "$Id: scanelf.c,v 1.210 2009/03/15 08:56:14 vapier Exp $";
11const char * const argv0 = "scanelf"; 11const 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 == '+')
1101 else 1101 else
1102 return (char *)" - "; 1102 return (char *)" - ";
1103} 1103}
1104 1104
1105/* scan an elf file and show all the fun stuff */ 1105/* scan an elf file and show all the fun stuff */
1106#define prints(str) write(fileno(stdout), str, strlen(str)) 1106#define prints(str) ({ ssize_t ret = write(fileno(stdout), str, strlen(str)); ret; })
1107static int scanelf_elfobj(elfobj *elf) 1107static int scanelf_elfobj(elfobj *elf)
1108{ 1108{
1109 unsigned long i; 1109 unsigned long i;
1110 char found_pax, found_phdr, found_relro, found_load, found_textrel, 1110 char found_pax, found_phdr, found_relro, found_load, found_textrel,
1111 found_rpath, found_needed, found_interp, found_bind, found_soname, 1111 found_rpath, found_needed, found_interp, found_bind, found_soname,

Legend:
Removed from v.1.209  
changed lines
  Added in v.1.210

  ViewVC Help
Powered by ViewVC 1.1.20