This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: [RFC] Fix LD_PROFILE for ia64 and hppa (any arch using function descriptors)
- From: Roland McGrath <roland at redhat dot com>
- To: "Carlos O'Donell" <carlos at baldric dot uwo dot ca>
- Cc: libc-alpha <libc-alpha at sources dot redhat dot com>
- Date: Tue, 6 Jan 2004 01:57:49 -0800
- Subject: 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.