-mrelocatable broken on ppc-linux

Geoff Keating geoffk@desire.geoffk.org
Wed Jan 21 17:35:00 GMT 2004


> Date: Wed, 21 Jan 2004 11:47:07 -0500
> From: Jakub Jelinek <jakub@redhat.com>

> On Wed, Jan 21, 2004 at 08:34:23AM -0800, Geoff Keating wrote:
> > > Was this a cut-n-paste error from linux64.h, or am I missing
> > > something?  If it is a mistake, the patch below fixes the problem.  As
> > > it is now, -mrelocatable is broken on mainline and the 3.4 branch.
> > 
> > I thought we'd decided that linux users didn't need -mrelocatable,
> > since (a) nothing uses it and (b) linux already has shared libraries
> > using -fpic which are more efficient; so all those fixups were just
> > making the toolchain slower.  Why do you want -mrelocatable on linux?
> 
> I think -mrelocatable doesn't make sense for linux either.
> But the problem IMHO is that -fPIC implies -mrelocatable.
> Many projects use -fPIC instead of -fpic, e.g. for larger libraries where
> they have to use -fPIC on many other architectures.

Right.  I mean specifically -mrelocatable, with .fixup; the part of
-mrelocatable that's used for -fPIC is of course necessary (since some
shared libraries are too big for -fpic).

-- 
- Geoffrey Keating <geoffk@geoffk.org>



More information about the Gcc-patches mailing list