1 |
vapier 08/09/29 06:01:22 |
2 |
|
3 |
Modified: scanelf.c |
4 |
Log: |
5 |
only issue warnings on missing cache code when targeting an ELF system |
6 |
|
7 |
Revision Changes Path |
8 |
1.192 pax-utils/scanelf.c |
9 |
|
10 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-projects/pax-utils/scanelf.c?rev=1.192&view=markup |
11 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-projects/pax-utils/scanelf.c?rev=1.192&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-projects/pax-utils/scanelf.c?r1=1.191&r2=1.192 |
13 |
|
14 |
Index: scanelf.c |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo-projects/pax-utils/scanelf.c,v |
17 |
retrieving revision 1.191 |
18 |
retrieving revision 1.192 |
19 |
diff -u -r1.191 -r1.192 |
20 |
--- scanelf.c 17 Jun 2008 17:07:57 -0000 1.191 |
21 |
+++ scanelf.c 29 Sep 2008 06:01:22 -0000 1.192 |
22 |
@@ -1,13 +1,13 @@ |
23 |
/* |
24 |
* Copyright 2003-2007 Gentoo Foundation |
25 |
* Distributed under the terms of the GNU General Public License v2 |
26 |
- * $Header: /var/cvsroot/gentoo-projects/pax-utils/scanelf.c,v 1.191 2008/06/17 17:07:57 solar Exp $ |
27 |
+ * $Header: /var/cvsroot/gentoo-projects/pax-utils/scanelf.c,v 1.192 2008/09/29 06:01:22 vapier Exp $ |
28 |
* |
29 |
* Copyright 2003-2007 Ned Ludd - <solar@g.o> |
30 |
* Copyright 2004-2007 Mike Frysinger - <vapier@g.o> |
31 |
*/ |
32 |
|
33 |
-static const char *rcsid = "$Id: scanelf.c,v 1.191 2008/06/17 17:07:57 solar Exp $"; |
34 |
+static const char *rcsid = "$Id: scanelf.c,v 1.192 2008/09/29 06:01:22 vapier Exp $"; |
35 |
const char * const argv0 = "scanelf"; |
36 |
|
37 |
#include "paxinc.h" |
38 |
@@ -796,7 +796,9 @@ |
39 |
return NULL; |
40 |
} |
41 |
#else |
42 |
+#ifdef __ELF__ |
43 |
#warning Cache support not implemented for your target |
44 |
+#endif |
45 |
static char *lookup_cache_lib(elfobj *elf, char *fname) |
46 |
{ |
47 |
return NULL; |
48 |
@@ -1546,13 +1548,14 @@ |
49 |
} |
50 |
|
51 |
#else |
52 |
- |
53 |
+#ifdef __ELF__ |
54 |
#warning Cache config support not implemented for your target |
55 |
+#endif |
56 |
static int load_ld_cache_config(int i, const char *fname) |
57 |
{ |
58 |
memset(ldpaths, 0x00, sizeof(ldpaths)); |
59 |
+ return 0; |
60 |
} |
61 |
- |
62 |
#endif |
63 |
|
64 |
/* scan /etc/ld.so.conf for paths */ |