Re: In Stretch, gcc producing position independent binaries by default?
Hi.
On Sat, 15 Apr 2017 13:50:59 +0000 (UTC)
Neoklis Kyriazis <nkcyham@yahoo.com> wrote:
> Hi,
>
> I have recently completed my first installation of Debian (stretch)
> and I am compiling some apps from source. I have noticed that filers
> show binaries produce by gcc as being shared library objects instead
> of just ELF executables.
>
> I eventually, by searching, I worked around this by specifying the
>
> -no-pie flag in CFLAGS but I would like to know if gcc is by default
> set up to produce
> position independent binaries or if I have not set up things correctly.
They patched gcc to produce PIE by default - and that's one of Debian
stretch release goals. See:
https://wiki.debian.org/Hardening/PIEByDefaultTransition
Reco
Reply to: