/[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.252 Revision 1.253
1/* 1/*
2 * Copyright 2003-2012 Gentoo Foundation 2 * Copyright 2003-2012 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.252 2012/11/18 07:39:45 vapier Exp $ 4 * $Header: /var/cvsroot/gentoo-projects/pax-utils/scanelf.c,v 1.253 2012/11/30 23:25:07 vapier Exp $
5 * 5 *
6 * Copyright 2003-2012 Ned Ludd - <solar@gentoo.org> 6 * Copyright 2003-2012 Ned Ludd - <solar@gentoo.org>
7 * Copyright 2004-2012 Mike Frysinger - <vapier@gentoo.org> 7 * Copyright 2004-2012 Mike Frysinger - <vapier@gentoo.org>
8 */ 8 */
9 9
10static const char rcsid[] = "$Id: scanelf.c,v 1.252 2012/11/18 07:39:45 vapier Exp $"; 10static const char rcsid[] = "$Id: scanelf.c,v 1.253 2012/11/30 23:25:07 vapier Exp $";
11const char argv0[] = "scanelf"; 11const char 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 == '+')
763 xstrcat(ret, (runpath ? runpath : rpath), ret_len); 763 xstrcat(ret, (runpath ? runpath : rpath), ret_len);
764 else if (!be_quiet) 764 else if (!be_quiet)
765 xstrcat(ret, " - ", ret_len); 765 xstrcat(ret, " - ", ret_len);
766} 766}
767 767
768/* Defines can be seen in glibc's sysdeps/generic/ldconfig.h */
768#define LDSO_CACHE_MAGIC "ld.so-" 769#define LDSO_CACHE_MAGIC "ld.so-"
769#define LDSO_CACHE_MAGIC_LEN (sizeof LDSO_CACHE_MAGIC -1) 770#define LDSO_CACHE_MAGIC_LEN (sizeof LDSO_CACHE_MAGIC -1)
770#define LDSO_CACHE_VER "1.7.0" 771#define LDSO_CACHE_VER "1.7.0"
771#define LDSO_CACHE_VER_LEN (sizeof LDSO_CACHE_VER -1) 772#define LDSO_CACHE_VER_LEN (sizeof LDSO_CACHE_VER -1)
772#define FLAG_ANY -1 773#define FLAG_ANY -1
781#define FLAG_X8664_LIB64 0x0300 782#define FLAG_X8664_LIB64 0x0300
782#define FLAG_S390_LIB64 0x0400 783#define FLAG_S390_LIB64 0x0400
783#define FLAG_POWERPC_LIB64 0x0500 784#define FLAG_POWERPC_LIB64 0x0500
784#define FLAG_MIPS64_LIBN32 0x0600 785#define FLAG_MIPS64_LIBN32 0x0600
785#define FLAG_MIPS64_LIBN64 0x0700 786#define FLAG_MIPS64_LIBN64 0x0700
787#define FLAG_X8664_LIBX32 0x0800
788#define FLAG_ARM_LIBHF 0x0900
789#define FLAG_AARCH64_LIB64 0x0a00
786 790
787#if defined(__GLIBC__) || defined(__UCLIBC__) 791#if defined(__GLIBC__) || defined(__UCLIBC__)
788 792
789static char *lookup_cache_lib(elfobj *elf, const char *fname) 793static char *lookup_cache_lib(elfobj *elf, const char *fname)
790{ 794{

Legend:
Removed from v.1.252  
changed lines
  Added in v.1.253

  ViewVC Help
Powered by ViewVC 1.1.20