[Bug 2730] RFE: Add gcc's position independant executable (-fPIE) support to tree

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Mar 14 19:52:08 PST 2005


Please do not reply to this email: if you want to comment on the bug, go to    
       
the URL shown below and enter yourcomments there.     
   
https://bugs.freedesktop.org/show_bug.cgi?id=2730          
     




------- Additional Comments From mharris at www.linux.org.uk  2005-03-14 19:52 -------
When implementing PIE support, it would be nice to be able to choose
which apps should get PIE, and which should not get PIE.  If there are
measureable performance loss in the X server with PIE for example, then
it might be best to default the X server to non-PIE and let the builder
override the defaults for a particular application.

Here are the applications I think would benefit the most from PIE support:

        /usr/X11R6/bin/Xorg
        /usr/X11R6/bin/Xprt
        /usr/X11R6/bin/xdm
        /usr/X11R6/bin/xfs
        /usr/X11R6/bin/Xnest
        /usr/X11R6/bin/Xvfb

Having a generic PIE flag, enabled by imake by default if the system gcc
supports PIE, and then individual boolean PIE flags for each app might
make the most sense.

ie:
    HasGccWithPie  YES

causes the following to be set:

    BuildXorgWithPIE NO
    BuildXprtWithPIE YES
    BuildXfsWithPIE YES

etc..

Then you can take the defaults, or override a particular executable to
be non-PIE if desired, etc..

Just some implementation thoughts...          
     
     
--           
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email         
     
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


More information about the xorg-bugzilla-noise mailing list