Gentoo Archives: gentoo-doc-cvs

From: Xavier Neys <neysx@×××××××××××.org>
To: gentoo-doc-cvs@l.g.o
Subject: [gentoo-doc-cvs] cvs commit: prelink-howto.xml
Date: Tue, 25 Apr 2006 10:39:06
Message-Id: 200604251039.k3PAd61o018021@robin.gentoo.org
1 neysx 06/04/25 10:39:05
2
3 Modified: prelink-howto.xml
4 Log:
5 Update from #130800
6
7 Revision Changes Path
8 1.38 xml/htdocs/doc/en/prelink-howto.xml
9
10 file : http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/prelink-howto.xml?rev=1.38&content-type=text/x-cvsweb-markup&cvsroot=gentoo
11 plain: http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/prelink-howto.xml?rev=1.38&content-type=text/plain&cvsroot=gentoo
12 diff : http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/prelink-howto.xml.diff?r1=1.37&r2=1.38&cvsroot=gentoo
13
14 Index: prelink-howto.xml
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/prelink-howto.xml,v
17 retrieving revision 1.37
18 retrieving revision 1.38
19 diff -u -r1.37 -r1.38
20 --- prelink-howto.xml 6 Mar 2006 09:18:30 -0000 1.37
21 +++ prelink-howto.xml 25 Apr 2006 10:39:04 -0000 1.38
22 @@ -1,5 +1,5 @@
23 <?xml version='1.0' encoding="UTF-8"?>
24 -<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/prelink-howto.xml,v 1.37 2006/03/06 09:18:30 neysx Exp $ -->
25 +<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/prelink-howto.xml,v 1.38 2006/04/25 10:39:04 neysx Exp $ -->
26 <!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
27 <guide link="/doc/en/prelink-howto.xml">
28 <title>Gentoo Linux Prelink Guide</title>
29 @@ -27,9 +27,8 @@
30
31 <license/>
32
33 -<version>1.12</version>
34 -<date>2005-04-21</date>
35 -
36 +<version>1.13</version>
37 +<date>2006-04-21</date>
38
39 <chapter>
40 <title>Introduction</title>
41 @@ -59,6 +58,13 @@
42 for a pre-linked executable.
43 </p>
44
45 +<warn>
46 +Prelink will not work with Hardened Gentoo. This is because both projects try
47 +to change the address space mapping of shared libraries. But prelink with the
48 +-R option randomises library base addresses, providing some degree of hardened
49 +protection.
50 +</warn>
51 +
52 </body>
53 </section>
54 <section>
55 @@ -137,12 +143,6 @@
56 <body>
57
58 <p>
59 -Next you should activate the "pic" USE flag in your <path>/etc/make.conf</path>
60 -Don't forget to run <c>emerge --update --deep --newuse world</c> so that the USE
61 -flag change is incorporated in your system.
62 -</p>
63 -
64 -<p>
65 Also make sure that you do <e>not</e> have -fPIC set in your CFLAGS/CXXFLAGS. If
66 you do, you will need to rebuild your entire system without.
67 </p>
68 @@ -235,6 +235,20 @@
69 </body>
70 </section>
71 <section>
72 +<title>Prelink Cron Job</title>
73 +<body>
74 +
75 +<p>
76 +<c>sys-devel/prelink-20060213</c> and later install a cron job in
77 +<path>/etc/cron.daily/prelink</path>. To enable it, edit the configuration file
78 +<path>/etc/conf.d/prelink</path>. This will run prelink daily in the
79 +background, as needed, saving you running the command manually.
80 +</p>
81 +
82 +</body>
83 +</section>
84 +
85 +<section>
86 <title>Speeding Up KDE After Prelinking</title>
87 <body>
88
89 @@ -256,7 +270,7 @@
90 <chapter>
91 <title>Known Problems and Fixes</title>
92 <section>
93 -<title>&quot;Cannot prelink against non-PIC shared library&quot;</title>
94 +<title>"Cannot prelink against non-PIC shared library"</title>
95 <body>
96
97 <p>
98 @@ -277,6 +291,11 @@
99 The library in media-video/mjpegtools,
100 <path>/usr/lib/liblavfile-1.6.so.0</path>.
101 </li>
102 + <li>
103 + Nvidia OpenGl libraries,
104 + <path>/usr/lib/opengl/nvidia/lib/libGL.so.*</path>. Due to performance
105 + reasons they were compiled without PIC support.
106 + </li>
107 </ul>
108
109 <p>
110 @@ -297,7 +316,7 @@
111 </p>
112
113 <p>
114 -&quot;I suppose the idea is that everything will be in the downloaded file,
115 +"I suppose the idea is that everything will be in the downloaded file,
116 so nothing depends on the local libraries on the target system. Unfortunately
117 with Linux, and I think anything else using GLIBC, this still isn't quite
118 true. There's this "libnss" (name service switch, some people seem to call it
119 @@ -309,14 +328,14 @@
120 it is configured for each machine individually. The problem comes, I think,
121 mainly from statically linking other GLIBC libraries, notably "libpthread",
122 "libm", and "libc", from which come incompatible calls to "libnss"
123 -functions.&quot;
124 +functions."
125 </p>
126
127 </body>
128 </section>
129 <section>
130 -<title>Prelink aborts with &quot;prelink: dso.c:306: fdopen_dso: Assertion
131 -`j == k' failed.&quot;</title>
132 +<title>Prelink aborts with "prelink: dso.c:306: fdopen_dso: Assertion
133 +`j == k' failed."</title>
134 <body>
135
136 <p>
137
138
139
140 --
141 gentoo-doc-cvs@g.o mailing list