PATCH: Add x32 time

H.J. Lu hjl.tools@gmail.com
Fri May 18 00:25:00 GMT 2012


On Thu, May 17, 2012 at 3:06 PM, Roland McGrath <roland@hack.frob.com> wrote:
> OK, this clinches it for me that we really should be doing this and
> gettimeofday with syscalls.list enhancements instead.
>
>

Those are in C.  If you compare gettimeofday.c and time.c, excluding
copyright, there are more codes which are different than common. We
can define libc_ifunc_vdso in include/libc-symbols.h to cover

# include <dl-vdso.h>

void *time_ifunc (void) __asm__ ("__GI_time");

void *
time_ifunc (void)
{
  PREPARE_VERSION (linux26, "LINUX_2.6", 61765110);

  return _dl_vdso_vsym ("__vdso_time", &linux26);
}
__asm (".type __GI_time, %gnu_indirect_function");

It should cover most if not all common code.

-- 
H.J.



More information about the Libc-alpha mailing list