This is the mail archive of the libc-alpha@sources.redhat.com 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: [RFC] Fix LD_PROFILE for ia64 and hppa (any arch using function descriptors)


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.


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