[PATCH] Fix PLT infinite loop for cris-*-*.
Hans-Peter Nilsson
hans-peter.nilsson@axis.com
Wed Sep 17 22:03:00 GMT 2003
> Date: Wed, 17 Sep 2003 14:31:10 -0700
> From: Roland McGrath <roland@redhat.com>
> > 2003-09-17 Uwe Reimann <Uwe_Reimann@gmx.net>
> > Hans-Peter Nilsson <hp@axis.com>
> >
> > * sysdeps/cris/dl-machine.h (elf_machine_type_class): Classify
> > R_CRIS_GLOB_DAT as ELF_RTYPE_CLASS_PLT. Clarify comment.
>
> I don't know the CRIS ELF spec to say whether the ld behavior is truly valid.
I don't know either, I haven't written the psABI yet. :-)
But a future such spec will, unless I hear from e.g. a glibc
person a reason against it.
> But if that's what GNU ld does now, glibc should work with such results.
> I put your change in.
Thanks.
The question is still open whether the runtime linker should
resolve symbols to be PLT entry addresses for any architecture,
in any case where the reloc using the symbol is that of a
user-visible reference (usually relocs called *_GLOB_DAT).
Should it? If so, that seems to mean that function pointers
will resolve to different values in different objects, breaking
pointer equality.
brgds, H-P
More information about the Libc-alpha
mailing list