Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #180155

In Stretch, gcc producing position independent binaries by default?

From Neoklis Kyriazis <nkcyham@yahoo.com>
Newsgroups linux.debian.user
Subject In Stretch, gcc producing position independent binaries by default?
Date 2017-04-15 16:00 +0200
Message-ID <twwp3-7d2-7@gated-at.bofh.it> (permalink)
References <twwp3-7d2-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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.



My thanks in advance
--
Best Regards
Neoklis - Ham Radio Call:5B4AZ
http://www.5b4az.org/

Back to linux.debian.user | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

In Stretch, gcc producing position independent binaries by default? Neoklis Kyriazis <nkcyham@yahoo.com> - 2017-04-15 16:00 +0200
  Re: In Stretch, gcc producing position independent binaries by  default? Reco <recoverym4n@gmail.com> - 2017-04-15 16:30 +0200
    Re: In Stretch, gcc producing position independent binaries by  default? Neoklis Kyriazis <nkcyham@yahoo.com> - 2017-04-15 16:50 +0200
      Re: In Stretch, gcc producing position independent binaries by  default? Reco <recoverym4n@gmail.com> - 2017-04-15 19:30 +0200

csiph-web