This is the mail archive of the mailing list for the glibc project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix PLT infinite loop for cris-*-*.

> Date: Wed, 17 Sep 2003 14:31:10 -0700
> From: Roland McGrath <>

> > 2003-09-17  Uwe Reimann  <>
> > 	    Hans-Peter Nilsson  <>
> > 
> > 	* 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.


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]