This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: gcc corrections for better pie support
- From: Zack Weinberg <zack at codesourcery dot com>
- To: "Peter S. Mazinger" <ps dot m at gmx dot net>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 09 Nov 2004 10:34:36 -0800
- Subject: Re: gcc corrections for better pie support
- References: <Pine.LNX.4.44.0411091304350.31744-100000@lnx.bridge.intra>
"Peter S. Mazinger" <ps.m@gmx.net> writes:
> On Tue, 9 Nov 2004, Zack Weinberg wrote:
>
>> The intended behavior is for -profile to link against the profiled
>> version of the C library (usually -lc_p) and -pg not; the two options
>> are otherwise identical. -profile is a completely system-generic
>> feature that should be universally supported. It would be nice if you
>> made that change (IMO it qualifies as a bug fix), but please do so
>> separately from your other changes.
>
> linux behaves (on archs where implemented) like you describe, but
> freebsd-spec.h has no profile, and uses %{pg:-lc_p} ;-(
Yeah. I thought there would be places like that. This is why you
should submit a change to make -profile universal as a separate
change, clearly labeled "changes behavior on some systems", and get
buy-in from everyone before proceeding. This might need to wait for
4.1.
zw