This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: -mrelocatable broken on ppc-linux
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Geoff Keating <geoffk at desire dot geoffk dot org>, gcc-patches at gcc dot gnu dot org
- Date: Fri, 6 Feb 2004 12:25:02 +1030
- Subject: Re: -mrelocatable broken on ppc-linux
- References: <20040121031453.GA3606@redhat.com> <jmekttntv4.fsf@desire.geoffk.org> <20040121164706.GC31589@devserv.devel.redhat.com> <200401211732.i0LHWQg8022806@desire.geoffk.org> <20040122074044.GA14007@bubble.modra.org>
What are we going to do about this one?
http://gcc.gnu.org/ml/gcc-patches/2004-01/msg02267.html
I reckon we should fix it for this release, since it's easy and safe
to do so, and warn people that -mrelocatable will not be generating
.fixup or possibly go away altogether in a future release.
It's true enough that -mrelocatable serves no useful purpose on
Linux (so we could make it a synonym for -fPIC). Anyone wanting to
relocate .got2 can just relocate everything there without using gcc's
.fixup, which is what the Linux kernel does. So if you prefer, I'm
willing to generate a patch to make -mrelocatable{-lib} a synonym
for -fPIC, but I'm not keen to take the blame for breaking someone's
funky .fixup parser.
--
Alan Modra
IBM OzLabs - Linux Technology Centre