PATCH: Properly handle STT_GNU_IFUNC symbols in do_sym

Petr Baudis pasky@suse.cz
Fri Nov 6 02:21:00 GMT 2009


On Fri, Nov 06, 2009 at 03:06:07AM +0100, Petr Baudis wrote:
> On Sun, Nov 01, 2009 at 09:34:18AM -0800, H.J. Lu wrote:
> > do_sym should use DL_FIXUP_VALUE_XXX macros to call IFUNC function.
> > Otherwise, it won't compile on ia64. This patch fixes it and adds
> > a test.
> 
>   BTW, are you sure the ifunc implementation in elf/dl-runtime.c is
> correct on IA64? It seems to use struct fdesc * as function pointer, I
> think it should use DL_FIXUP_VALUE_CODE_ADDR () instead.

Oh, never mind that, I got wrong impression about IA64 from the orignial
broken dl-sym.c code, apparently it's an ok thing to do.

				Petr "Pasky" Baudis



More information about the Libc-alpha mailing list