alpha: Use generic gettimeofday implementation

It makes alpha no longer reports information about a system-wide
time zone and moves the version logic on the alpha implementation.

Checked on a build and check-abi for alpha-linux-gnu.

Reviewed-by: Lukasz Majewski <lukma@denx.de>
This commit is contained in:
Adhemerval Zanella 2020-02-10 17:59:57 -03:00
parent f34c4d0f10
commit c953219420
3 changed files with 8 additions and 8 deletions

View File

@ -18,5 +18,12 @@
/* We can use the generic implementation, but we have to override its /* We can use the generic implementation, but we have to override its
default symbol version. */ default symbol version. */
#define VERSION_gettimeofday GLIBC_2.1 #undef weak_alias
#define weak_alias(a,b)
#undef strong_alias
#define strong_alias(a, b)
#include <time/gettimeofday.c> #include <time/gettimeofday.c>
_weak_alias (___gettimeofday, __wgettimeofday);
default_symbol_version (___gettimeofday, __gettimeofday, GLIBC_2.1);
default_symbol_version (__wgettimeofday, gettimeofday, GLIBC_2.1);

View File

@ -23,7 +23,6 @@ pciconfig_write EXTRA pciconfig_write 5 pciconfig_write
pciconfig_iobase EXTRA pciconfig_iobase 3 __pciconfig_iobase pciconfig_iobase pciconfig_iobase EXTRA pciconfig_iobase 3 __pciconfig_iobase pciconfig_iobase
# timeval64 entry points (see osf_*.c for GLIBC_2.0 timeval32 equivalents) # timeval64 entry points (see osf_*.c for GLIBC_2.0 timeval32 equivalents)
gettimeofday - gettimeofday i:pP __GI___gettimeofday gettimeofday@@GLIBC_2.1 __gettimeofday@@GLIBC_2.1
getitimer - getitimer i:ip __getitimer getitimer@@GLIBC_2.1 getitimer - getitimer i:ip __getitimer getitimer@@GLIBC_2.1
setitimer - setitimer i:ipP __setitimer setitimer@@GLIBC_2.1 setitimer - setitimer i:ipP __setitimer setitimer@@GLIBC_2.1
utimes - utimes i:sp __utimes utimes@@GLIBC_2.1 utimes - utimes i:sp __utimes utimes@@GLIBC_2.1

View File

@ -36,11 +36,5 @@ ___gettimeofday (struct timeval *restrict tv, void *restrict tz)
return 0; return 0;
} }
#ifdef VERSION_gettimeofday
weak_alias (___gettimeofday, __wgettimeofday);
default_symbol_version (___gettimeofday, __gettimeofday, VERSION_gettimeofday);
default_symbol_version (__wgettimeofday, gettimeofday, VERSION_gettimeofday);
#else
strong_alias (___gettimeofday, __gettimeofday) strong_alias (___gettimeofday, __gettimeofday)
weak_alias (___gettimeofday, gettimeofday) weak_alias (___gettimeofday, gettimeofday)
#endif