/[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.93 Revision 1.94
1/* 1/*
2 * Copyright 2003-2005 Gentoo Foundation 2 * Copyright 2003-2005 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/Attic/scanelf.c,v 1.93 2005/12/10 04:07:55 vapier Exp $ 4 * $Header: /var/cvsroot/gentoo-projects/pax-utils/Attic/scanelf.c,v 1.94 2005/12/10 04:10:26 vapier Exp $
5 * 5 *
6 * Copyright 2003-2005 Ned Ludd - <solar@gentoo.org> 6 * Copyright 2003-2005 Ned Ludd - <solar@gentoo.org>
7 * Copyright 2004-2005 Mike Frysinger - <vapier@gentoo.org> 7 * Copyright 2004-2005 Mike Frysinger - <vapier@gentoo.org>
8 */ 8 */
9 9
19#include <dirent.h> 19#include <dirent.h>
20#include <getopt.h> 20#include <getopt.h>
21#include <assert.h> 21#include <assert.h>
22#include "paxinc.h" 22#include "paxinc.h"
23 23
24static const char *rcsid = "$Id: scanelf.c,v 1.93 2005/12/10 04:07:55 vapier Exp $"; 24static const char *rcsid = "$Id: scanelf.c,v 1.94 2005/12/10 04:10:26 vapier Exp $";
25#define argv0 "scanelf" 25#define argv0 "scanelf"
26 26
27#define IS_MODIFIER(c) (c == '%' || c == '#') 27#define IS_MODIFIER(c) (c == '%' || c == '#')
28 28
29 29
664 symname = (char *)(elf->data + EGET(strtab->sh_offset) + EGET(sym->st_name)); \ 664 symname = (char *)(elf->data + EGET(strtab->sh_offset) + EGET(sym->st_name)); \
665 if (*find_sym == '*') { \ 665 if (*find_sym == '*') { \
666 printf("%s(%s) %5lX %15s %s\n", \ 666 printf("%s(%s) %5lX %15s %s\n", \
667 ((*found_sym == 0) ? "\n\t" : "\t"), \ 667 ((*found_sym == 0) ? "\n\t" : "\t"), \
668 elf->base_filename, \ 668 elf->base_filename, \
669 (long)sym->st_size, \ 669 (unsigned long)sym->st_size, \
670 (char *)get_elfstttype(sym->st_info), \ 670 (char *)get_elfstttype(sym->st_info), \
671 symname); \ 671 symname); \
672 *found_sym = 1; \ 672 *found_sym = 1; \
673 } else if ((strcmp(find_sym, symname) == 0) || \ 673 } else if ((strcmp(find_sym, symname) == 0) || \
674 (strcmp(symname, versioned_symname) == 0)) \ 674 (strcmp(symname, versioned_symname) == 0)) \

Legend:
Removed from v.1.93  
changed lines
  Added in v.1.94

  ViewVC Help
Powered by ViewVC 1.1.20