Joseph Myers [Fri, 7 Sep 2012 00:06:07 +0000 (00:06 +0000)]
Fix pointers between nodes in manual (bug 10038).
H.J. Lu [Thu, 6 Sep 2012 23:29:10 +0000 (16:29 -0700)]
Restore GL(dl_initial_dtv)
H.J. Lu [Thu, 6 Sep 2012 23:03:32 +0000 (16:03 -0700)]
Remove _dl_initial_dtv
* csu/libc-tls.c (static_dtv): Renamed to ...
(_dl_static_dtv): This. Make it global.
(_dl_initial_dtv): Removed.
(__libc_setup_tls): Updated.
* elf/dl-tls.c (DL_INITIAL_DTV): New macro.
(_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
DL_INITIAL_DTV.
Petr Machata [Thu, 6 Sep 2012 19:41:14 +0000 (12:41 -0700)]
Synchronize with linux/elf.h.
Add new ARM and s390 note constants e.g. NT_*.
H.J. Lu [Thu, 6 Sep 2012 19:20:16 +0000 (12:20 -0700)]
Mention BZ #14545 in NEWS
H.J. Lu [Wed, 5 Sep 2012 19:24:37 +0000 (12:24 -0700)]
Always check dtv before freeing dtv[-1]
H.J. Lu [Thu, 6 Sep 2012 12:44:57 +0000 (05:44 -0700)]
Add tst-cancel21-static.c
H.J. Lu [Wed, 5 Sep 2012 02:53:24 +0000 (19:53 -0700)]
Use crtbeginT.o to statically link programs
Chris Metcalf [Thu, 6 Sep 2012 15:43:56 +0000 (11:43 -0400)]
tile: fix type of prfpregset_t in <sys/procfs.h>
The previous dummy definition (as type int) was fine in general, since
tile doesn't have floating-point registers, but it confused gdb's
configure, leading to later compile errors. This change also makes
prfpregset_t parallel to prgregset_t, which seems like generally the
right thing regardless of the non-existence of the actual registers :-)
Chris Metcalf [Thu, 6 Sep 2012 15:32:55 +0000 (11:32 -0400)]
tile: Add BZ to Changelog and update NEWS
Joseph Myers [Thu, 6 Sep 2012 15:33:06 +0000 (15:33 +0000)]
Fix strtod test for values above maximum for IBM long double.
Chris Metcalf [Thu, 6 Sep 2012 15:25:04 +0000 (11:25 -0400)]
tile: BZ#14237: fix __tls_get_addr bug initializing new modules
We were missing a check for TLS_DTV_UNALLOCATED; if set, we need
to go to the slow path.
Andreas Krebbel [Thu, 6 Sep 2012 08:28:52 +0000 (10:28 +0200)]
S/390: Fix optimized mem* running on 31 bit kernels.
Jeff Law [Thu, 6 Sep 2012 04:45:10 +0000 (22:45 -0600)]
Fix botched NEWS
Jeff Law [Thu, 6 Sep 2012 04:14:32 +0000 (22:14 -0600)]
[BZ#14510]
* locales/es_DO: Fix LC_NUMERIC decimal_point and thousands_sep.
* locales/es_GT: Likewise.
* locales/es_HN: Likewise.
* locales/es_MX: Likewise.
* locales/es_NI: Likewise.
* locales/es_PA: Likewise.
* locales/es_PR: Likewise.
* locales/es_SV: Likewise.
David S. Miller [Thu, 6 Sep 2012 00:59:16 +0000 (17:59 -0700)]
Recognize new sparc hwcap bits.
* sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
* sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
* sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
entries.
David S. Miller [Thu, 6 Sep 2012 00:54:52 +0000 (17:54 -0700)]
Update sparc ULPs for recently added math tests.
* sysdeps/sparc/fpu/libm-test-ulps: Update.
Alexandre Oliva [Wed, 5 Sep 2012 23:47:16 +0000 (20:47 -0300)]
* malloc/arena.c: Fold copyright years.
* malloc/mcheck.c, malloc/memusage.c: Likewise.
Alexandre Oliva [Wed, 5 Sep 2012 23:37:37 +0000 (20:37 -0300)]
* malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
Alexandre Oliva [Wed, 5 Sep 2012 19:20:45 +0000 (16:20 -0300)]
* manual/contrib.texi (Contributors): Fix typo. Complete entry.
Alexandre Oliva [Wed, 5 Sep 2012 18:43:04 +0000 (15:43 -0300)]
Don't change no_dyn_threshold on mallopt failure
* malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
change internal state upon failure.
Alexandre Oliva [Wed, 5 Sep 2012 18:19:44 +0000 (15:19 -0300)]
Fix typos in malloc/.
* malloc/mcheck.c (mcheck_check_all): Fix typo.
* malloc/memusage.c (mmap): Likewise.
(mmap64, mremap): Likewise. Adjust name in comment.
Siddhesh Poyarekar [Wed, 5 Sep 2012 16:34:10 +0000 (22:04 +0530)]
Fix typos in comments
* libio/fileops.c: Fix typos in comments.
* libio/oldfileops.c: Likewise.
* libio/wfileops.c: Likewise.
Siddhesh Poyarekar [Wed, 5 Sep 2012 16:24:24 +0000 (21:54 +0530)]
Fixed minor typo in ChangeLog
Siddhesh Poyarekar [Wed, 5 Sep 2012 16:19:00 +0000 (21:49 +0530)]
Return requested size for malloc_usable_size when MALLOC_CHECK_ > 0
[BZ #1349]
malloc_usable_size returns the usable size in an allocated chunk,
which may be >= the requested size. In the case of MALLOC_CHECK_ being
exported to > 0 however, only the requested size is usable, since a
magic value is written at the end of the request size to trap writes
beyond request bounds. Hence, when MALLOC_CHECK_ is exported to > 0,
malloc_usable_size() should return the request size.
Andreas Schwab [Wed, 5 Sep 2012 15:35:14 +0000 (17:35 +0200)]
Increase timeout for stdlib/tst-strtod-overflow
Allan McRae [Wed, 5 Sep 2012 14:16:24 +0000 (00:16 +1000)]
Improve C++ header location detection (bug 13966)
Andreas Schwab [Wed, 5 Sep 2012 11:45:10 +0000 (13:45 +0200)]
Use LDBL_MIN_EXP to distinguish Intel and Motorola extended float format
Andreas Schwab [Wed, 5 Sep 2012 10:37:16 +0000 (12:37 +0200)]
Correctly handle Motorola extended float format in tst-strtod-round
David S. Miller [Wed, 5 Sep 2012 02:20:03 +0000 (19:20 -0700)]
Use sparcv8 GMP routines when building 32-bit sparcv9.
* sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
* sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
* sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
Florian Weimer [Tue, 4 Sep 2012 13:01:18 +0000 (15:01 +0200)]
stdlib/tst-secure-getenv.c: whitespace-only changes in comments
Florian Weimer [Tue, 4 Sep 2012 07:25:18 +0000 (09:25 +0200)]
stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID failures
Joseph Myers [Tue, 4 Sep 2012 11:24:43 +0000 (11:24 +0000)]
Fix iogetdelim.c (latent) integer overflow (bug 9914).
Andreas Jaeger [Mon, 3 Sep 2012 13:43:56 +0000 (15:43 +0200)]
Update libm-test-ulps
Liubov Dmitrieva [Mon, 3 Sep 2012 13:32:13 +0000 (15:32 +0200)]
Add optimized sinf and cosf routines for x86 and x86-64
* sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
Add s_sinf-sse2, s_conf-sse2.
* sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
* sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
* sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
* sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
* sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
for using routine as __sinf_ia32.
Use macro for function declaration and weak_alias.
* sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
for using routine as __cosf_ia32.
Use macro for function declaration and weak_alias.
* sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
* sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
* sysdeps/x86_64/fpu/s_sinf.S: New file.
* sysdeps/x86_64/fpu/s_cosf.S: New file.
* sysdeps/x86_64/fpu/libm-test-ulps: Update.
* math/libm-test.inc (cos_test): Add more test cases.
(sin_test): Likewise.
(sincos_test): Likewise.
Andreas Krebbel [Mon, 3 Sep 2012 12:06:27 +0000 (14:06 +0200)]
S/390: Make IFUNC optimized mem* functions hidden.
H.J. Lu [Sun, 2 Sep 2012 12:22:24 +0000 (05:22 -0700)]
Use the first element of GOT for ld.so addresses
[BZ #14538]
* sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
first element of the GOT.
(elf_machine_load_address): Return the difference between
the runtime address of _DYNAMIC and elf_machine_dynamic ().
Allan McRae [Sat, 1 Sep 2012 23:30:18 +0000 (09:30 +1000)]
Check for gawk >= 3.0 (bug 13412)
Joseph Myers [Sat, 1 Sep 2012 21:32:04 +0000 (21:32 +0000)]
Remove __ASSUME_POSIX_CPU_TIMERS.
Joseph Myers [Fri, 31 Aug 2012 19:49:31 +0000 (19:49 +0000)]
Fix sem_post race (bug 14532).
H.J. Lu [Wed, 29 Aug 2012 13:45:37 +0000 (06:45 -0700)]
Use LD_SO to set $ld_so_name/$ld_so_version
Siddhesh Poyarekar [Wed, 29 Aug 2012 04:33:39 +0000 (10:03 +0530)]
Don't make ttyname* fail if proc filesystem is not available
The ttyname and ttyname_r functions on Linux now fall back to
searching for the tty file descriptor in /dev/pts or /dev if /proc is
not available. This allows creation of chroots without the procfs
mounted on /proc.
Fixes BZ #14516.
Joseph Myers [Mon, 27 Aug 2012 19:36:04 +0000 (19:36 +0000)]
Remove __ASSUME_STAT64_SYSCALL.
Mike Frysinger [Mon, 27 Aug 2012 17:30:45 +0000 (13:30 -0400)]
update NEWS
Guido Guenther [Mon, 27 Aug 2012 16:20:25 +0000 (12:20 -0400)]
mips: clear condition bit 23 in fpu too
We've been carrying this in Gentoo for quite a long time to fix some test
failures that people hit.
Original message:
> make[4]: *** [/glibc/glibc-package-2.3/mips-linux/obj/math/test-fpucw.out] Error 1
This test fails since the read back fpu control word is 0x80000 instead
of 0x0. I wonder if this patch is correct:
...
which additionally masks out the condition bit 23 - note that the other
condition bits (25-31) are masked out too?
URL: http://sourceware.org/ml/libc-alpha/2002-10/msg00392.html
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger [Fri, 17 Aug 2012 17:01:28 +0000 (13:01 -0400)]
alpha: add conditional fdatasync support
While most arches have had the fdatasync syscall for a long time, the
alpha port didn't add it until the 2.6.22 release.
This is heavily based on Aurelien Jarno's initial work.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Joseph Myers [Mon, 27 Aug 2012 16:04:19 +0000 (16:04 +0000)]
Fix sign of zero on strtod underflow (bug 14519).
Joseph Myers [Mon, 27 Aug 2012 16:01:27 +0000 (16:01 +0000)]
Fix strtod rounding (bug 3479).
Joseph Myers [Mon, 27 Aug 2012 15:59:24 +0000 (15:59 +0000)]
Fix strtod integer/buffer overflow (bug 14459).
Marek Polacek [Sat, 25 Aug 2012 16:32:23 +0000 (18:32 +0200)]
Fix some typos in comments.
Roland McGrath [Thu, 23 Aug 2012 23:55:40 +0000 (16:55 -0700)]
Fix tst-rfc3484* build failures from USE_NSCD move to config.h.
Steve McIntyre [Thu, 23 Aug 2012 20:38:25 +0000 (20:38 +0000)]
Check floating-point ABI in ARM VALID_ELF_HEADER.
Joseph Myers [Thu, 23 Aug 2012 11:34:37 +0000 (11:34 +0000)]
Make dl-fxstatat64.c include of fxstatat64.c use <> not "".
Roland McGrath [Wed, 22 Aug 2012 23:06:53 +0000 (16:06 -0700)]
Fix shadow, gshadow, networks, protocols, rpc, aliases, and nscd routines for USE_NSCD case.
Joseph Myers [Wed, 22 Aug 2012 21:03:12 +0000 (21:03 +0000)]
Clean up MIPS stat64 handling.
Roland McGrath [Wed, 22 Aug 2012 20:35:55 +0000 (13:35 -0700)]
Add --disable-build-nscd configure option.
Roland McGrath [Wed, 22 Aug 2012 20:31:12 +0000 (13:31 -0700)]
BZ#13696: Add --disable-nscd configure option.
Dmitry V. Levin [Wed, 22 Aug 2012 19:58:18 +0000 (12:58 -0700)]
Fix sed configure check for newer sed --version output.
Roland McGrath [Wed, 22 Aug 2012 19:53:38 +0000 (12:53 -0700)]
Fix libc-start change for IRELless machines.
Joseph Myers [Wed, 22 Aug 2012 19:17:56 +0000 (19:17 +0000)]
Move bug number to correct section of NEWS.
Jeff Law [Wed, 22 Aug 2012 17:41:40 +0000 (11:41 -0600)]
* sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
if the family is PF_UNSPEC.
Mike Frysinger [Wed, 22 Aug 2012 04:21:31 +0000 (00:21 -0400)]
rename V variable to lib-version
Due to the rise of kbuild type build systems (as the Linux kernel is a
popularly emulated environment), the V variable has become common as a
knob for controlling verbosity. Unfortunately, if you run `make V=1`
with glibc during install, it fails with weird errors due to the glibc
build already using this variable for versioning information.
Granted, overriding this variable in the glibc context makes no sense
so people shouldn't be doing it, but when paired with build frameworks
that like to use one set of options for all packages, glibc starts to
stick out as an oddball (in that it fails). Considering it's easy
enough to rename (it's used in just one place), let's do so.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Roland McGrath [Wed, 22 Aug 2012 16:25:21 +0000 (09:25 -0700)]
Leading-tabify ChangeLog.
Roland McGrath [Wed, 22 Aug 2012 16:24:51 +0000 (09:24 -0700)]
Fix ChangeLog format.
Will Schmidt [Wed, 22 Aug 2012 16:04:42 +0000 (11:04 -0500)]
Add versions of wcscpy, wcschr, wcsrchr for power6/power7.
Initially based on the versions found in wcsmbs/* ; these files have
been changed by hand unrolling, and adding some additional variables
to allow some read-ahead to occur, which then relieves some of the
wait-for-increment/wait-for-load/wait-for-compare-results pressure
that was slowing down every iteration through the while-loop.
For 64-bit Power7, These changes give an approx 20% throughput boost
for the wcschr and wcsrchr functions; and approx 40% boost for the
wcscpy function. 32-bit improvements appear to be slightly better
with ~ %30 and ~ %45 respectively. Results for Power6 closely match
those for power7.
Maxim Kuvyrkov [Tue, 29 May 2012 05:46:07 +0000 (22:46 -0700)]
Micro-optimize critical path of strstr, strcase and memmem.
Maxim Kuvyrkov [Tue, 29 May 2012 06:32:12 +0000 (23:32 -0700)]
Use pointers for traversing arrays in strstr, strcasestr and memmem.
Maxim Kuvyrkov [Tue, 29 May 2012 05:50:15 +0000 (22:50 -0700)]
Detect EOL on-the-fly in strstr, strcasestr and memmem.
Maxim Kuvyrkov [Tue, 29 May 2012 07:04:12 +0000 (00:04 -0700)]
Optimize first-character loop of strstr, strcasestr and memmem.
Roland McGrath [Tue, 21 Aug 2012 22:01:27 +0000 (15:01 -0700)]
Support static IFUNC calls irrespective of USE_MULTIARCH.
Joseph Myers [Tue, 21 Aug 2012 21:07:22 +0000 (21:07 +0000)]
Remove __ASSUME_FADVISE64_64_SYSCALL.
Will Schmidt [Tue, 21 Aug 2012 19:20:55 +0000 (14:20 -0500)]
[Powerpc] Tune/optimize powerpc{32,64}/power7/memchr.S.
Assorted tweaking, twisting and tuning to squeeze a few additional cycles
out of the memchr code. Changes include bypassing the shift pairs
(sld,srd) when they are not required, and unrolling the small_loop that
handles short and trailing strings.
Per scrollpipe data measuring aligned strings for 64-bit, these changes
save between five and eight cycles (9-13% overall) for short strings (<32),
Longer aligned strings see slight improvement of 1-3% due to bypassing the
shifts and the instruction rearranging.
Roland McGrath [Mon, 20 Aug 2012 19:44:59 +0000 (12:44 -0700)]
Fix typos in manual wrt syslog.
Roland McGrath [Mon, 20 Aug 2012 16:51:04 +0000 (09:51 -0700)]
Fix conditional on using DSOCAPS to match condition on defining it.
Joseph Myers [Mon, 20 Aug 2012 14:39:53 +0000 (14:39 +0000)]
Remove __ASSUME_SWAPCONTEXT_SYSCALL.
Joseph Myers [Mon, 20 Aug 2012 14:38:48 +0000 (14:38 +0000)]
Define __ASSUME_UTIMES for s390.
Joseph Myers [Mon, 20 Aug 2012 14:37:27 +0000 (14:37 +0000)]
Remove __ASSUME_MMAP2_SYSCALL.
Andreas Krebbel [Mon, 20 Aug 2012 13:10:13 +0000 (15:10 +0200)]
S/390: Remove 32 bit getrlimit.c.
Joseph Myers [Sun, 19 Aug 2012 15:34:59 +0000 (15:34 +0000)]
Add bug number to NEWS.
Andreas Jaeger [Sat, 18 Aug 2012 16:01:46 +0000 (18:01 +0200)]
Fix last patch: Add missing DUMMY variable
Mike Frysinger [Sat, 18 Aug 2012 04:37:30 +0000 (00:37 -0400)]
add attribute_hidden to __have_{sock_cloexec,pipe2,dup3
These internal knobs are not exposed as part of the public ABI, so mark
them hidden to avoid generating relocations against them.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger [Sat, 18 Aug 2012 02:03:56 +0000 (22:03 -0400)]
split assume pipe2/dup3/sock_cloexec knobs
We can't assume sock_cloexec and pipe2 are bound together as the former
defines are found in glibc only while the latter are a combo of kernel
headers and glibc. So if we do a runtime detection of SOCK_CLOEXEC, but
pipe2() is a stub inside of glibc, we hit a problem. For example:
main()
{
getgrnam("portage");
if (!popen("ls", "r"))
perror("popen()");
}
getgrnam() will detect that the kernel supports SOCK_CLOEXEC and then set
both __have_sock_cloexec and __have_pipe2 to true. But if glibc was built
against older kernel headers where __NR_pipe2 does not exist, glibc will
have a ENOSYS stub for it. So popen() will always fail as glibc assumes
pipe2() works.
While this isn't too much of an issue for some arches as they added the
functionality to the kernel at the same time, not all arches are that
lucky.
Since the code already has dedicated names for each feature, delete the
defines wiring these three features together and make each one a proper
dedicated knob.
We've been carrying this in Gentoo since glibc-2.9.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger [Sat, 18 Aug 2012 02:39:07 +0000 (22:39 -0400)]
update linux nice.c include path too after recent file shuffle
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Marek Polacek [Fri, 17 Aug 2012 21:44:53 +0000 (23:44 +0200)]
Quash warning in s_sincosl.
Roland McGrath [Fri, 17 Aug 2012 21:16:12 +0000 (14:16 -0700)]
Adjust old #include's of sysdeps/unix/time.c to point to sysdeps/posix/time.c instead.
Roland McGrath [Fri, 17 Aug 2012 21:05:53 +0000 (14:05 -0700)]
Make sysheaders available in config.make.
Roland McGrath [Fri, 17 Aug 2012 20:52:32 +0000 (13:52 -0700)]
Move some things from sysdeps/unix to sysdeps/posix.
Roland McGrath [Fri, 17 Aug 2012 20:42:27 +0000 (13:42 -0700)]
Fix rule dependency in last change.
Jeff Law [Fri, 17 Aug 2012 20:32:19 +0000 (14:32 -0600)]
2012-08-17 Jeff Law <law@redhat.com>
* intl/Makefile (codeset_mo): New variable.
($(codeset_mo)): New target.
(tst-codeset.out): Depend on that. Remove explicit rule.
(tst-gettext3.out, tst-gettext5.out): Likewise.
(LOCPATH-ENV, tst-codeset-ENV): New variables.
(tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
* intl/tst-codeset.sh: Remove.
* intl/tst-gettext3.sh: Likewise.
* intl/tst-gettext5.sh: Likewise.
Roland McGrath [Fri, 17 Aug 2012 19:56:33 +0000 (12:56 -0700)]
Merge unix/inet/syscalls.list into unix/syscalls.list.
Roland McGrath [Fri, 17 Aug 2012 18:49:00 +0000 (11:49 -0700)]
Fix typo in last change.
Roland McGrath [Fri, 17 Aug 2012 18:47:06 +0000 (11:47 -0700)]
Fix getaddrinfo for [!_STATBUF_ST_NSEC] case.
Roland McGrath [Fri, 17 Aug 2012 18:29:45 +0000 (11:29 -0700)]
Make malloc build for no-threads configurations.
Roland McGrath [Fri, 17 Aug 2012 18:17:04 +0000 (11:17 -0700)]
Change type of constant to avoid a warning.
Roland McGrath [Fri, 17 Aug 2012 16:55:17 +0000 (09:55 -0700)]
Split sys/param.h out into common file and sysdeps bits/param.h file.
Roland McGrath [Fri, 17 Aug 2012 16:49:37 +0000 (09:49 -0700)]
Add a cast to silence a warning.
Roland McGrath [Fri, 17 Aug 2012 16:35:36 +0000 (09:35 -0700)]
Make libio compile without _IO_MTSAFE_IO.
Roland McGrath [Fri, 17 Aug 2012 16:35:15 +0000 (09:35 -0700)]
Clean up definition of _LIBC_REENTRANT and _IO_MTSAFE_IO.
Gary Benson [Fri, 17 Aug 2012 10:44:37 +0000 (11:44 +0100)]
Also set r->r_map when unmapping the first object in a namespace.
When unmapping the first object in a namespace, the runtime linker
did not update the externally visible pointer. This resulted in
debuggers seeing pointers to memory that had been freed.
Roland McGrath [Thu, 16 Aug 2012 22:38:45 +0000 (15:38 -0700)]
Do not pollute name space with internal_*netgrent functions.