/[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.12 Revision 1.13
1/* 1/*
2 * Copyright 2003 Ned Ludd <solar@gentoo.org> 2 * Copyright 2003 Ned Ludd <solar@gentoo.org>
3 * Copyright 1999-2005 Gentoo Foundation 3 * Copyright 1999-2005 Gentoo Foundation
4 * Distributed under the terms of the GNU General Public License v2 4 * Distributed under the terms of the GNU General Public License v2
5 * $Header: /var/cvsroot/gentoo-projects/pax-utils/Attic/scanelf.c,v 1.12 2005/03/31 00:50:56 solar Exp $ 5 * $Header: /var/cvsroot/gentoo-projects/pax-utils/Attic/scanelf.c,v 1.13 2005/03/31 18:34:01 solar Exp $
6 * 6 *
7 ******************************************************************** 7 ********************************************************************
8 * This program is free software; you can redistribute it and/or 8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License as 9 * modify it under the terms of the GNU General Public License as
10 * published by the Free Software Foundation; either version 2 of the 10 * published by the Free Software Foundation; either version 2 of the
31#include <dirent.h> 31#include <dirent.h>
32#include <getopt.h> 32#include <getopt.h>
33 33
34#include "paxelf.h" 34#include "paxelf.h"
35 35
36static const char *rcsid = "$Id: scanelf.c,v 1.12 2005/03/31 00:50:56 solar Exp $"; 36static const char *rcsid = "$Id: scanelf.c,v 1.13 2005/03/31 18:34:01 solar Exp $";
37 37
38 38
39/* helper functions for showing errors */ 39/* helper functions for showing errors */
40#define argv0 "scanelf\0" /*((*argv != NULL) ? argv[0] : __FILE__ "\b\b")*/ 40#define argv0 "scanelf\0" /*((*argv != NULL) ? argv[0] : __FILE__ "\b\b")*/
41#define warn(fmt, args...) \ 41#define warn(fmt, args...) \
88 88
89 /* show the header */ 89 /* show the header */
90 if (!be_quiet && show_header) { 90 if (!be_quiet && show_header) {
91 fputs(" TYPE ", stderr); 91 fputs(" TYPE ", stderr);
92 if (show_pax) fputs(" PAX ", stderr); 92 if (show_pax) fputs(" PAX ", stderr);
93 if (show_stack) fputs(" STACK ", stderr); 93 if (show_stack) fputs(" STACK/RELRO ", stderr);
94 if (show_textrel) fputs(" TEXTREL ", stderr); 94 if (show_textrel) fputs(" TEXTREL ", stderr);
95 if (show_rpath) fputs(" RPATH ", stderr); 95 if (show_rpath) fputs(" RPATH ", stderr);
96 fputs(" FILE\n", stderr); 96 fputs(" FILE\n", stderr);
97 show_header = 0; 97 show_header = 0;
98 } 98 }
163 } 163 }
164 if (!be_quiet && !found_rpath) fputs("- ", stdout); 164 if (!be_quiet && !found_rpath) fputs("- ", stdout);
165 } 165 }
166 166
167 if (!be_quiet || show_pax || found_stack || found_textrel || found_rpath) 167 if (!be_quiet || show_pax || found_stack || found_textrel || found_rpath)
168 printf("%s\n", filename); 168 puts(filename);
169 169
170bail: 170bail:
171 unreadelf(elf); 171 unreadelf(elf);
172} 172}
173 173

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

  ViewVC Help
Powered by ViewVC 1.1.20