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 17:51:40 +0100 (MET)
- Subject: Re: PATCH: Enable PIC for mips*-*-*
- Organization: Technical University of Gdansk
On Mon, 19 Nov 2001, H . J . Lu wrote:
> > Please note that while linking PDC into a shared library technically does
> > work for a number of systems, the resulting library is not shared anymore
> > as it contains dynamic relocations in its text segment. Actually I recall
> > a nice comment on relocations in text that was once sent by Roland McGrath
> > here... Search the archive using "goat" and "relocations" keywords. ;-)
>
> I have to ask, what is PDC? In any case, linking against an archive
Position dependent code (as opposed to PIC).
> when building a shared library has to work under Linux. It is how
> libgcc.a is used when building a shared library. If it doesn't work
> for certain platforms, it has to be fixed.
Libgcc must then be build as PIC explicitly (which it supposedly is).
The drawback is slower code. I don't know if the drawback is acceptable
for liberty -- possibly it is, but it must be explicitly arranged this
way.
Maciej
--
+ Maciej W. Rozycki, Technical University of Gdansk, Poland +
+--------------------------------------------------------------+
+ e-mail: macro@ds2.pg.gda.pl, PGP key available +