Ulrich Drepper [Sat, 27 Mar 2010 11:11:14 +0000 (04:11 -0700)]
Define miss_F_GETOWN_EX only if needed.
When doing i686-unknown-linux-gnu build configured with --enable-kernel=2.6.24,
there are several warnings like this:
../sysdeps/unix/sysv/linux/i386/fcntl.c:36:12: warning: ‘miss_F_GETOWN_EX’ defined but not used
Ulrich Drepper [Fri, 26 Mar 2010 20:33:26 +0000 (13:33 -0700)]
Shorted ChangeLog.
Richard Henderson [Fri, 26 Mar 2010 16:51:57 +0000 (09:51 -0700)]
Mark _dl_random attribute_relro in the header file.
It's already so marked in dl-sysdep.c. Failure to so mark
in the header file leads the compiler to believe that the
variable should be addressable via the .sdata section.
Signed-off-by: Richard Henderson <rth@twiddle.net>
Richard Henderson [Fri, 26 Mar 2010 16:48:44 +0000 (09:48 -0700)]
Fix printf format warning for si_band.
Signed-off-by: Richard Henderson <rth@twiddle.net>
Richard Henderson [Fri, 26 Mar 2010 16:21:34 +0000 (09:21 -0700)]
Finish locale_data -> __locale_data transition.
The transition that was begun here
f095bb7204d80f609a73a22796edd6cffd4c6add
was not complete.
Signed-off-by: Richard Henderson <rth@twiddle.net>
Richard Henderson [Fri, 26 Mar 2010 16:16:21 +0000 (09:16 -0700)]
Don't take the address of a void object.
GCC 4.5 warns about "extern void _end; &end;".
Use char[] instead, as that also doesn't fall foul
of a target's .sdata optimizations.
Signed-off-by: Richard Henderson <rth@twiddle.net>
Ulrich Drepper [Fri, 26 Mar 2010 12:52:39 +0000 (05:52 -0700)]
Fix one case of last checkin.
If the v4 lookup failed but v6 succeeded we treat this as a success.
Ulrich Drepper [Fri, 26 Mar 2010 12:40:27 +0000 (05:40 -0700)]
Don't abort immediately on successful lookup in getaddrinfo.
When not using gethostbyname4 methods we immediately aborted the loop
over the nss modules on the first successful lookup. While this is
almost always what is wanted the nsswitch.conf file allows to select
something different.
Andreas Schwab [Fri, 26 Mar 2010 12:35:50 +0000 (05:35 -0700)]
Fix spurious UNAVAIL status is getaddrinfo
Ulrich Drepper [Fri, 26 Mar 2010 12:09:55 +0000 (05:09 -0700)]
Remove stale reference to website
Ulrich Drepper [Fri, 26 Mar 2010 11:00:10 +0000 (04:00 -0700)]
Remove unwanted malloc changes, again.
Ulrich Drepper [Fri, 26 Mar 2010 02:45:20 +0000 (19:45 -0700)]
Merge branch 'master' of ssh://sources.redhat.com/git/glibc
Conflicts:
ChangeLog
Ulrich Drepper [Thu, 25 Mar 2010 11:01:33 +0000 (04:01 -0700)]
Add support for new clocks.
Recent Linux kernels added support for the CLOCK_MONOTONIC_RAW,
CLOCK_REALTIME_COARSE, and CLOCK_MONOTONIC_COARSE clocks.
Andreas Schwab [Thu, 25 Mar 2010 10:35:05 +0000 (11:35 +0100)]
Fix typo in cuserid
Chris Demetriou [Thu, 25 Mar 2010 00:10:47 +0000 (17:10 -0700)]
ocale-archive differs between 32 and 64 bit platforms
Ulrich Drepper [Thu, 25 Mar 2010 00:02:57 +0000 (17:02 -0700)]
Fix Linux getlogin{_r,} implementation
The old implementation uses fd 0 to determine the login TTY. This
was needed because using /dev/tty it is not possible to deduce the
login TTY. For some time now there is the pseudo-file
/proc/self/loginuid which directly helps us to find the user. Prefer
using this file. It also works if stdin is closed, redirected, or
re-opened.
Jonathan Geisler [Wed, 24 Mar 2010 23:02:15 +0000 (16:02 -0700)]
calls to cuserid() can result in buffer overruns and/or overflows
Priit Laes [Wed, 24 Mar 2010 22:50:02 +0000 (15:50 -0700)]
Change first_weekday and first_workday in et_EE locale
Ulrich Drepper [Wed, 24 Mar 2010 21:59:43 +0000 (14:59 -0700)]
Allow variable shift values in mmap2.
Luis Machado [Wed, 24 Mar 2010 21:46:03 +0000 (14:46 -0700)]
Enable common version of pthread_cond_timedwait to use clock_gettime in VDSO
H.J. Lu [Wed, 24 Mar 2010 19:16:24 +0000 (12:16 -0700)]
Don't define __strpbrk_sse42 in static library
H.J. Lu [Wed, 24 Mar 2010 19:14:03 +0000 (12:14 -0700)]
Test case for last x86 memcmp problem
Ulrich Drepper [Wed, 24 Mar 2010 19:10:51 +0000 (12:10 -0700)]
Add test for last glob bug.
Ulrich Drepper [Wed, 24 Mar 2010 18:58:05 +0000 (11:58 -0700)]
Fix glob with empty pattern
Ulrich Drepper [Wed, 24 Mar 2010 17:14:22 +0000 (10:14 -0700)]
Fix handling of STB_GNU_UNIQUE in LD_TRACE_PRELINKING
Ulrich Drepper [Wed, 24 Mar 2010 13:59:02 +0000 (06:59 -0700)]
Unify wint_t handling in wchar.h and wctype.h.
Fix a few typos in the process.
Ulrich Drepper [Thu, 18 Mar 2010 20:15:27 +0000 (13:15 -0700)]
Future safety in checking ELF header.
If we should use further fields in the e_ident array in the ELF header
of files we want zero to mean the default. Enforce zero for now so
that non-optional features indicated by nonzero values are not go
unnoticed when using an old dynamic linker.
H.J. Lu [Thu, 18 Mar 2010 18:40:46 +0000 (11:40 -0700)]
Fix sysdeps/i386/i686/multiarch/memcmp-ssse3.S
Paul Pluzhnikov [Wed, 17 Mar 2010 16:01:34 +0000 (09:01 -0700)]
Fix missing dependency of localedata tests on gconv-modules
Andreas Schwab [Wed, 17 Mar 2010 13:57:38 +0000 (06:57 -0700)]
Fix debug statements in resolver
Ulrich Drepper [Wed, 17 Mar 2010 09:43:12 +0000 (02:43 -0700)]
A few more archs have IFUNC support.
Ulrich Drepper [Wed, 17 Mar 2010 06:34:59 +0000 (23:34 -0700)]
Extended ELF ABI version handling only for Linux.
If the OSABI is generic we should not allow the ABI version to be nonzero.
Move all the new functionality into Linux-specific files.
Ulrich Drepper [Tue, 16 Mar 2010 21:39:45 +0000 (14:39 -0700)]
Also update Linux-specific VALID_ELF_ABIVERSION definition.
Ulrich Drepper [Tue, 16 Mar 2010 11:47:33 +0000 (04:47 -0700)]
Missing files for libc ABI handling.
Ulrich Drepper [Mon, 15 Mar 2010 18:50:59 +0000 (11:50 -0700)]
Update copyright year.
Ulrich Drepper [Mon, 15 Mar 2010 18:44:58 +0000 (11:44 -0700)]
Implement handling of libc ABI in ELF header.
Ulrich Drepper [Fri, 12 Mar 2010 16:44:10 +0000 (08:44 -0800)]
Define UMOUNT_NOFOLLOW.
Andreas Schwab [Fri, 12 Mar 2010 15:57:19 +0000 (07:57 -0800)]
Don't underestimate length of DST substitution
Roland McGrath [Thu, 11 Mar 2010 08:44:28 +0000 (00:44 -0800)]
elf.h: Add missing R_X86_64_*64 relocs.
Ulrich Drepper [Wed, 10 Mar 2010 15:28:04 +0000 (07:28 -0800)]
Fix whitespace issues.
Luis Machado [Wed, 10 Mar 2010 15:14:16 +0000 (07:14 -0800)]
power7-optimized 64-bit and 32-bit memcpy
Ulrich Drepper [Wed, 10 Mar 2010 04:21:12 +0000 (20:21 -0800)]
Fix a few more problem with the recent setxid changes.
David S. Miller [Tue, 9 Mar 2010 14:42:53 +0000 (06:42 -0800)]
sparc: Optimize strlen using techniques from powerpc implementation.
David S. Miller [Tue, 9 Mar 2010 14:37:45 +0000 (06:37 -0800)]
sparc32: Fix non-v9 build failure in memcpy.
David S. Miller [Tue, 9 Mar 2010 11:48:24 +0000 (03:48 -0800)]
sparc64: Fix handling of R_SPARC_TLS_LE_* relocations.
Andreas Schwab [Mon, 8 Mar 2010 16:01:14 +0000 (17:01 +0100)]
Revert to original version of setxid race fix
Ulrich Drepper [Mon, 8 Mar 2010 02:22:52 +0000 (18:22 -0800)]
Fix one left over from last change to statvfs.
Ulrich Drepper [Sat, 6 Mar 2010 23:40:50 +0000 (15:40 -0800)]
Handle ext4 and logfs in statvfs functions.
Yann Droneaud [Sat, 6 Mar 2010 00:52:31 +0000 (16:52 -0800)]
Fix DEBUG statements in resolv/res_send.c
Ulrich Drepper [Fri, 5 Mar 2010 19:23:28 +0000 (11:23 -0800)]
Fix setxid race with thread creation
H.J. Lu [Fri, 5 Mar 2010 05:30:17 +0000 (21:30 -0800)]
Pass -mtune=i686 to assembler when compiling for i686
Ulrich Drepper [Fri, 5 Mar 2010 03:49:04 +0000 (19:49 -0800)]
Define new x86-64 relocation symbols
Richard Guenther [Fri, 5 Mar 2010 03:33:41 +0000 (19:33 -0800)]
Fix R_X86_64_PC32 overflow detection
Ulrich Drepper [Thu, 4 Mar 2010 17:16:16 +0000 (09:16 -0800)]
Fixups.
David S. Miller [Thu, 4 Mar 2010 12:24:15 +0000 (04:24 -0800)]
sparc32: Remove unused code.
2010-03-04 David S. Miller <davem@davemloft.net>
* sysdeps/sparc/sparc32/sparcv8/udiv_qrnnd.S: Delete.
* sysdeps/sparc/sparc32/udiv_qrnnd.S: Delete.
David S. Miller [Thu, 4 Mar 2010 09:02:45 +0000 (01:02 -0800)]
sparc64: Use dbl-64/wordsize-64 math lib code.
* sysdeps/sparc/sparc64/Implies: Add ieee754/dbl-64/wordsize-64 entry.
Ulrich Drepper [Wed, 3 Mar 2010 23:37:12 +0000 (15:37 -0800)]
More in.h definitions from the Linux kernel.
David S. Miller [Wed, 3 Mar 2010 13:58:09 +0000 (05:58 -0800)]
(INSERT_WORDS64): Fix argument order.
Aurelien Jarno [Wed, 3 Mar 2010 10:11:46 +0000 (02:11 -0800)]
sparc64: Fix msgrcv()
msgrcv() does not work on sparc64, as it passes the 6th argument using
the ipc kludge, while the kernel waits for a 6 arguments syscall. This
patches fixes the problem by using a sparc64 specific version of
msgrcv.c.
2010-03-03 Aurelien Jarno <aurelien@aurel32.net>
* sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: New file.
David S. Miller [Wed, 3 Mar 2010 10:10:22 +0000 (02:10 -0800)]
sparc: Use ba,a,pt in PLTs and fix bugs in R_SPARC_JMP_IREL handling.
2010-03-03 David S. Miller <davem@davemloft.net>
* sysdeps/sparc/sparc32/dl-machine.h (elf_machine_lazy_rel): Must
pass '1' for 't' argument to sparc_fixup_plt.
* sysdeps/sparc/sparc64/dl-machine.h (elf_machine_lazy_rel):
Likewise.
* sysdeps/sparc/sparc32/dl-plt.h (OPCODE_BA_PT): Define.
(sparc_fixup_plt): Document 't' argument. Enable branch
optimization and use v9 branches when possible. Explain why we
cannot unconditionally patch the branch into the first PLT
instruction.
* sysdeps/sparc/sparc64/dl-plt.h (sparc64_fixup_plt): Document 't'
argument. Use v9 branches when possible. Explain why we can in
fact unconditionally use a branch in the first PLT instruction
here.
Roland McGrath [Tue, 2 Mar 2010 19:57:25 +0000 (11:57 -0800)]
Merge commit 'origin/davem/sparc'
Roland McGrath [Mon, 1 Mar 2010 00:26:27 +0000 (16:26 -0800)]
Define NT_X86_XSTATE constant for ELF core files.
Ulrich Drepper [Sat, 27 Feb 2010 03:56:04 +0000 (19:56 -0800)]
Add BZ number.
H.J. Lu [Sat, 27 Feb 2010 03:54:50 +0000 (19:54 -0800)]
Fix unwind info in x86 strcmp-sse4.S
David S. Miller [Fri, 26 Feb 2010 07:52:07 +0000 (23:52 -0800)]
sparc: Add multiarch support for memset/bzero/memcpy.
2010-02-25 David S. Miller <davem@davemloft.net>
* sysdeps/sparc/elf/rtld-global-offsets.sym: New file.
* sysdeps/sparc/Makefile (csu): Add rtld-global-offsets.sym to
gen-as-const-headers.
* sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: New file.
* sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: New file.
* sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: New file.
* sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: Move to...
* sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra3.S: ...here.
* sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: Move to...
* sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara1.S: ...here.
* sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: Move to...
* sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara1.S: ...here.
* sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: Move to...
* sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara2.S: ...here.
* sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: Removed.
* sysdeps/sparc/sparc64/multiarch/Makefile: New file.
* sysdeps/sparc/sparc64/sparcv9v/memcpy.S: Move to...
* sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: ...here.
* sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Move to...
* sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: ...here.
* sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Move to...
* sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: ...here.
* sysdeps/sparc/sparc64/sparcv9v/memset.S: Move to...
* sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: ...here.
* sysdeps/sparc/sparc64/sparcv9v2/memset.S: Removed.
* sysdeps/sparc/sparc64/multiarch/memcpy.S: New file.
* sysdeps/sparc/sparc64/multiarch/memset.S: New file.
David S. Miller [Mon, 22 Feb 2010 11:59:49 +0000 (03:59 -0800)]
sparc: Pull bcopy/memmove out of memcpy.S implementations.
2010-02-25 David S. Miller <davem@davemloft.net>
* sysdeps/sparc/sparc32/bcopy.c: Delete.
* sysdeps/sparc/sparc32/memmove.c: Delete.
* sysdeps/sparc/sparc32/sparcv9/bcopy.c: Delete.
* sysdeps/sparc/sparc32/sparcv9/memmove.c: Delete.
* sysdeps/sparc/sparc64/bcopy.c: Delete.
* sysdeps/sparc/sparc64/memmove.c: Delete.
* sysdeps/sparc/sparc64/memcopy.h: New.
* sysdeps/sparc/sparc32/memcpy.S (bcopy, memmove): Remove.
* sysdeps/sparc/sparc64/memcpy.S (bcopy, memmove): Likewise.
* sysdeps/sparc/sparc64/sparcv9b/memcpy.S (bcopy, memmove): Likewise.
* sysdeps/sparc/sparc64/sparcv9v/memcpy.S (bcopy, memmove): Likewise.
* sysdeps/sparc/sparc64/sparcv9v2/memcpy.S (bcopy, memmove): Likewise.
David S. Miller [Mon, 22 Feb 2010 04:12:29 +0000 (20:12 -0800)]
sparc: Reimplement 64-bit aligned copy routines and remove from memcpy files.
2010-02-25 David S. Miller <davem@davemloft.net>
* sysdeps/sparc/sparc64/Makefile: Add align-cpy rule.
* sysdeps/sparc/sparc64/align-cpy.S: New.
* sysdeps/sparc/sparc64/memcpy.S (__align_cpy_1, __align_cpy_2,
__align_cpy_4, __align_cpy_8, __align_cpy_16): Remove.
* sysdeps/sparc/sparc64/sparcv9b/memcpy.S (__align_cpy_1,
__align_cpy_2, __align_cpy_4, __align_cpy_8, __align_cpy_16):
Remove.
* sysdeps/sparc/sparc64/sparcv9v/memcpy.S (__align_cpy_1,
__align_cpy_2, __align_cpy_4, __align_cpy_8, __align_cpy_16):
Remove.
* sysdeps/sparc/sparc64/sparcv9v2/memcpy.S (__align_cpy_1,
__align_cpy_2, __align_cpy_4, __align_cpy_8, __align_cpy_16):
Remove.
Ulrich Drepper [Thu, 25 Feb 2010 04:00:30 +0000 (20:00 -0800)]
We can use the 64-bit register versions of the double functions.
Ulrich Drepper [Thu, 25 Feb 2010 03:47:09 +0000 (19:47 -0800)]
Fix typos I added in malloc.c
Ulrich Drepper [Thu, 25 Feb 2010 03:27:24 +0000 (19:27 -0800)]
Fix comment.
H.J. Lu [Thu, 25 Feb 2010 02:26:30 +0000 (18:26 -0800)]
Fix issues in x86 memcpy-ssse3-rep.S
H.J. Lu [Thu, 25 Feb 2010 02:20:57 +0000 (18:20 -0800)]
Fix issues in x86 memcpy-ssse3.S
H.J. Lu [Thu, 25 Feb 2010 02:11:35 +0000 (18:11 -0800)]
Fix issues in x86 memset-sse2.S/memset-sse2-rep.S
Ulrich Drepper [Thu, 25 Feb 2010 00:07:57 +0000 (16:07 -0800)]
Fix reporting of I/O errors in *dprintf functions.
Petr Baudis [Wed, 24 Feb 2010 23:44:29 +0000 (15:44 -0800)]
Fix assertion in palloc and pvalloc as well.
Jim Meyering [Wed, 29 Oct 2008 10:05:39 +0000 (11:05 +0100)]
manual: fix typo: s/are/is/
* manual/math.texi (BSD Random): Fix a typo: s/are/is/
Jim Meyering [Wed, 4 Jun 2008 09:46:50 +0000 (11:46 +0200)]
manual: adjust grammar
* manual/charset.texi: Adjust grammar.
Jim Meyering [Wed, 28 May 2008 09:37:21 +0000 (11:37 +0200)]
manual: fix doubled-words and typos
* manual/charset.texi (Selecting the Conversion): Likewise.
* manual/errno.texi (Error Messages): Likewise.
* manual/getopt.texi (Getopt Long Options): Likewise.
* manual/memory.texi (Resizing the Data Segment): Likewise.
* manual/message.texi (GUI program problems): Likewise.
* manual/resource.texi (CPU Affinity): Likewise.
* manual/stdio.texi (Streams and Threads): Likewise.
* manual/time.texi (High Accuracy Clock): Likewise.
David S. Miller [Sat, 20 Feb 2010 21:43:09 +0000 (13:43 -0800)]
sparc: Fix 32-bit makecontext arg passing.
test-makecontext3 fails because we fill in the argument
stack slots past the 5th using the wrong index.
David S. Miller [Sat, 20 Feb 2010 21:42:07 +0000 (13:42 -0800)]
sparc: Fix v9 memchr with long buffer lengths.
test-memchr fails on 32-bit sparc with v9 optimized memchr because
it uses signed branch comparisons on the buffer pointers.
David S. Miller [Sat, 20 Feb 2010 21:40:59 +0000 (13:40 -0800)]
Fix PLT rewrite when prelinking fails on 32-bit sparc.
When prelinking fails we have to rewrite the PLT, but the code
doing so forgets to adjust all rela->r_offset addresses by the
location of where the object was actually mapped.
Joseph Myers [Sat, 20 Feb 2010 21:39:58 +0000 (13:39 -0800)]
Fix PLT rewrite when prelinking fails on 64-bit sparc.
When prelinking fails we have to rewrite the PLT, but the code
doing so forgets to adjust all rela->r_offset addresses by the
location of where the object was actually mapped.
Carl Fredrik Hammar [Fri, 19 Feb 2010 19:08:00 +0000 (11:08 -0800)]
Fix Hurd tiocsctty change.
Ulrich Drepper [Fri, 19 Feb 2010 07:12:10 +0000 (23:12 -0800)]
Whitespace fix.
H.J. Lu [Fri, 19 Feb 2010 07:11:21 +0000 (23:11 -0800)]
Use CPUID_OFFSET instead of FEATURE_OFFSET
H.J. Lu [Thu, 18 Feb 2010 07:01:55 +0000 (23:01 -0800)]
Align x86 memcmp-sse4.S and fix unwind info.
H.J. Lu [Thu, 18 Feb 2010 06:35:18 +0000 (22:35 -0800)]
Fix unwind info in x86 memcmp-ssse3.
H.J. Lu [Thu, 18 Feb 2010 06:27:41 +0000 (22:27 -0800)]
Simplify x86 strcmp-sse4 unwind info.
Ulrich Drepper [Thu, 18 Feb 2010 06:13:55 +0000 (22:13 -0800)]
Fix and cleanup unwind info in x86 strcmp-ssse<F3>.
Carl Fredrik Hammar [Wed, 17 Feb 2010 20:41:11 +0000 (12:41 -0800)]
Clean up Hurd TIOCSCTTY.
Carl Fredrik Hammar [Wed, 17 Feb 2010 19:04:30 +0000 (11:04 -0800)]
Use ioctl_handler_t typedef in Hurd ioctl macros.
Ulrich Drepper [Tue, 16 Feb 2010 02:47:02 +0000 (18:47 -0800)]
Remove commented-out code.
Ulrich Drepper [Mon, 15 Feb 2010 21:04:54 +0000 (13:04 -0800)]
Fix up new x86 string functions.
H.J. Lu [Mon, 15 Feb 2010 19:17:50 +0000 (11:17 -0800)]
32bit memcmp/strcmp/strncmp optimized for SSSE3/SSS4.2
Ulrich Drepper [Fri, 12 Feb 2010 16:04:28 +0000 (08:04 -0800)]
Cleanup ChangeLog.
Luis Machado [Fri, 12 Feb 2010 15:55:01 +0000 (07:55 -0800)]
Cleanup old obsolete PPC_REL16 checks
Alan Modra [Fri, 12 Feb 2010 13:32:09 +0000 (05:32 -0800)]
fix powerpc macros in tls-macros.h
Andreas Krebbel [Thu, 11 Feb 2010 15:22:58 +0000 (07:22 -0800)]
S/390: Disable two UTF conversion instructions
Ulrich Drepper [Thu, 11 Feb 2010 04:31:48 +0000 (20:31 -0800)]
Fix file descriotor leak in nftw with FTW_CHDIR
David S. Miller [Wed, 10 Feb 2010 15:42:17 +0000 (07:42 -0800)]
Sparc STT_GNU_IFUNC support