[Dlang-internal] 17th Planning (Christmas Edition), Dec 22 - Jan 12

Martin Nowak via Dlang-internal dlang-internal at puremagic.com
Mon Dec 26 17:34:08 PST 2016


On 12/26/2016 12:03 PM, Dicebot wrote:
> On 12/25/2016 03:15 PM, Martin Nowak wrote:
>> -fPIC was added to the default DFLAGS in dmd.conf, please update the
>> dmd.conf files and corresponding packages for other distributions
> 
> Is that recommended to do on distros that don't use PIE by default yet?

I'm indeed a bit unsure whether that's a good idea if PIE support hasn't
been tested much on those distributions. OTOH it's in widespread use to
harden at least some security relevant programs, and gcc has PIE support
since quite a while.
Also PIE isn't much magic other than PIC plus changing the ELF file type
(to DYN instead of EXEC).

Supporting different variations also comes at a cost (e.g. asking back
in bug reports).
And as we've switched the generic linux.tar release to support PIE, it
might make sense for most distributions.

Enabling -fPIC for executables is not equivalent to enabling PIE for D,
the ELF file format still remains a gcc -pie/-no-pie option and
distribution default.



More information about the Dlang-internal mailing list