/[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.191 Revision 1.192
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.191 2008/06/17 17:07:57 solar Exp $ 4 * $Header: /var/cvsroot/gentoo-projects/pax-utils/scanelf.c,v 1.192 2008/09/29 06:01:22 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.191 2008/06/17 17:07:57 solar Exp $"; 10static const char *rcsid = "$Id: scanelf.c,v 1.192 2008/09/29 06:01:22 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 == '+')
794 794
795 /* not found in any path */ 795 /* not found in any path */
796 return NULL; 796 return NULL;
797} 797}
798#else 798#else
799#ifdef __ELF__
799#warning Cache support not implemented for your target 800#warning Cache support not implemented for your target
801#endif
800static char *lookup_cache_lib(elfobj *elf, char *fname) 802static char *lookup_cache_lib(elfobj *elf, char *fname)
801{ 803{
802 return NULL; 804 return NULL;
803} 805}
804#endif 806#endif
1544 fclose(fp); 1546 fclose(fp);
1545 return i; 1547 return i;
1546} 1548}
1547 1549
1548#else 1550#else
1549 1551#ifdef __ELF__
1550#warning Cache config support not implemented for your target 1552#warning Cache config support not implemented for your target
1553#endif
1551static int load_ld_cache_config(int i, const char *fname) 1554static int load_ld_cache_config(int i, const char *fname)
1552{ 1555{
1553 memset(ldpaths, 0x00, sizeof(ldpaths)); 1556 memset(ldpaths, 0x00, sizeof(ldpaths));
1557 return 0;
1554} 1558}
1555
1556#endif 1559#endif
1557 1560
1558/* scan /etc/ld.so.conf for paths */ 1561/* scan /etc/ld.so.conf for paths */
1559static void scanelf_ldpath(void) 1562static void scanelf_ldpath(void)
1560{ 1563{

Legend:
Removed from v.1.191  
changed lines
  Added in v.1.192

  ViewVC Help
Powered by ViewVC 1.1.20