[Development] Enabling -fPIE globally
Thiago Macieira
thiago.macieira at intel.com
Sun Jan 29 14:15:43 CET 2012
Hello
Olivier has just uploaded a change ( http://codereview.qt-project.org/14528 )
that enabled -fPIE in all application builds and I support him. He also added
a static assertion check for ELF builds without position-independent code, so
that people using other buildsystems are reminded to turn -fPIE on too.
If you have a problem with this, speak up. Linux distributors, especially, let
us know what you think.
For more background, please read my blogs on the "sorry state of libraries on
Linux". But the summary is: function pointer comparison is broken with current
versions of gcc and the -Bsymbolic-functions option we've made the default.
See also:
http://macieira.org/blog/2012/01/sorry-state-of-dynamic-libraries-on-linux/
http://macieira.org/blog/2012/01/update-and-benchmark-on-the-dynamic-library-
proposals/
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19520
http://sourceware.org/bugzilla/show_bug.cgi?id=13600
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
Intel Sweden AB - Registration Number: 556189-6027
Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/development/attachments/20120129/e081f0f0/attachment.sig>
More information about the Development
mailing list