Sorting entries in dynamic relocation
Koundinya K
knk@dde.dk
Wed Mar 8 09:50:00 GMT 2000
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
More information about the Binutils
mailing list