is -fPIC safe for executable programs, or must -fPIE be used?
Jeff Law
law@redhat.com
Thu Mar 24 16:57:00 GMT 2016
On 03/23/2016 04:12 PM, Britton Kerin wrote:
> I can't tell from the manual if -fPIC is safe for executable programs,
> or only for libraries.
>
> I want to use -fPIC or -fPIE so dladdr() will work right. I would
> rather use -fPIC if possible, because it seems simpler to use one such
> option for everything if possible.
Sadly, it depends on the target (processor & OS in use).
jeff
More information about the Gcc-help
mailing list