/[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.125 Revision 1.126
1/* 1/*
2 * Copyright 2003-2006 Gentoo Foundation 2 * Copyright 2003-2006 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.125 2006/02/16 05:06:14 solar Exp $ 4 * $Header: /var/cvsroot/gentoo-projects/pax-utils/scanelf.c,v 1.126 2006/02/16 05:47:23 vapier Exp $
5 * 5 *
6 * Copyright 2003-2006 Ned Ludd - <solar@gentoo.org> 6 * Copyright 2003-2006 Ned Ludd - <solar@gentoo.org>
7 * Copyright 2004-2006 Mike Frysinger - <vapier@gentoo.org> 7 * Copyright 2004-2006 Mike Frysinger - <vapier@gentoo.org>
8 */ 8 */
9 9
10#include "paxinc.h" 10#include "paxinc.h"
11 11
12static const char *rcsid = "$Id: scanelf.c,v 1.125 2006/02/16 05:06:14 solar Exp $"; 12static const char *rcsid = "$Id: scanelf.c,v 1.126 2006/02/16 05:47:23 vapier Exp $";
13#define argv0 "scanelf" 13#define argv0 "scanelf"
14 14
15#define IS_MODIFIER(c) (c == '%' || c == '#') 15#define IS_MODIFIER(c) (c == '%' || c == '#')
16 16
17 17
950 case 'b': prints("BIND "); break; 950 case 'b': prints("BIND "); break;
951 case 'S': prints("SONAME "); break; 951 case 'S': prints("SONAME "); break;
952 case 's': prints("SYM "); break; 952 case 's': prints("SYM "); break;
953 case 'N': prints("LIB "); break; 953 case 'N': prints("LIB "); break;
954 case 'T': prints("TEXTRELS "); break; 954 case 'T': prints("TEXTRELS "); break;
955 case 'k': break; 955 case 'k': prints("SECTION "); break;
956 default: warnf("'%c' has no title ?", out_format[i]); 956 default: warnf("'%c' has no title ?", out_format[i]);
957 } 957 }
958 } 958 }
959 if (!found_file) prints("FILE "); 959 if (!found_file) prints("FILE ");
960 prints("\n"); 960 prints("\n");
1466 err("Could not open output stream '%s': %s", optarg, strerror(errno)); 1466 err("Could not open output stream '%s': %s", optarg, strerror(errno));
1467 SET_STDOUT(fp); 1467 SET_STDOUT(fp);
1468 break; 1468 break;
1469 } 1469 }
1470 case 'k': 1470 case 'k':
1471 if (find_section) warn("You can not specify -k twice"); 1471 if (find_section) warn("You prob don't want to specify -k twice");
1472 find_section = optarg; 1472 find_section = optarg;
1473 break; 1473 break;
1474 case 's': { 1474 case 's': {
1475 if (find_sym) warn("You prob don't want to specify -s twice"); 1475 if (find_sym) warn("You prob don't want to specify -s twice");
1476 find_sym = optarg; 1476 find_sym = optarg;

Legend:
Removed from v.1.125  
changed lines
  Added in v.1.126

  ViewVC Help
Powered by ViewVC 1.1.20