This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: PATCH: Enable PIC for mips*-*-*
- From: "Maciej W. Rozycki" <macro at ds2 dot pg dot gda dot pl>
- To: "H . J . Lu" <hjl at lucon dot org>
- Cc: Alexandre Oliva <aoliva at redhat dot com>, Eric Christopher <echristo at cygnus dot com>, binutils at sourceware dot cygnus dot com, gcc-patches at gcc dot gnu dot org
- Date: Mon, 19 Nov 2001 18:31:34 +0100 (MET)
- Subject: Re: PATCH: Enable PIC for mips*-*-*
- Organization: Technical University of Gdansk
- Reply-to: "Maciej W. Rozycki" <macro at ds2 dot pg dot gda dot pl>
On Mon, 19 Nov 2001, H . J . Lu wrote:
> > Position dependent code (as opposed to PIC).
>
> I don't believe it is supported by glibc. It may or may not work. I
Supported or not /usr/lib/libc.a is not PIC unless a platform mandates
otherwise. For i386 it definitely is PDC.
> don't think we made any promise it will always work. FWIW, what is
> difference between linking against an archive which is not compiled
> with PIC vs. a .o file which is not compiled with PIC? It has nothing
> to do with archive.
No difference. But since it's not supported, I'd rather not put attempts
to support it in libtool. I think a better aproach would be to either
build liberty as a shared library, or build it as an archive of PIC
objects and handle it explicitly in Makefiles for libraries depending on
it (e.g. via LDADD).
Maciej
--
+ Maciej W. Rozycki, Technical University of Gdansk, Poland +
+--------------------------------------------------------------+
+ e-mail: macro@ds2.pg.gda.pl, PGP key available +