This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/35500] Documentation for -fPIC/-fpic/-fpie is not clear
- From: "ddenisen at altera dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Mar 2008 20:11:49 -0000
- Subject: [Bug c++/35500] Documentation for -fPIC/-fpic/-fpie is not clear
- References: <bug-35500-15713@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from ddenisen at altera dot com 2008-03-07 20:11 -------
I am still learning about linking and loading and I can't guess why non-PIC
DSOs would work on x86 but not on x86_64. Could you please explain briefly.
This is all very useful information that I couldn't find anywhere else (I guess
I could always look at gcc code :) ). Can the following be added to
documentation?
(for -fpic): PIC is required for DSOs on x86_64 platform but not for x86.
(for -fpie): One example of using -PIE is security: text section of
position-independent executable can be located at different addresses for each
invocation.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35500