[Development] Enabling -fPIE globally

Stephen Kelly stephen.kelly at kdab.com
Sun Jan 29 18:21:32 CET 2012


On Sunday, January 29, 2012 16:47:43 Thiago Macieira wrote:
> On Sunday, 29 de January de 2012 15.02.01, marius.storm-olsen at nokia.com 
wrote:
> > 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?
> 
> Not exactly. In fact, without -Bsymbolic-functions, we don't add the --
> dynamic-list option, which is what enables the symbol hijacking they need.

... but unfortunately not with gold: 
http://sourceware.org/bugzilla/show_bug.cgi?id=13577

> 
> The option is still there, so the hijacking will still work.

I can't seem to make my system behave sanely if I don't use gold. I'm building 
my Qt 5 with -no-reduce-relocations now. Anyone who wants to can try GammaRay 
with Qt5 already though. I ported it in early January (using some ifdefs):

https://github.com/KDAB/GammaRay

> And I've
> already asked Stephen to create a proper callback mechanism, instead of
> relying on hijacking (which I proved not to work in my blog).

The creation of a callback mechanism sounds like a good idea, but will require 
a lot of thought, coordination and  work which is currently unscheduled.

Thanks,

-- 
Stephen Kelly <stephen.kelly at kdab.com> | Software Engineer
KDAB (Deutschland) GmbH & Co.KG, a KDAB Group Company
www.kdab.com || Germany +49-30-521325470 || Sweden (HQ) +46-563-540090
KDAB - Qt Experts - Platform-Independent Software Solutions
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20120129/8a509fbe/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/development/attachments/20120129/8a509fbe/attachment.sig>


More information about the Development mailing list