This is the mail archive of the
mailing list for the GCC project.
Re: gcc corrections for better pie support
- From: "Peter S. Mazinger" <ps dot m at gmx dot net>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 9 Nov 2004 10:02:01 +0100 (CET)
- Subject: Re: gcc corrections for better pie support
On Mon, 8 Nov 2004, Peter S. Mazinger wrote:
> from gcc/opts.c
> if (flag_pie)
> flag_pic = flag_pie;
> if (flag_pic && !flag_pie)
> flag_shlib = 1;
> if they would override each other the above test would be pointless.
> the above means for me: if -fpic is defined w/o -fpie only than a shared
> lib is built.
> > > You should look into the code, the code says to me, that the
> > > resulting object won't be used in shared libs, specifically the part
> > > where a check is done to see if both -fpic and -fpie are set.
> > -fno-pic/-fpic/-fPIC/-fpie/-fPIE are supposed to override each other,
> > the last one on the command line ought to win.
I think they are in groups and within groups they (should) override each
Peter S. Mazinger <ps dot m at gmx dot net> ID: 0xA5F059F2
Key fingerprint = 92A4 31E1 56BC 3D5A 2D08 BB6E C389 975E A5F0 59F2