Gentoo Archives: gentoo-commits

From: Markos Chandras <hwoarang@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/devmanual:master commit in: general-concepts/pic/
Date: Sun, 05 Jan 2014 11:14:14
Message-Id: 1388920362.920c28b1e1f4b1a63e12d48a5db7527ee806b0c4.hwoarang@gentoo
1 commit: 920c28b1e1f4b1a63e12d48a5db7527ee806b0c4
2 Author: Markos Chandras <hwoarang <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jan 5 11:12:42 2014 +0000
4 Commit: Markos Chandras <hwoarang <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 5 11:12:42 2014 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/devmanual.git;a=commit;h=920c28b1
7
8 PIC: Improve documentation
9
10 Copy text from
11 http://www.gentoo.org/proj/en/devrel/handbook/handbook.xml?part=2&chap=1
12 and add link to the wiki page.
13
14 ---
15 general-concepts/pic/text.xml | 8 +++++---
16 1 file changed, 5 insertions(+), 3 deletions(-)
17
18 diff --git a/general-concepts/pic/text.xml b/general-concepts/pic/text.xml
19 index bc847dd..4c0613c 100644
20 --- a/general-concepts/pic/text.xml
21 +++ b/general-concepts/pic/text.xml
22 @@ -4,9 +4,11 @@
23 <title>Position Independent Code</title>
24
25 <body>
26 -<todo>
27 -policy. http://www.gentoo.org/proj/en/hardened/pic-internals.xml has some technical details.
28 -</todo>
29 +<p>
30 +On some architectures, shared libraries must be built with -fPIC. On x86 and others, shared libraries may build without -fPIC. This can be wasteful and potentially cause a performance hit.
31 +</p>
32 +<p>If you encounter a package that is not building shared libraries with -fPIC, patch the Makefile to build only the shared libraries with -fPIC. More information on PIC is available at the <uri link="https://wiki.gentoo.org/wiki/Project:Hardened/Position_Independent_Code_internals">PIC internals</uri> wiki page. If you are unsure, please ask in a public developer forum (like the gentoo-dev mailing list or #gentoo-dev irc channel) for help.
33 +</p>
34 </body>
35
36 </chapter>