Go to file
Joseph Myers d44a052c49 Fix powerpc32 __get_clockfreq for non-power4 (bug 17263).
In my powerpc32 testing I've observed misc/test-gettimebasefreq
failing.

This is a glibc build (soft-float, though that's not relevant here)
without any --with-cpu and without any special configuration of the
default CPU for GCC either.  In particular, it's one not using
sysdeps/powerpc/powerpc32/power4/hp-timing.h (although in fact the
processor I'm using for testing is POWER4-based), so hp_timing_t is
32-bit not 64-bit.  But the VDSO call being used by
INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK is generating a 64-bit result
(high part in r3, low part in r4).  The code extracting that result,
however, expects a result of the type hp_timing_t as passed to
INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK, meaning that only r3 (= 0) is
used and the value in r4 is ignored.  This patch fixes this by always
using uint64_t as the type in INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK -
reflecting the actual ABI (unconditional in the kernel) of that VDSO
call.  This is the minimal change for this issue - no check for
overflow, no change of the type of the timebase_freq variable or the
return type of __get_clockfreq to something other than hp_timing_t
(such a change would simply move the implicit conversions to the over
callers of that function), no change to hp_timing_t itself.

Tested for powerpc32 soft float.

	[BZ #17263]
	* sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Include
	<stdint.h>.
	(__get_clockfreq): Use uint64_t instead of hp_timing_t in
	INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK call.
2014-08-13 16:06:18 +00:00
argp
assert
benchtests Remove HP_TIMING_DIFF_INIT and dl_hp_timing_overhead 2014-07-03 08:38:25 -07:00
bits
catgets Clean up HAVE_CONFIG_H and STDC_HEADERS. 2014-06-20 20:04:47 -07:00
conf
conform
crypt
csu
ctype
debug Fix -Wundef warning on PAGE_COPY_THRESHOLD 2014-07-03 01:49:43 +05:30
dirent
dlfcn
elf Correct DT_PPC64_NUM 2014-07-14 21:17:32 +09:30
gmon
gnulib
grp
gshadow
hesiod
hurd
iconv iconv/loop.c: Fix -Wundef warning with !_STRING_ARCH_unaligned 2014-07-17 10:16:09 +01:00
iconvdata Use $(rtld-prefix) more consistently. 2014-06-18 10:35:29 +00:00
include Fix -Wundef warnings in regex_internal.h 2014-08-01 14:30:43 +05:30
inet
intl tst-gettext2: make setup more robust 2014-08-08 22:55:48 -04:00
io Fix -Wundef warning for HAVE_SYS_PARAM_H 2014-07-10 14:19:21 +05:30
libidn
libio
locale _nl_find_locale: Improve handling of crafted locale names [BZ #17137] 2014-07-10 16:29:55 +02:00
localedata ChangeLog fix 2014-07-14 10:49:24 +02:00
login
mach
malloc malloc: fix comment typo 2014-08-12 05:24:29 -04:00
manual fcntl-linux.h: add new definitions and manual updates for open file description locks 2014-07-29 23:27:21 -04:00
math Fix fallback fesetenv and feupdateenv on FE_NOMASK_ENV (bug 17088). 2014-07-17 17:56:43 +00:00
misc Sync up error.c with gnulib 2014-07-10 14:24:30 +05:30
nis
nptl IA64: Define TLS_DEFINE_INIT_TP 2014-08-04 09:53:49 -04:00
nptl_db
nscd Correctly report nscd child process status (BZ #17092) 2014-06-27 23:31:47 +05:30
nss Remove stray includes of kernel-features.h. 2014-06-25 18:09:01 +00:00
po Regenerate libc.po 2014-08-09 17:14:35 +10:00
posix Fix -Wundef warnings in regex_internal.h 2014-08-01 14:30:43 +05:30
pwd
resolv Check value at resplen2 if it is not NULL 2014-07-08 22:52:49 +05:30
resource
rt Fix -Wundef warning for HAVE_IFUNC 2014-07-31 17:05:19 +02:00
scripts Remove shlib-versions ABI names support. 2014-06-27 20:24:23 +00:00
setjmp
shadow
signal
socket
soft-fp Rename soft-fp op-[1248].h variables to avoid risk of shadowing. 2014-06-30 17:37:10 +00:00
stdio-common
stdlib tst-setcontext: fix style 2014-08-03 08:55:20 -04:00
streams
string PowerPC: optimized memmove for POWER7/PPC64 2014-07-07 15:41:21 -05:00
sunrpc Add comment about SIZE initialization in xdr.c 2014-07-10 10:33:48 +05:30
sysdeps Fix powerpc32 __get_clockfreq for non-power4 (bug 17263). 2014-08-13 16:06:18 +00:00
sysvipc
termios
time Fix -Wundef warning for HAVE_LOCALTIME_R 2014-07-10 14:21:27 +05:30
timezone Update timezone code from tzcode 2014e. 2014-06-25 16:51:17 +00:00
wcsmbs
wctype
.gitattributes
.gitignore
abi-tags
aclocal.m4 Refactor handling of /lib64 etc. cases, move out of sysdeps/gnu/configure.ac. 2014-07-17 14:35:48 +00:00
BUGS
CANCEL-FCT-WAIVE
CANCEL-FILE-WAIVE
ChangeLog Fix powerpc32 __get_clockfreq for non-power4 (bug 17263). 2014-08-13 16:06:18 +00:00
ChangeLog.1
ChangeLog.2
ChangeLog.3
ChangeLog.4
ChangeLog.5
ChangeLog.6
ChangeLog.7
ChangeLog.8
ChangeLog.9
ChangeLog.10
ChangeLog.11
ChangeLog.12
ChangeLog.13
ChangeLog.14
ChangeLog.15
ChangeLog.16
ChangeLog.17
ChangeLog.old-ports
ChangeLog.old-ports-aarch64
ChangeLog.old-ports-aix
ChangeLog.old-ports-alpha
ChangeLog.old-ports-am33
ChangeLog.old-ports-arm
ChangeLog.old-ports-cris
ChangeLog.old-ports-hppa
ChangeLog.old-ports-ia64
ChangeLog.old-ports-linux-generic
ChangeLog.old-ports-m68k
ChangeLog.old-ports-microblaze
ChangeLog.old-ports-mips
ChangeLog.old-ports-powerpc
ChangeLog.old-ports-tile
config.h.in Use __builtin_trap for ABORT_INSTRUCTION. 2014-07-31 13:07:19 -07:00
config.make.in
configure detect broken linker handling of __ehdr_start 2014-08-12 19:54:02 -04:00
configure.ac detect broken linker handling of __ehdr_start 2014-08-12 19:54:02 -04:00
CONFORMANCE
COPYING
COPYING.LIB
cppflags-iterator.mk
extra-lib.mk
extra-modules.mk
INSTALL
libc-abis
LICENSES
Makeconfig Remove shlib-versions ABI names support. 2014-06-27 20:24:23 +00:00
Makefile Fix pthread.h in installed-headers list. 2014-06-13 16:39:23 -07:00
Makefile.in
Makerules Print offending diff when check-abi fails 2014-06-24 13:27:13 +05:30
NAMESPACE
NEWS Fix powerpc32 __get_clockfreq for non-power4 (bug 17263). 2014-08-13 16:06:18 +00:00
o-iterator.mk
PROJECTS
README Update README and NEWS for ports directory removal. 2014-06-25 12:55:21 +00:00
Rules
shlib-versions Remove shlib-versions ABI names support. 2014-06-27 20:24:23 +00:00
test-skeleton.c test-skeleton: Kill any child process's offspring 2014-06-30 20:11:56 +01:00
version.h
WUR-REPORT

This directory contains the sources of the GNU C Library.
See the file "version.h" for what release version you have.

The GNU C Library is the standard system C library for all GNU systems,
and is an important part of what makes up a GNU system.  It provides the
system API for all programs written in C and C-compatible languages such
as C++ and Objective C; the runtime facilities of other programming
languages use the C library to access the underlying operating system.

In GNU/Linux systems, the C library works with the Linux kernel to
implement the operating system behavior seen by user applications.
In GNU/Hurd systems, it works with a microkernel and Hurd servers.

The GNU C Library implements much of the POSIX.1 functionality in the
GNU/Hurd system, using configurations i[4567]86-*-gnu.  The current
GNU/Hurd support requires out-of-tree patches that will eventually be
incorporated into an official GNU C Library release.

When working with Linux kernels, this version of the GNU C Library
requires Linux kernel version 2.6.32 or later.

Also note that the shared version of the libgcc_s library must be
installed for the pthread library to work correctly.

The GNU C Library supports these configurations for using Linux kernels:

	aarch64*-*-linux-gnu
	alpha*-*-linux-gnu
	arm-*-linux-gnueabi
	hppa-*-linux-gnu	Not currently functional without patches.
	i[4567]86-*-linux-gnu
	x86_64-*-linux-gnu	Can build either x86_64 or x32
	ia64-*-linux-gnu
	m68k-*-linux-gnu
	microblaze*-*-linux-gnu
	mips-*-linux-gnu
	mips64-*-linux-gnu
	powerpc-*-linux-gnu	Hardware or software floating point, BE only.
	powerpc64*-*-linux-gnu	Big-endian and little-endian.
	s390-*-linux-gnu
	s390x-*-linux-gnu
	sh[34]-*-linux-gnu
	sparc*-*-linux-gnu
	sparc64*-*-linux-gnu
	tilegx-*-linux-gnu
	tilepro-*-linux-gnu

If you are interested in doing a port, please contact the glibc
maintainers; see http://www.gnu.org/software/libc/ for more
information.

See the file INSTALL to find out how to configure, build, and install
the GNU C Library.  You might also consider reading the WWW pages for
the C library at http://www.gnu.org/software/libc/.

The GNU C Library is (almost) completely documented by the Texinfo manual
found in the `manual/' subdirectory.  The manual is still being updated
and contains some known errors and omissions; we regret that we do not
have the resources to work on the manual as much as we would like.  For
corrections to the manual, please file a bug in the `manual' component,
following the bug-reporting instructions below.  Please be sure to check
the manual in the current development sources to see if your problem has
already been corrected.

Please see http://www.gnu.org/software/libc/bugs.html for bug reporting
information.  We are now using the Bugzilla system to track all bug reports.
This web page gives detailed information on how to report bugs properly.

The GNU C Library is free software.  See the file COPYING.LIB for copying
conditions, and LICENSES for notices about a few contributions that require
these additional notices to be distributed.  License copyright years may be
listed using range notation, e.g., 2000-2013, indicating that every year in
the range, inclusive, is a copyrightable year that would otherwise be listed
individually.