This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: Sorting entries in dynamic relocation
- To: Andreas Jaeger <aj at suse dot de>
- Subject: Re: Sorting entries in dynamic relocation
- From: Koundinya K <knk at dde dot dk>
- Date: Wed, 08 Mar 2000 18:50:31 -0700
- CC: ian at zembu dot com, binutils at sourceware dot cygnus dot com
- Organization: DDE
- References: <38C6EBA3.7FFBA70E@dde.dk> <u8k8jds7xy.fsf@gromit.rhein-neckar.de>
Hi again,
Andreas Jaeger wrote:
> >>>>> Koundinya K writes:
>
> > Hi Ian,
> > The current mips code, It looks like the sorting of the entries in
> > the dynamic relocation section is not being done. This is important for
> > the dynamic linker I suppose. Especially when shared libs are generated
> > that contain dynamic relocations.
>
> > The MIPS ABI says that:
>
> > (Chapter 5, Pg 5-14)
>
> > The entries in the dynamic relocation section must be ordered by
> > increasing r_symndx value.
>
> > In case I need to put some code for this, where could this probably fit
> > into ?.
>
> AFAIR that's only needed for Quickstart - but AFAIK the linker doesn't
> support Quickstart and therefore the ordering contstraint is not
> needed.
>
Hmm...I don't think so. The MIPS-ABI says that to take advantage of
Quickstart functionality the .dynsym and .rel.dyn section must obey ordering
constraints.
But again if we forget about Quickstart, under relocations ( Pg 5-13 and
5-14) no such thing is mentioned.
It is mentioned as if it is mandatory for the dynamic relocation section to
be ordered.
Moreover these things mostly matter to the dynamic linker.
koundinya
>
> Andreas
> --
> Andreas Jaeger
> SuSE Labs aj@suse.de
> private aj@arthur.rhein-neckar.de