[RFC] Fix LD_PROFILE for ia64 and hppa (any arch using function descriptors)

Roland McGrath roland@redhat.com
Tue Jan 6 09:57:00 GMT 2004


I see what you mean.  I think your approach is reasonable, though your code
needs some cleanup.  Is your patch sufficient to make LD_BIND_NOT work?
It seems to me that we need something like ELF_MACHINE_FIXUP_RETURN_VALUE:

  if (__builtin_expect (GL(dl_bind_not), 0))
    {
#ifdef ELF_MACHINE_FIXUP_RETURN_VALUE
      return ELF_MACHINE_FIXUP_RETURN_VALUE (l, result,
					     reloc, rel_addr, value);
#else
      return value;
#endif
    }

  return elf_machine_fixup_plt (l, result, reloc, rel_addr, value);

Or else have elf_machine_fixup_plt check dl_bind_not, which would require
changing every dl-machine.h file.



More information about the Libc-alpha mailing list