This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: PATCH: Enable PIC for mips*-*-*
- From: "H . J . Lu" <hjl at lucon dot org>
- To: "Maciej W. Rozycki" <macro at ds2 dot pg dot gda dot pl>
- 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 08:58:36 -0800
- Subject: Re: PATCH: Enable PIC for mips*-*-*
- References: <20011119082903.A5373@lucon.org> <Pine.GSO.3.96.1011119174416.12112L-100000@delta.ds2.pg.gda.pl>
On Mon, Nov 19, 2001 at 05:51:40PM +0100, Maciej W. Rozycki wrote:
> 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).
>
I don't believe it is supported by glibc. It may or may not work. I
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.
H.J.