This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Fix libjava x86-64 multilib
- From: Hans-Peter Nilsson <hp at bitrange dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: Alexandre Oliva <aoliva at redhat dot com>, <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 2 Oct 2002 09:42:15 -0400 (EDT)
- Subject: Re: Fix libjava x86-64 multilib
On Wed, 2 Oct 2002, Jakub Jelinek wrote:
> On Wed, Oct 02, 2002 at 02:12:58AM -0300, Alexandre Oliva wrote:
> > On Oct 2, 2002, Andreas Jaeger <aj@suse.de> wrote:
> >
> > > And AFAIK ia64 needs -fPIC also for shared libs, so is the above
> > > really correct for these platforms?
> >
> > I'm not sufficiently familiar with ia64 to tell for sure. The rule is
> > that, if the linker fails to link any form of non-PIC into a shared
> > library, then pass_all must not be used.
>
> powerpc needs -fPIC also for shared libs...
Also CRIS required a pic flag; ld emits errors for relocs in RO
sections in absence of it. (-fPIC is ok, though -fpic is highly
recommended instead; max 8k symbols, glibc has ~2000.) No
libjava yet, but I think this has drifted into a general libtool
issue.
brgds, H-P