]> git.ipfire.org Git - thirdparty/glibc.git/commit
PowerPC: Fix ftime gettimeofday internal call returning bogus data
authorAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Thu, 16 Jan 2014 19:01:55 +0000 (13:01 -0600)
committerAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Thu, 16 Jan 2014 19:01:55 +0000 (13:01 -0600)
commita1db67c6c7fafc3d2ebd391d64837d54a994e5b9
tree5ffd2261eeb38c7822ac29a3120e1d5d59679812
parent8209beac4644af4c2875f52f82c53c0d4be589ca
PowerPC: Fix ftime gettimeofday internal call returning bogus data

This patches fixes BZ#16430 by setting a different symbol for internal
GLIBC calls that points to ifunc resolvers. For PPC32, if the symbol
is defined as hidden (which is the case for gettimeofday and time) the
compiler will create local branches (symbol@local) and linker will not
create PLT calls (required for IFUNC). This will leads to internal symbol
calling the IFUNC resolver instead of the resolved symbol.
For PPC64 this behavior does not occur because a call to a function in
another translation unit might use a different toc pointer thus requiring
a PLT call.
ChangeLog
NEWS
sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
sysdeps/unix/sysv/linux/powerpc/time.c