Summary: | RFE: Add gcc's position independant executable (-fPIE) support to tree | ||
---|---|---|---|
Product: | xorg | Reporter: | Mike A. Harris <mharris> |
Component: | * Other | Assignee: | Xorg Project Team <xorg-team> |
Status: | RESOLVED WONTFIX | QA Contact: | |
Severity: | enhancement | ||
Priority: | high | CC: | dberkholz, gajownik, roland.mainz |
Version: | git | ||
Hardware: | x86 (IA32) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Bug Depends on: | |||
Bug Blocks: | 6666 |
Description
Mike A. Harris
2005-03-14 19:44:01 UTC
Here is a link to some documentation on PIE, which may be useful to whomever takes up this task: http://people.redhat.com/drepper/nonselsec.pdf 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... This should be much easier in the modular tree, where you can add it to configure.ac for only those programs it's worthwhile to use it in. aiming this at 7.1. but this should really be trivial with autotools, no? probably not going to make 7.1, counts as a feature at this point. (In reply to comment #5) > probably not going to make 7.1, counts as a feature at this point. Feature, moving to 7.2. No longer interested in tracking this feature, closing... |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.