In Stretch, gcc producing position independent binaries by default?
- Date: Sat, 15 Apr 2017 13:50:59 +0000 (UTC)
- From: Neoklis Kyriazis <nkcyham@xxxxxxxxx>
- Subject: In Stretch, gcc producing position independent binaries by default?
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.
My thanks in advance
Neoklis - Ham Radio Call:5B4AZ