PIE + bindnow for Stretch?(Re: Time to reevaluate the cost of -fPIC?)
2016-05-15 4:11 GMT+02:00 Dimitri John Ledkov <firstname.lastname@example.org>:
> On 14 May 2016 at 21:12, Niels Thykier <email@example.com> wrote:
>> Marco d'Itri:
>>> On May 03, Josh Triplett <firstname.lastname@example.org> wrote:
>>>> While this doesn't make PIC absolutely free, it does eliminate almost
>>>> all of the cost, to the point that it no longer seems worthwhile to
>>>> build without -fPIC. Apart from that, building *all* code with -fPIC
>>>> (including both programs and libraries) helps with hardening.
>>> I think that this is worth exploring.
>>> Did you check what other (relevant) distributions are doing?
>> Fedora seems to be doing -fPIE by default for executables - targeting
>> Fedora 23. Known issues they ran into can be found at .
>> I also found the following PPA . Cannot say if it is official or
>> just a personal interest from the PPA owner.
> Ubuntu 16.04 LTS on s390x has -fPIE and bind now
> Ubuntu 16.10 on amd64, ppc64el, s390x has -fPIE and bind now
I think making PIE and bindnow default in dpkg (at least for amd64) would be
perfect release goals for Stretch.
This would make Debian on par with Fedora and Ubuntu in that regard.
We briefly discussed that with Guillem in a related bug report:
I think the next step could be an archive rebuild with the changed defaults
if we would like to pursue this:
I planned starting a discussion on debian-devel about PIE + bindnow,
too, after checking
all the packages which contain statically compiled binaries because
they may need patching
to disable PIE flags based on Lunar's post:
> In general features like these for Ubuntu are tracked by Security team at:
> And bind-now needs fixing on that page.