This is the mail archive of the libc-alpha@sourceware.org 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: PATCH: Add x32 time


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.


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