[Development] Enabling -fPIE globally

marius.storm-olsen at nokia.com marius.storm-olsen at nokia.com
Sun Jan 29 16:02:01 CET 2012


I think feedback from KDAB and FrogLogic about this change would also be
valuable, to discuss the changes required to their tools for automated
testing of Qt applications.

My understanding is that they now would need a code injector on Linux
(like on Windows), instead of simply LD_PRELOADing their libs, right?

-- 
.marius


On 1/29/12 2:15 PM, "ext Thiago Macieira" <thiago.macieira at intel.com>
wrote:

>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-libra
>ry-
>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
>_______________________________________________
>Development mailing list
>Development at qt-project.org
>http://lists.qt-project.org/mailman/listinfo/development
>





More information about the Development mailing list