Summary: | make PIE optional and/or make the check more thorough | ||
---|---|---|---|
Product: | dbus | Reporter: | Ivan Krasilnikov <infnty> |
Component: | core | Assignee: | Simon McVittie <smcv> |
Status: | RESOLVED DUPLICATE | QA Contact: | John (J5) Palmieri <johnp> |
Severity: | normal | ||
Priority: | medium | CC: | hp |
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Ivan Krasilnikov
2010-09-15 14:37:14 UTC
That means you should fix your toolchain instead. GCC shouldn't accept options that don't work. Either the option should work, or it should be removed/disabled. Yes, I agree, but that's the toolchain that shipped with this FreeBSD release. (And I suspect the situation is the same on FreeBSD 6.x-7.1). I can't easily fix it. It should be easy to add to Configure.in a check that verifies that gcc is capable of build executables with -pie option. Why don't you want to add it? dbus' configure.in doesn't properly check that -pie is supported (it only checks for -fPIE flag), so I have to disagree with your assessment that it's "NOT-OUR-BUG", and reopen it. Look how another respectable open-source project checks for -pie: http://svn.apache.org/viewvc/httpd/httpd/trunk/configure.in?view=markup (search for "ap_cv_cc_pie"). Please, integrate that check in your configure.in. Patches are accepted. It would also be good to make PIE optional. In Maemo it's patched out of configure.in altogether[1], because on (some version of?) their ARM toolchain, it produces/produced executables that usually work, but not reliably (which we can't really check in configure). Debian has also had problems with PIE on various less mainstream architectures at various times (at least mips[2], hppa/m68k[3], avr32[4]). Debian's dbus is currently compiled with PIE on those architectures, though. If we add a --disable-pie option, distros with known-unreliable PIE support in (some of) their toolchains can at least use it as a workaround (for particular architectures or globally) without having to patch configure. [1] http://maemo.gitorious.org/maemo-gnome-essentials/dbus/blobs/maemo/debian/patches/80-remove-fpie-pie.patch which fixes NB#171940, according to debian/changelog [2] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=526961 [3] http://wiki.debian.org/Hardening#DEBBUILDHARDENINGPIE.28gcc.2BAC8-g.2B-.2B--fPIE-pie.29 [5] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=574716 |
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.