Joseph Myers [Thu, 12 Aug 2010 15:38:57 +0000 (15:38 +0000)]
Add prlimit64 for ARM.
Andreas Schwab [Mon, 2 Aug 2010 16:48:56 +0000 (18:48 +0200)]
m68k: fix loading of GOT for Coldfire
Andreas Schwab [Mon, 2 Aug 2010 16:47:27 +0000 (18:47 +0200)]
m68k: cleanup sysdep files
Use sysdep files in subdirectories instead of testing cpu macros.
Joseph Myers [Thu, 24 Jun 2010 16:18:51 +0000 (16:18 +0000)]
Define F_SETPIPE_SZ and F_GETPIPE_SZ for M68K.
Carlos O'Donell [Thu, 24 Jun 2010 16:13:36 +0000 (12:13 -0400)]
[hppa] Fix incorrect stack frame usage in vfork.
In a multithreaded environment the call to vfork was
incorrectly creating a stack frame. Given that the
child unwinds the stack frame first to call exec, it
will corrupt any values the parent stored in the stack
frame. The solution is to avoid creating a stack frame
unless required to call an error function, in which case
we are assured no child was created.
Carlos O'Donell [Wed, 23 Jun 2010 21:03:11 +0000 (17:03 -0400)]
[hppa] Fix *context stack usage for varargs
The getcontext, and setcontext functions should
not adjust the stack, and should load the stack
pointer from the machine context. Calling makecontext
should create a frame for spilled incoming arguments,
and sync uc_stack.ss_sp to the machine context.
We do not support calling getcontext, modifying ss_sp,
and calling setcontext directly.
Joseph Myers [Mon, 14 Jun 2010 22:09:52 +0000 (22:09 +0000)]
Define F_SETPIPE_SZ and F_GETPIPE_SZ for MIPS.
Joseph Myers [Mon, 14 Jun 2010 22:09:08 +0000 (22:09 +0000)]
Define F_SETPIPE_SZ and F_GETPIPE_SZ for ARM.
Andreas Schwab [Sun, 13 Jun 2010 20:30:17 +0000 (22:30 +0200)]
m68k: mark all inline math functions as non-throwing
Andreas Schwab [Sun, 13 Jun 2010 19:09:38 +0000 (21:09 +0200)]
m68k: Add required definitions to sys/user.h
Andreas Schwab [Fri, 11 Jun 2010 19:58:32 +0000 (21:58 +0200)]
m68k: force alignment of futex variables
Andreas Schwab [Mon, 7 Jun 2010 08:11:17 +0000 (10:11 +0200)]
hppa: Update nptl/pthread.h to match generic file
Andreas Schwab [Sat, 22 May 2010 19:04:42 +0000 (21:04 +0200)]
m68k: add c++-types and localplt data for m68k-linux-gnu
Joseph Myers [Fri, 21 May 2010 23:18:13 +0000 (23:18 +0000)]
Fix internal_recvmmsg build attributes for ARM EABI.
Joseph Myers [Fri, 21 May 2010 23:16:17 +0000 (23:16 +0000)]
Fix recvmmsg for MIPS.
Richard Henderson [Tue, 4 May 2010 16:12:27 +0000 (09:12 -0700)]
Add BZ markers.
Richard Henderson [Tue, 4 May 2010 16:06:15 +0000 (09:06 -0700)]
alpha: fix memchr to not cause memory faults.
http://www.mail-archive.com/debian-alpha@lists.debian.org/msg25088.html
Signed-off-by: Matt Turner <mattst88@gmail.com>
Aurelien Jarno [Tue, 4 May 2010 03:25:06 +0000 (23:25 -0400)]
alpha: add dl-procinfo support.
Fixes glibc bug 6827.
Signed-off-by: Matt Turner <mattst88@gmail.com>
Aurelien Jarno [Tue, 4 May 2010 03:25:05 +0000 (23:25 -0400)]
alpha: fix corner cases in ceil, floor, rint.
Partial revert of
bebc49030c15. Even with the revert, ceil and floor are
still faster than libcpml's equivalent.
Fixes bug 5350.
Signed-off-by: Matt Turner <mattst88@gmail.com>
GOTO Masanori [Tue, 4 May 2010 03:25:04 +0000 (23:25 -0400)]
alpha: fix *xstat.c build failure for Linux headers < 2.6.4
Fixes glibc bug 1026.
http://sourceware.org/ml/libc-alpha/2005-02/msg00122.html
Signed-off-by: Matt Turner <mattst88@gmail.com>
Joseph Myers [Wed, 14 Apr 2010 19:28:10 +0000 (19:28 +0000)]
Update MIPS libc-abis configuration for libc changes.
Daniel Jacobowitz [Thu, 8 Apr 2010 16:43:55 +0000 (12:43 -0400)]
Fix unwinding through Thumb-2 system calls.
Joseph Myers [Tue, 6 Apr 2010 20:26:22 +0000 (20:26 +0000)]
Fix abiversion handling for MIPS.
Carlos O'Donell [Wed, 31 Mar 2010 17:52:39 +0000 (13:52 -0400)]
hppa: Define MSG_WAITFORONE.
Signed-off-by: Carlos O'Donell <carlos@codesourcery.com>
Joseph Myers [Tue, 30 Mar 2010 16:26:07 +0000 (16:26 +0000)]
Update ARM for ABIVERSION changes.
Richard Henderson [Tue, 30 Mar 2010 14:50:27 +0000 (07:50 -0700)]
alpha: Define MSG_WAITFORONE.
Signed-off-by: Richard Henderson <rth@twiddle.net>
Richard Henderson [Tue, 30 Mar 2010 14:48:27 +0000 (07:48 -0700)]
Update ChangeLog for alpha kernel-features.h pulls.
Matt Turner [Fri, 26 Mar 2010 20:49:56 +0000 (16:49 -0400)]
alpha: update kernel-features.h for syscalls added in 2.6.33.
Signed-off-by: Matt Turner <mattst88@gmail.com>
Matt Turner [Fri, 26 Mar 2010 20:49:55 +0000 (16:49 -0400)]
alpha: create kernel-features.h.
Signed-off-by: Matt Turner <mattst88@gmail.com>
Joseph Myers [Tue, 30 Mar 2010 13:16:44 +0000 (13:16 +0000)]
Define MSG_WAITFORONE for MIPS.
Richard Henderson [Fri, 26 Mar 2010 20:17:02 +0000 (13:17 -0700)]
alpha: Implement ____longjmp_chk.
Signed-off-by: Richard Henderson <rth@twiddle.net>
Richard Henderson [Fri, 26 Mar 2010 18:21:47 +0000 (11:21 -0700)]
alpha: Fix errlist-compat for GLIBC_2.12.
Signed-off-by: Richard Henderson <rth@twiddle.net>
Richard Henderson [Fri, 26 Mar 2010 18:20:21 +0000 (11:20 -0700)]
alpha: Add hidden alias for fegetenv.
Signed-off-by: Richard Henderson <rth@twiddle.net>
Richard Henderson [Fri, 26 Mar 2010 18:10:23 +0000 (11:10 -0700)]
alpha: Only define __libc_alpha_cache_shape in dl-sysdep.c.
The static program builds in libc were getting multiple
definition errors between dl-sysdep and dl-support.
Signed-off-by: Richard Henderson <rth@twiddle.net>
Richard Henderson [Fri, 26 Mar 2010 17:41:22 +0000 (10:41 -0700)]
alpha: Don't include asm/page.h in sys/user.h.
Signed-off-by: Richard Henderson <rth@twiddle.net>
Richard Henderson [Fri, 26 Mar 2010 17:38:14 +0000 (10:38 -0700)]
alpha: Update bits/fcntl.h for XPG7 and define f_owner_ex et al.
Signed-off-by: Richard Henderson <rth@twiddle.net>
Richard Henderson [Fri, 26 Mar 2010 17:30:25 +0000 (10:30 -0700)]
alpha: Define PTR_MANGLE for !PIC too.
Signed-off-by: Richard Henderson <rth@twiddle.net>
Richard Henderson [Fri, 26 Mar 2010 17:29:42 +0000 (10:29 -0700)]
alpha: Avoid unused variable warnings with INTERNAL_SYSCALL_ERR*.
Signed-off-by: Richard Henderson <rth@twiddle.net>
Richard Henderson [Fri, 26 Mar 2010 17:28:37 +0000 (10:28 -0700)]
alpha: Add sysdep/unix/sysv/linux/alpha/creat.c.
Signed-off-by: Richard Henderson <rth@twiddle.net>
Richard Henderson [Fri, 26 Mar 2010 17:27:37 +0000 (10:27 -0700)]
alpha: Adjust the libc_cv_alpha_hidden_gprel test for gcc 4.5.
GCC 4.5 was able to tell that BAR was read-only and zero, and
elided the load. Which caused the pattern match to fail.
Signed-off-by: Richard Henderson <rth@twiddle.net>
Richard Henderson [Fri, 26 Mar 2010 17:25:53 +0000 (10:25 -0700)]
alpha: Fix the return type of the atomic.h macros.
Signed-off-by: Richard Henderson <rth@twiddle.net>
Thomas Schwinge [Fri, 26 Mar 2010 18:12:56 +0000 (18:12 +0000)]
Add CFI statements to ARM's assembly code.
Joseph Myers [Wed, 24 Mar 2010 18:05:37 +0000 (18:05 +0000)]
Update MIPS dl-lookup.c from generic version.
Joseph Myers [Tue, 23 Mar 2010 15:25:31 +0000 (15:25 +0000)]
Really commit intended version of Alpha bits/socket.h.
Matt Turner [Tue, 23 Mar 2010 15:19:04 +0000 (15:19 +0000)]
Create bits/socket.h for alpha, correct SOCK_CLOEXEC and SOCK_NONBLOCK values.
Mischa Jonker [Tue, 23 Mar 2010 15:03:10 +0000 (15:03 +0000)]
Fix bug 11291: add *mem as atomic operation output for MIPS.
Andreas Schwab [Sat, 13 Mar 2010 17:14:35 +0000 (18:14 +0100)]
m68k: use signbit macro
Andreas Schwab [Sat, 13 Mar 2010 16:28:12 +0000 (17:28 +0100)]
m68k: remove duplicate __signbit definitions
Andreas Schwab [Sat, 13 Mar 2010 15:59:42 +0000 (16:59 +0100)]
m68k: define __signbit inlines
Andreas Schwab [Sat, 13 Mar 2010 00:00:03 +0000 (01:00 +0100)]
m68k: TLS reference to errno in syscall stubs
Andreas Schwab [Fri, 12 Mar 2010 21:15:23 +0000 (22:15 +0100)]
m68k: don't include <sysdep.h> in lowlevellock.h
Andreas Schwab [Fri, 12 Mar 2010 20:37:02 +0000 (21:37 +0100)]
Add m68k-helpers optimized for m680x0
Andreas Schwab [Fri, 12 Mar 2010 18:55:40 +0000 (19:55 +0100)]
Whitespace cleanup
Maxim Kuvyrkov [Fri, 12 Mar 2010 18:50:55 +0000 (19:50 +0100)]
NPTL support for m68k/ColdFire
Maxim Kuvyrkov [Tue, 9 Mar 2010 10:34:24 +0000 (02:34 -0800)]
m68k: update ColdFire sigcontext ABI
Maxim Kuvyrkov [Tue, 9 Mar 2010 10:32:38 +0000 (02:32 -0800)]
m68k: remove bits/siginfo.h in favor of generic one
Maxim Kuvyrkov [Tue, 9 Mar 2010 10:20:36 +0000 (02:20 -0800)]
m68k: update jmpbuf-unwind.h
Matt Turner [Wed, 17 Feb 2010 14:52:26 +0000 (09:52 -0500)]
Fix SOCK_CLOEXEC on HPPA to match O_CLOEXEC.
The kernel defines SOCK_CLOEXEC as
include/linux/net.h:#define SOCK_CLOEXEC O_CLOEXEC
arch/parisc/include/asm/fcntl.h:#define O_CLOEXEC
010000000
But glibc was defining
sysdeps/unix/sysv/linux/hppa/bits/socket.h: SOCK_CLOEXEC =
01000000,
Signed-off-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Kyle McMartin <kyle@redhat.com>
Signed-off-by: Carlos O'Donell <carlos@codesourcery.com>
Carlos O'Donell [Tue, 2 Feb 2010 21:50:15 +0000 (16:50 -0500)]
Define MADV_MERGEABLE and MADV_UNMERGEABLE.
Add MADV_MERGEABLE and MADV_UNMERGEABLE to bits/mman.h,
matching HPPA values used in Linux kernel 2.6.32.
Carlos O'Donell [Tue, 2 Feb 2010 21:40:28 +0000 (16:40 -0500)]
Update __set_cr27() to mark r31 clobbered.
The function __set_cr27() uses the `ble`
instruction without marking the link register
r31 as clobbered. This change adds r31 to the
list of clobbers. The TLS thread register is
cr27 and is set by calling __set_cr27().
Carlos O'Donell [Tue, 2 Feb 2010 21:36:48 +0000 (16:36 -0500)]
Add unlimited argument support to makecontext()
The initial implementation of makecontext()
supported only 8 arguments. This change adds
support for unlimited argument processing given
a large enough stack.
Joseph Myers [Wed, 10 Feb 2010 15:32:33 +0000 (15:32 +0000)]
Add hidden alias for M68K fegetenv.
Joseph Myers [Wed, 10 Feb 2010 15:15:58 +0000 (15:15 +0000)]
Add hidden alias for soft-float PowerPC fegetenv.
Joseph Myers [Wed, 10 Feb 2010 15:15:32 +0000 (15:15 +0000)]
Add hidden alias for MIPS fegetenv.
Joseph Myers [Wed, 10 Feb 2010 15:14:41 +0000 (15:14 +0000)]
Add hidden alias for ARM fegetenv.
Carlos O'Donell [Mon, 1 Feb 2010 22:52:33 +0000 (17:52 -0500)]
Fix SOCK_CLOEXEC for accept4
Adjust the value of SOCK_CLOEXEC to match the kernel
value used for accept4. This has never worked in the
past, and all old applications are broken, therefore
we change this value to match the kernel value.
Carlos O'Donell [Mon, 1 Feb 2010 22:47:51 +0000 (17:47 -0500)]
Adjust errlist-compat to 257 for GLIBC_2.12
Added definitions for EOWNERDEAD, ENOTRECOVERABLE
and ERFKILL.
Carlos O'Donell [Tue, 1 Dec 2009 15:45:41 +0000 (10:45 -0500)]
Update constants and rearrange file.
Update F_SETOWN_EX and F_GETOWN_EX. Rearrange
the file to match other targets, reducing future
diffs against other targets and making maintenance
easier.
Matt Turner [Sat, 30 Jan 2010 00:22:01 +0000 (00:22 +0000)]
Fix Alpha bits/stat.h double inclusion problem.
Matt Turner [Sat, 30 Jan 2010 00:21:08 +0000 (00:21 +0000)]
Update Alpha bits/sigaction.h for XPG7.
Matt Turner [Sat, 30 Jan 2010 00:19:01 +0000 (00:19 +0000)]
Update Alpha bits/fcntl.h for XPG7 and allow bits/stat.h inclusion from fcntl.h.
Matt Turner [Sat, 30 Jan 2010 00:17:16 +0000 (00:17 +0000)]
Update Alpha O_SYNC.
Mike Frysinger [Sat, 30 Jan 2010 00:11:54 +0000 (00:11 +0000)]
alpha: fix typo in timer_settime include
Joseph Myers [Fri, 29 Jan 2010 01:54:52 +0000 (01:54 +0000)]
Fix microMIPS glibc by avoiding hardcoded instruction length assumptions.
microMIPS is a variable-length encoding of the MIPS32 instruction set
(plus some extra instructions). As it supports almost all of MIPS32,
assembly sources in glibc do not generally need changes to work with
microMIPS, but dl-trampoline.c contains some code with a hardcoded
assumption that three instructions occupy twelve bytes. This patch
fixes this code for microMIPS by using the difference between two
labels to let the assembler calculate the relevant length.
Joseph Myers [Mon, 11 Jan 2010 21:51:34 +0000 (21:51 +0000)]
Fix M68K bits/stat.h double inclusion problem.
Joseph Myers [Mon, 11 Jan 2010 21:00:28 +0000 (21:00 +0000)]
Fix MIPS bits/stat.h double inclusion problem.
Joseph Myers [Mon, 11 Jan 2010 13:28:37 +0000 (13:28 +0000)]
Update MIPS bits/sigaction.h for XPG7.
Joseph Myers [Sun, 10 Jan 2010 19:02:51 +0000 (19:02 +0000)]
Update M68K bits/fcntl.h for XPG7 and allow bits/stat.h inclusion from fcntl.h.
Joseph Myers [Sun, 10 Jan 2010 16:56:19 +0000 (16:56 +0000)]
Update MIPS bits/fcntl.h for XPG7 and allow bits/stat.h inclusion from fcntl.h.
Joseph Myers [Sun, 10 Jan 2010 16:55:39 +0000 (16:55 +0000)]
Update ARM bits/fcntl.h for XPG7.
Joseph Myers [Wed, 16 Dec 2009 19:35:09 +0000 (19:35 +0000)]
Update M68K bits/poll.h for POSIX 2008.
Thomas Schwinge [Wed, 16 Dec 2009 18:02:51 +0000 (18:02 +0000)]
Move ARM EABI mcount into a separate .S file.
Joseph Myers [Wed, 16 Dec 2009 17:48:31 +0000 (17:48 +0000)]
Update MIPS bits/poll.h for POSIX 2008.
Joseph Myers [Wed, 16 Dec 2009 17:44:03 +0000 (17:44 +0000)]
Update MIPS dl-lookup.c.
Joseph Myers [Wed, 16 Dec 2009 12:37:07 +0000 (12:37 +0000)]
Update M68K O_SYNC.
Joseph Myers [Tue, 15 Dec 2009 18:11:38 +0000 (18:11 +0000)]
Update MIPS O_SYNC.
Joseph Myers [Tue, 15 Dec 2009 18:11:13 +0000 (18:11 +0000)]
Update ARM O_SYNC.
Joseph Myers [Wed, 9 Dec 2009 16:51:18 +0000 (16:51 +0000)]
Update MIPS bits/socket.h for mmsghdr and recvmmsg.
Matt Turner [Mon, 23 Nov 2009 19:56:01 +0000 (14:56 -0500)]
Use struct timespec for timestamps in struct stat for Alpha also if __USE_XOPEN2K8.
Signed-off-by: Matt Turner <mattst88@gmail.com>
Matt Turner [Mon, 23 Nov 2009 19:47:54 +0000 (14:47 -0500)]
Fix sync_file_range parameter names
Signed-off-by: Matt Turner <mattst88@gmail.com>
Matt Turner [Mon, 23 Nov 2009 19:44:49 +0000 (14:44 -0500)]
Add new MADV_* values
Signed-off-by: Matt Turner <mattst88@gmail.com>
Joseph Myers [Tue, 1 Dec 2009 01:27:19 +0000 (01:27 +0000)]
Fix MIPS64 posix_fadvise and posix_fadvise64.
Similar to the problems I fixed for posix_fallocate
<http://sourceware.org/ml/libc-ports/2008-12/msg00007.html> and
fallocate <http://sourceware.org/ml/libc-ports/2009-05/msg00031.html>,
MIPS64 posix_advise also needs fixes to use the correct syscall
interfaces. Although the existing n32 posix_fadvise64 is OK, getting
posix_fadvise from syscalls.list does not work correctly, as this
function is supposed to return an error code instead of storing it in
errno as the generic syscall implementations from syscalls.list do.
Joseph Myers [Tue, 1 Dec 2009 00:07:32 +0000 (00:07 +0000)]
Update MIPS dl-lookup.c from generic version.
Carlos O'Donell [Wed, 25 Nov 2009 23:18:56 +0000 (18:18 -0500)]
Add correct aligment to pthread_*_t structures.
In the switch to NPTL the pthrad_mutex_t, pthread_cond_t,
and pthread_rwlock_t structures were made binary compatible
with the Linuxthread versions. However, their aligment when
embedded in other structures was changed. When rebuilding
libstdc++ this was detected, and the following changes return
the structures to their original Linuxthreads alignments.
2009-11-25 Carlos O'Donell <carlos@codesourcery.com>
* sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h:
Use correct alignment for pthread_mutex_t, pthread_cond_t,
and pthread_rwlock_t.
Carlos O'Donell [Sun, 22 Nov 2009 21:44:05 +0000 (16:44 -0500)]
Avoid warnings when including atomic.h.
Cast oldval to the same type as ret to avoid warnings when
including atomic.h.
2009-11-22 Carlos O'Donell <carlos@codesourcery.com>
* sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Avoid warnings
by casting oldval to int.
Joseph Myers [Mon, 23 Nov 2009 19:06:52 +0000 (19:06 +0000)]
Use struct timespec for timestamps in struct stat for MIPS also if __USE_XOPEN2K8.
Andreas Schwab [Mon, 23 Nov 2009 15:34:39 +0000 (16:34 +0100)]
Use struct timespec for timestamps in struct stat also if __USE_XOPEN2K8
Joseph Myers [Thu, 19 Nov 2009 22:34:08 +0000 (22:34 +0000)]
Define F_OWNER_PGRP for M68K.
Joseph Myers [Thu, 19 Nov 2009 16:46:57 +0000 (16:46 +0000)]
Define F_OWNER_PGRP for MIPS.
Joseph Myers [Thu, 19 Nov 2009 16:46:16 +0000 (16:46 +0000)]
Define F_OWNER_PGRP for ARM.