This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [I don't think it's off-topic at all] Linking speed for C++
On Tue, May 29, 2001 at 03:36:07PM -0700, Richard Henderson wrote:
> On Tue, May 29, 2001 at 03:23:40PM -0700, Geoff Keating wrote:
> > But when linked with -fPIC ... the linker can't tell that
> > the reloc ... is related to PIC-ness, or if it's just a plain
> > old data reloc in an oddly-named section.
>
> Hum. Ok, that is ugly. IMO you'd be much better off with your
> linker knowing how to create multiple GOT pools like we do on Alpha.
>
> On second thought, why aren't you using the R_PPC_GOT16_HA and
> R_PPC_GOT16_LO relocations for -fPIC?
Because for better or for worse, -fPIC is implmented as -mrelocatable. At the
time I implemented it, PowerPC Linux was barely on the radar screen, so rather
than creating 3 different methods for shared libraries, I just used the
existing support.
--
Michael Meissner, Red Hat, Inc. (GCC group)
PMB 198, 174 Littleton Road #3, Westford, Massachusetts 01886, USA
Work: meissner@redhat.com phone: +1 978-486-9304
Non-work: meissner@spectacle-pond.org fax: +1 978-692-4482