chromiumos/third_party/glibc-ports.git
4 years agoMove socket.h to bits/socket.h factory-2475.B factory-2569.B factory-2717.B factory-2723.14.B factory-2846.B factory-2848.B factory-2914.B factory-2985.B factory-2993.B factory-3004.B firmware-butterfly-2788.B firmware-link-2695.2.B firmware-link-2695.B firmware-parrot-2685.B firmware-snow-2695.90.B firmware-snow-2695.B firmware-stout-2817.B master release-R22-2723.B release-R23-2913.B stabilize stabilize-daisy stabilize-link stabilize-link-2913.278 glibc-2.11
Carlos O'Donell [Sun, 15 Nov 2009 20:53:20 +0000 (15:53 -0500)]
Move socket.h to bits/socket.h

Place socket.h in the correct location.

2009-11-15  Carlos O'Donell  <carlos@codesourcery.com>

[BZ #6676]

* sysdeps/unix/sysv/linux/hppa/socket.h: Move from here...
* sysdeps/unix/sysv/linux/hppa/bits/socket.h: ... to here.

4 years agoUpdate bits/fcntl.h for hppa.
Carlos O'Donell [Sun, 15 Nov 2009 20:46:46 +0000 (15:46 -0500)]
Update bits/fcntl.h for hppa.

Define values for F_GETOWN_EX and F_SETOWN_EX.
Define fallocate64@@GLIBC_2.11 and provide declarations
in fcntl.h with appropriate aliases.

2009-11-15  Carlos O'Donell  <carlos@codesourcery.com>

* sysdeps/unix/sysv/linux/hppa/Versions (libc): Add
fallocate64@@GLIBC_2.11.
* sysdeps/unix/sysv/linux/hppa/bits/fcntl.h
[__USE_GNU]: Define F_GETOWN_EX, and F_SETOWN_EX.
[!__USE_FILE_OFFSET64]: Define fallocate.
[__USE_FILE_OFFSET64 && __REDIRECT]: Define __REDIRECT.
[__USE_FILE_OFFSET64 && !__REDIRECT]: Define fallocate as
fallocate64.
[__USE_LARGEFILE64]: define fallocate64.

4 years agoImplement ELF_MACHINE_LOAD_ADDRESS using PC relative loads.
Carlos O'Donell [Sun, 15 Nov 2009 20:11:48 +0000 (15:11 -0500)]
Implement ELF_MACHINE_LOAD_ADDRESS using PC relative loads.

The current ELF_MACHINE_LOAD_ADDRESS used by the generic
function pointer code was not safe for use before relocation.
The macro has been rewritten to use only PC relative loads.

2009-11-15  Carlos O'Donell  <carlos@codesourcery.com>

* sysdeps/hppa/dl-fptr.h: Update copyright year.
Reduce ELF_MACHINE_BOOT_FPTR_TABLE_LEN to 64.
Implement ELF_MACHINE_LOAD_ADDRESS using PC relative loads.

4 years agoRemove constants which are now defined in generic file.
Carlos O'Donell [Sun, 15 Nov 2009 19:36:46 +0000 (14:36 -0500)]
Remove constants which are now defined in generic file.

Several constants are now defined in a generic file and no longer
need to be defined in the hppa specific file.

2009-11-15  Carlos O'Donell  <carlos@codesourcery.com>

* sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h:
Remove FUTEX_WAITERS, FUTEX_OWNER_DIED, and FUTEX_TID_MASK.

4 years agoFix socket constants.
Carlos O'Donell [Sun, 15 Nov 2009 19:33:51 +0000 (14:33 -0500)]
Fix socket constants.

[BZ #10527] Provide corrected socket constants that match the
kernel values.

2009-11-15  Carlos O'Donell  <carlos@codesourcery.com>
    Aurelian Jarno  <aurelien@aurel32.net>

[BZ #10527]

* sysdeps/unix/sysv/linux/hppa/socket.h: New file.

4 years agoEnable the use of -fPIE on hppa
Carlos O'Donell [Sun, 15 Nov 2009 19:30:29 +0000 (14:30 -0500)]
Enable the use of -fPIE on hppa

[BZ #6676] Use PIC relocations in start.S to support the use of -fPIE
on hppa.

2009-11-15  Carlos O'Donell  <carlos@codesourcery.com>

[BZ #6676]

* sysdeps/hppa/elf/start.S: Use R_PARISC_DLTIND* relocations
to support -fPIE.

4 years agoUse LIBGCC_S_SO to override generic version.
Carlos O'Donell [Sun, 15 Nov 2009 19:19:25 +0000 (14:19 -0500)]
Use LIBGCC_S_SO to override generic version.

[BZ #10920] Use the new generic override to specify the hppa
specific libgcc_s.so.4 version number. Remove the files which
hppa no longer has to duplicate in order to accomplish
overriding libgcc_s.so version number.

2009-11-08  Carlos O'Donell  <carlos@codesourcery.com>

[BZ #10920]

* sysdeps/hppa/libgcc_s.h: New file.
* sysdeps/unix/sysv/linux/hppa/nptl/unwind-forcedunwind.c: Remove.
* sysdeps/unix/sysv/linux/hppa/nptl/unwind-resume.c: Remove.

4 years agoAdd libgcc_s.h for m68k
Andreas Schwab [Sat, 14 Nov 2009 23:15:17 +0000 (00:15 +0100)]
Add libgcc_s.h for m68k

4 years agoDefine F_[GS]ETOWN_EX, F_OWNER_[TPG]ID, f_owner_ex for m68k
Andreas Schwab [Sat, 14 Nov 2009 22:57:55 +0000 (23:57 +0100)]
Define F_[GS]ETOWN_EX, F_OWNER_[TPG]ID, f_owner_ex for m68k

4 years agoFix F_SETOWN_EX and F_GETOWN_EX definitions for MIPS.
Joseph Myers [Sat, 14 Nov 2009 22:40:19 +0000 (22:40 +0000)]
Fix F_SETOWN_EX and F_GETOWN_EX definitions for MIPS.

4 years agoFix F_SETOWN_EX and F_GETOWN_EX definitions for ARM.
Joseph Myers [Sat, 14 Nov 2009 22:39:23 +0000 (22:39 +0000)]
Fix F_SETOWN_EX and F_GETOWN_EX definitions for ARM.

4 years agoFix alpha __fxstatat for empty file names.
Matt Turner [Tue, 10 Nov 2009 21:12:55 +0000 (21:12 +0000)]
Fix alpha __fxstatat for empty file names.

[BZ #10609]
* sysdeps/unix/sysv/linux/alpha/fxstatat.c (__fxstatat): Fix handling
of empty parameters for file names.

4 years agoFix M68K fallocate for -D_FILE_OFFSET_BITS=64.
Joseph Myers [Sat, 7 Nov 2009 13:30:54 +0000 (13:30 +0000)]
Fix M68K fallocate for -D_FILE_OFFSET_BITS=64.

* sysdeps/unix/sysv/linux/m68k/bits/fcntl.h (fallocate): Fix types
of last two arguments when -D_FILE_OFFSET_BITS=64.

4 years agoFix MIPS fallocate for -D_FILE_OFFSET_BITS=64.
Joseph Myers [Fri, 6 Nov 2009 23:45:30 +0000 (23:45 +0000)]
Fix MIPS fallocate for -D_FILE_OFFSET_BITS=64.

* sysdeps/unix/sysv/linux/mips/bits/fcntl.h (fallocate): Fix types
of last two arguments when -D_FILE_OFFSET_BITS=64.

4 years agoFix ARM fallocate for -D_FILE_OFFSET_BITS=64.
Joseph Myers [Fri, 6 Nov 2009 23:44:33 +0000 (23:44 +0000)]
Fix ARM fallocate for -D_FILE_OFFSET_BITS=64.

* sysdeps/unix/sysv/linux/arm/bits/fcntl.h (fallocate): Fix types
of last two arguments when -D_FILE_OFFSET_BITS=64.

4 years agoFix ARMv4T interworking.
Philip Blundell [Fri, 6 Nov 2009 08:07:18 +0000 (08:07 +0000)]
Fix ARMv4T interworking.

        * sysdeps/unix/sysv/linux/arm/clone.S: Support V4T interworking.
        * sysdeps/unix/sysv/linux/arm/sysdep.h (__local_syscall_error): Likewise.
        * sysdeps/arm/memcpy.S: Likewise.
        * sysdeps/arm/memmove.S: Likewise.

4 years agoFix m68k fchownat for empty file names.
Joseph Myers [Fri, 30 Oct 2009 20:52:15 +0000 (20:52 +0000)]
Fix m68k fchownat for empty file names.

[BZ #10609]
* sysdeps/unix/sysv/linux/m68k/fchownat.c (fchownat): Fix handling
of empty parameters for file names.

4 years agoDefine F_OWNER_* and f_owner_ex for MIPS.
Joseph Myers [Thu, 29 Oct 2009 16:51:55 +0000 (16:51 +0000)]
Define F_OWNER_* and f_owner_ex for MIPS.

* sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Define F_OWNER_* and
f_owner_ex.

4 years agoDefine F_OWNER_* and f_owner_ex for ARM.
Joseph Myers [Thu, 29 Oct 2009 16:51:04 +0000 (16:51 +0000)]
Define F_OWNER_* and f_owner_ex for ARM.

* sysdeps/unix/sysv/linux/arm/bits/fcntl.h: Define F_OWNER_* and
f_owner_ex.

4 years agoAdd ARM EABI build attributes.
Daniel Gutson [Thu, 22 Oct 2009 19:39:47 +0000 (19:39 +0000)]
Add ARM EABI build attributes.

Ensure that all objects in ARM EABI glibc have the proper EABI build
attributes to indicate that 8-byte stack alignment is required and
preserved.  (GNU ld does not currently give errors for mixing code
requiring 8-byte alignment - such as anything built with GCC - and
code not marked as preserving it, because of the prevalence of
assembly code without proper markers to indicate that alignment is
preserved.  The ARM RealView linker does give such errors.)

The bulk of the markers are accomplished by the change to sysdep.h,
but a few .S files do not include sysdep.h.  In the case of
internal_accept4.S, no code is generated because EABI does not have
socketcall, but for completeness a dummy file with the right
attributes is used to override the default version in libc.

* sysdeps/arm/sysdep.h: (Tag_ABI_align8_preserved,
Tag_ABI_align8_needed): Attributes added.
* sysdeps/arm/elf/start.S: Likewise.
* sysdeps/arm/eabi/abi-note.S: New file.
* sysdeps/unix/sysv/linux/arm/eabi/internal_accept4.S: New
file.

4 years agoFix register conflicts and avoid deprecated instructions in ARM EABI setjmp/longjmp.
Andrew Stubbs [Thu, 22 Oct 2009 19:35:53 +0000 (19:35 +0000)]
Fix register conflicts and avoid deprecated instructions in ARM EABI setjmp/longjmp.

* setjmp and longjmp were using the obsolete fstmiax and fldmiax
  instructions.

* Because of a confusion with two different sets of names for the same
  registers (r0...r3 and a1...a4), if VFP was present then the
  subsequent check for iWMMXt support would use a register that had
  been clobbered by saving/restoring the VFP registers.  (The bit
  being checked was clobbered by a reserved bit of FPSCR that it
  always 0 on present hardware, and no present hardware has both VFP
  and iWMMXt, so this did not cause visible problems.)

2009-10-22  Andrew Stubbs  <ams@codesourcery.com>
            Julian Brown  <julian@codesourcery.com>

* sysdeps/arm/eabi/setjmp.S (__sigsetjmp): Replace deprecated
instruction fstmiax with vstmia.
Correct register conflict and comment.
* sysdeps/arm/eabi/__longjmp.S (__longjmp): Use vldmia not fldmiax.
Don't clobber r1/a2 register before testing IWMMXT hwcap.

4 years agoFix locating GOT for Thumb-2 PIE binaries.
Julian Brown [Thu, 22 Oct 2009 19:22:35 +0000 (19:22 +0000)]
Fix locating GOT for Thumb-2 PIE binaries.

* sysdeps/arm/elf/start.S (_start): Avoid dependency on PC pipeline
offset.

4 years agoDefine F_SETOWN_EX and F_GETOWN_EX for MIPS.
Joseph Myers [Sat, 3 Oct 2009 17:39:53 +0000 (17:39 +0000)]
Define F_SETOWN_EX and F_GETOWN_EX for MIPS.

* sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Define F_SETOWN_EX
and F_GETOWN_EX.

4 years agoDefine F_SETOWN_EX and F_GETOWN_EX for ARM.
Joseph Myers [Sat, 3 Oct 2009 17:39:05 +0000 (17:39 +0000)]
Define F_SETOWN_EX and F_GETOWN_EX for ARM.

* sysdeps/unix/sysv/linux/arm/bits/fcntl.h: Define F_SETOWN_EX and
F_GETOWN_EX.

4 years agoPrevent GCC reusing "hi" and "lo" across system calls.
Daniel Jacobowitz [Fri, 25 Sep 2009 22:19:03 +0000 (18:19 -0400)]
Prevent GCC reusing "hi" and "lo" across system calls.

* sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
(__SYSCALL_CLOBBERS): Add "hi" and "lo".
* sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
(__SYSCALL_CLOBBERS): Likewise.
* sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
(__SYSCALL_CLOBBERS): Likewise.

4 years agoImplement new NPTL POSIX Threads ABI for HPPA.
Carlos O'Donell [Tue, 8 Sep 2009 18:32:53 +0000 (14:32 -0400)]
Implement new NPTL POSIX Threads ABI for HPPA.

This version of the NPTL POSIX thread ABI for hppa does
not break backwards compatibility with the the old
Linuxthreads ABI, and is therefore suitable for release
by distributions.

sysdeps/unix/sysv/linux/hppa/
* internaltypes.h: New file.

sysdeps/unix/sysv/linux/hppa/nptl/
* pthreadP.h: New file.
* pthread.h: New file.
* pthread_cond_broadcast.c: New file.
* pthread_cond_destroy.c: New file.
* pthread_cond_init.c: New file.
* pthread_cond_signal.c: New file.
* pthread_cond_timedwait.c: New file.
* pthread_cond_wait.c: New file.
* bits/pthreadtypes.h: Make pthread_mutex_t,
pthread_rwlock_t, and pthread_cond_t backwards
compatible.

4 years agoAdd ____longjmp_chk for m68k-linux
Andreas Schwab [Sun, 6 Sep 2009 19:20:26 +0000 (21:20 +0200)]
Add ____longjmp_chk for m68k-linux

4 years agoAdd alternate signal stack support to ARM ____longjmp_chk.
Joseph Myers [Thu, 6 Aug 2009 16:53:09 +0000 (16:53 +0000)]
Add alternate signal stack support to ARM ____longjmp_chk.

* sysdeps/arm/____longjmp_chk.S: Remove.  Replaced by....
* sysdeps/unix/sysv/linux/arm/____longjmp_chk.S,
sysdeps/unix/sysv/linux/arm/eabi/____longjmp_chk.S: This.  New
files.
* sysdeps/arm/__longjmp.S, sysdeps/arm/eabi/__longjmp.S: Use r4
for saved sp.

4 years agoSignal stack support for MIPS ____longjmp_chk.
Joseph Myers [Wed, 5 Aug 2009 21:02:50 +0000 (21:02 +0000)]
Signal stack support for MIPS ____longjmp_chk.

* sysdeps/mips/____longjmp_chk.c: Remove.  Replaced by....
* sysdeps/unix/sysv/linux/mips/____longjmp_chk.c: This.  New file.
* sysdeps/mips/__longjmp.c (__longjmp): Use explicit register
variable for env.  Use expansion of CHECK_SP macro for check.
* sysdeps/mips/mips64/__longjmp.c (__Longjmp): Likewise.

4 years agoMake accept4 for MIPS o32 avoid socketcall.
Joseph Myers [Mon, 3 Aug 2009 16:48:38 +0000 (16:48 +0000)]
Make accept4 for MIPS o32 avoid socketcall.

sysdeps/unix/sysv/linux/internal_accept4.S expects socket.S to be
present if __NR_socketcall is defined (which it is on MIPS o32, even
though there are separate syscalls as well) and __NR_accept4 isn't.
MIPS does not have socket.S, since it uses separate syscalls, but
though the accept4 syscall should be added soon present kernel headers
do not have it.  This patch creates a dummy internal_accept4.S for
MIPS o32, and an accept4.c wrapper that undefines __NR_socketcall so
that the main accept4.c falls back to the ENOSYS implementation if
__NR_accept4 isn't defined; it doesn't seem worthwhile to have a
special socketcall-based assembly implementation just for o32 on a few
kernels in the range between accept4 being available via socketcall
and the accept4 syscall being available.

5 years agoDefine __ASSUME_EVENTFD2 and __ASSUME_SIGNALFD4 for MIPS.
Aurelien Jarno [Wed, 29 Jul 2009 15:27:35 +0000 (15:27 +0000)]
Define __ASSUME_EVENTFD2 and __ASSUME_SIGNALFD4 for MIPS.

* sysdeps/unix/sysv/linux/mips/kernel-features.h: Define
__ASSUME_EVENTFD2 and __ASSUME_SIGNALFD4.

5 years agoDefine __ASSUME_EVENTFD2 and __ASSUME_SIGNALFD4 for ARM.
Aurelien Jarno [Wed, 29 Jul 2009 15:26:39 +0000 (15:26 +0000)]
Define __ASSUME_EVENTFD2 and __ASSUME_SIGNALFD4 for ARM.

* sysdeps/unix/sysv/linux/arm/kernel-features.h: Define
__ASSUME_EVENTFD2 and __ASSUME_SIGNALFD4.

5 years agoasm/elf.h don't exist anymore since linux kernel 2.6.25
Aurelien Jarno [Mon, 13 Jul 2009 22:04:33 +0000 (00:04 +0200)]
asm/elf.h don't exist anymore since linux kernel 2.6.25

* sysdeps/unix/sysv/linux/alpha/sys/procfs.h (ELF_NGREG,
ELF_NFPREG, elf_greg_t, elf_gregset_t, elf_fpreg_t,
elf_fpregset_t): Define. Don't include asm/elf.h.

5 years agoUpdate include paths following the move of alpha to ports
Aurelien Jarno [Mon, 13 Jul 2009 21:59:25 +0000 (23:59 +0200)]
Update include paths following the move of alpha to ports

* sysdeps/unix/sysv/linux/alpha/getdents64.c: Adjust include path.
* sysdeps/unix/sysv/linux/alpha/nptl/fork.c: Likewise.
* sysdeps/unix/sysv/linux/alpha/nptl/sem_post.c: Likewise.
* sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Likewise.
* sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Likewise.
* sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Likewise.
* sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Likewise.
* sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Likewise.
* sysdeps/unix/sysv/linux/alpha/sysconf.c: Likewise.

5 years ago * sysdeps/unix/sysv/linux/alpha/nptl/lowlevellock.h: Define
Aurelien Jarno [Mon, 13 Jul 2009 21:57:18 +0000 (23:57 +0200)]
* sysdeps/unix/sysv/linux/alpha/nptl/lowlevellock.h: Define
FUTEX_WAIT_BITSET, FUTEX_WAKE_BITSET, FUTEX_CLOCK_REALTIME and
FUTEX_BITSET_MATCH_ANY.

5 years agoAdapt alpha version of getsysstats.c to the changes in the main Linux version
Aurelien Jarno [Mon, 13 Jul 2009 21:52:54 +0000 (23:52 +0200)]
Adapt alpha version of getsysstats.c to the changes in the main Linux version

* sysdeps/unix/sysv/linux/alpha/getsysstats.c (GET_NPROCS_PARSER):
        Change parameters and use next_line.

5 years agoUpdate MIPS dl-lookup.c for changes to generic version.
Joseph Myers [Fri, 17 Jul 2009 20:39:04 +0000 (20:39 +0000)]
Update MIPS dl-lookup.c for changes to generic version.

* sysdeps/mips/do-lookup.h: Remove.
* sysdeps/mips/dl-lookup.c: Update from generic version, with
non-PIC handling integrated.

5 years agoAvoid invalid unwind directives when building crti.o and crtn.o for ARM EABI.
Paul Brook [Tue, 30 Jun 2009 20:10:14 +0000 (20:10 +0000)]
Avoid invalid unwind directives when building crti.o and crtn.o for ARM EABI.

* sysdeps/arm/eabi/Makefile (CFLAGS-initfini.s): Add
-fno-asynchronous-unwind-tables -fno-unwind-tables.
(CFLAGS-pt-initfini.s): Ditto.

5 years agoAdd missing CLIBABI variables __aeabi_stdin, __aeabi_stdout, __aeabi_stderr.
Nathan Froyd [Thu, 25 Jun 2009 13:27:59 +0000 (13:27 +0000)]
Add missing CLIBABI variables __aeabi_stdin, __aeabi_stdout, __aeabi_stderr.

* sysdeps/arm/eabi/aeabi_lcsts.c (__aeabi_stdin, __aeabi_stdout,
__aeabi_stderr): New variables.
(setup_aeabi_stdio): New function.  Add it to .preinit_array.

5 years agoARM EABI backtrace using unwind information.
Maxim Kuvyrkov [Wed, 24 Jun 2009 15:55:04 +0000 (15:55 +0000)]
ARM EABI backtrace using unwind information.

2009-06-24  Maxim Kuvyrkov  <maxim@codesourcery.com>
            Mark Mitchell  <mark@codesourcery.com>
            Joseph Myers  <joseph@codesourcery.com>
            Kazu Hirata  <kazu@codesourcery.com>

* sysdeps/arm/eabi/backtrace.c: New.
* sysdeps/arm/eabi/Makefile (CFLAGS-backtrace.c): Add
-funwind-tables.
* sysdeps/arm/preconfigure: Add -fno-unwind-tables to CFLAGS.
* sysdeps/unix/sysv/linux/arm/eabi/configure.in: Remove
-fno-unwind-tables from CFLAGS.
* sysdeps/unix/sysv/linux/arm/eabi/configure: Regenerate.
* sysdeps/unix/sysv/linux/arm/eabi/nptl/unwind.h (_Unwind_Trace_Fn):
Define.
(_Unwind_Backtrace): Declare.

5 years agoDefine PF_IEEE802154 and AF_IEEE802154 for MIPS.
Joseph Myers [Thu, 18 Jun 2009 22:04:19 +0000 (22:04 +0000)]
Define PF_IEEE802154 and AF_IEEE802154 for MIPS.

* sysdeps/unix/sysv/linux/mips/bits/socket.h: Define PF_IEEE802154
and AF_IEEE802154.

5 years agoUse unsigned comparison in ARM ____longjmp_chk.
Joseph Myers [Mon, 18 May 2009 19:48:54 +0000 (19:48 +0000)]
Use unsigned comparison in ARM ____longjmp_chk.

* sysdeps/arm/____longjmp_chk.S (CHECK_SP): Use unsigned
comparison.

5 years ago____longjmp_chk for MIPS.
Joseph Myers [Sat, 16 May 2009 22:24:56 +0000 (22:24 +0000)]
____longjmp_chk for MIPS.

* sysdeps/mips/____longjmp_chk.c: New file.
* sysdeps/mips/__longjmp.c: If CHECK_SP is defined, use it.  Don't
undefine __longjmp.
* sysdeps/mips64/__longjmp.c: Likewise.

5 years ago____longjmp_chk for ARM.
Joseph Myers [Sat, 16 May 2009 22:20:23 +0000 (22:20 +0000)]
____longjmp_chk for ARM.

* sysdeps/arm/____longjmp_chk.S: New file.
* sysdeps/arm/__longjmp.S: If CHECK_SP is defined, use it.
* sysdeps/arm/eabi/__longjmp.S: Likewise.

5 years agofallocate fixes for MIPS n32 and n64.
Joseph Myers [Sat, 16 May 2009 17:42:10 +0000 (17:42 +0000)]
fallocate fixes for MIPS n32 and n64.

* sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate.c,
sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate64.c,
sysdeps/unix/sysv/linux/mips/mips64/n64/fallocate.c,
sysdeps/unix/sysv/linux/mips/mips64/n64/fallocate64.c: New.

5 years agoAssume preadv and pwritev syscalls on ARM for 2.6.30.
Joseph Myers [Sat, 16 May 2009 15:19:32 +0000 (15:19 +0000)]
Assume preadv and pwritev syscalls on ARM for 2.6.30.

* sysdeps/unix/sysv/linux/arm/kernel-features.h (__ASSUME_PREADV,
__ASSUME_PWRITEV): Don't undefine.

5 years ago * sysdeps/unix/sysv/linux/m68k/Versions (libc): Add
Joseph Myers [Sat, 16 May 2009 15:14:44 +0000 (15:14 +0000)]
* sysdeps/unix/sysv/linux/m68k/Versions (libc): Add
fallocate64@@GLIBC_2.11.

5 years agoAdd fallocate64 export for MIPS.
Joseph Myers [Sat, 16 May 2009 14:30:47 +0000 (14:30 +0000)]
Add fallocate64 export for MIPS.

* sysdeps/unix/sysv/linux/mips/Versions (libc): Add
fallocate64@@GLIBC_2.11.

5 years agoAdd fallocate64 export for ARM.
Joseph Myers [Sat, 16 May 2009 14:29:06 +0000 (14:29 +0000)]
Add fallocate64 export for ARM.

* sysdeps/unix/sysv/linux/arm/Versions (libc): Add
fallocate64@@GLIBC_2.11.

5 years agoRemove .cvsignore files glibc-2.10.1
Andreas Schwab [Sat, 16 May 2009 08:36:20 +0000 (10:36 +0200)]
Remove .cvsignore files

5 years agoFix MIPS n64 build failure with preadv64/pwritev64 aliases.
Joseph Myers [Thu, 14 May 2009 22:24:35 +0000 (22:24 +0000)]
Fix MIPS n64 build failure with preadv64/pwritev64 aliases.

* sysdeps/unix/sysv/linux/mips/mips64/n64/preadv64.c,
sysdeps/unix/sysv/linux/mips/mips64/n64/pwritev64.c: New files.

5 years ago* sysdeps/unix/sysv/linux/m68k/kernel-features.h: Revert last
Andreas Schwab [Sat, 25 Apr 2009 19:30:25 +0000 (19:30 +0000)]
* sysdeps/unix/sysv/linux/m68k/kernel-features.h: Revert last
change, the syscalls have been added to 2.6.30-rc4.

5 years ago2009-04-25 Aurelien Jarno <aurelien@aurel32.net>
Joseph Myers [Sat, 25 Apr 2009 15:23:44 +0000 (15:23 +0000)]
2009-04-25  Aurelien Jarno  <aurelien@aurel32.net>

* sysdeps/arm/eabi/fpu_control.h: If soft-float, don't use
floating-point registers.

5 years ago2009-04-24 Carlos O'Donell <carlos@codesourcery.com>
Carlos O'Donell [Fri, 24 Apr 2009 20:37:17 +0000 (20:37 +0000)]
2009-04-24  Carlos O'Donell  <carlos@codesourcery.com>

* sysdeps/hppa/hppa1.1/s_signbit.c: New file.

5 years ago2009-04-23 Carlos O'Donell <carlos@codesourcery.com>
Carlos O'Donell [Fri, 24 Apr 2009 02:53:23 +0000 (02:53 +0000)]
2009-04-23  Carlos O'Donell  <carlos@codesourcery.com>

* sysdeps/hppa/dl-machine.h: Remove VALID_ELF_OSABI,
VALID_ELF_ABIVERSION, and VALID_ELF_HEADER.

5 years ago2009-04-23 Carlos O'Donell <carlos@codesourcery.com>
Carlos O'Donell [Fri, 24 Apr 2009 02:50:30 +0000 (02:50 +0000)]
2009-04-23  Carlos O'Donell  <carlos@codesourcery.com>

* sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Do not include
sysdep.h. Document the reason for other includes.

5 years ago2009-04-23 Carlos O'Donell <carlos@codesourcery.com>
Carlos O'Donell [Fri, 24 Apr 2009 02:48:15 +0000 (02:48 +0000)]
2009-04-23  Carlos O'Donell  <carlos@codesourcery.com>

* sysdeps/unix/sysv/linux/hppa/sysdep.h [!__ASSEMBLER__]:
Include errno.h.

5 years ago2009-04-18 Maciej W. Rozycki <macro@codesourcery.com>
Joseph Myers [Sat, 18 Apr 2009 17:32:04 +0000 (17:32 +0000)]
2009-04-18  Maciej W. Rozycki  <macro@codesourcery.com>

* sysdeps/unix/sysv/linux/mips/getcontext.S: New file.
* sysdeps/unix/sysv/linux/mips/makecontext.S: New file.
* sysdeps/unix/sysv/linux/mips/setcontext.S: New file.
* sysdeps/unix/sysv/linux/mips/swapcontext.S: New file.
* sysdeps/unix/sysv/linux/mips/sys/ucontext.h (mcontext_t):
Update comment.
* sysdeps/unix/sysv/linux/mips/kernel_rt_sigframe.h: New file.
* sysdeps/unix/sysv/linux/mips/ucontext_i.sym: New file.
* sysdeps/unix/sysv/linux/mips/Makefile (gen-as-const-headers):
Add ucontext_i.sym.

5 years ago * sysdeps/unix/sysv/linux/m68k/kernel-features.h (__ASSUME_PREADV,
Joseph Myers [Sat, 18 Apr 2009 16:26:00 +0000 (16:26 +0000)]
* sysdeps/unix/sysv/linux/m68k/kernel-features.h (__ASSUME_PREADV,
__ASSUME_PWRITEV): Undefine.

5 years ago * sysdeps/unix/sysv/linux/arm/kernel-features.h (__ASSUME_PREADV,
Joseph Myers [Sat, 18 Apr 2009 14:08:41 +0000 (14:08 +0000)]
* sysdeps/unix/sysv/linux/arm/kernel-features.h (__ASSUME_PREADV,
__ASSUME_PWRITEV): Undefine.

5 years ago * sysdeps/unix/sysv/linux/mips/kernel-features.h (__ASSUME_PREADV,
Joseph Myers [Sat, 18 Apr 2009 14:08:18 +0000 (14:08 +0000)]
* sysdeps/unix/sysv/linux/mips/kernel-features.h (__ASSUME_PREADV,
__ASSUME_PWRITEV): Don't define here.

5 years ago2009-04-15 Maciej W. Rozycki <macro@codesourcery.com>
Joseph Myers [Wed, 15 Apr 2009 20:22:41 +0000 (20:22 +0000)]
2009-04-15  Maciej W. Rozycki  <macro@codesourcery.com>

* sysdeps/mips/sys/fpregdef.h: Update for new ABIs.

5 years ago * sysdeps/unix/sysv/linux/mips/bits/socket.h: Add missing protocol
Joseph Myers [Thu, 9 Apr 2009 22:14:47 +0000 (22:14 +0000)]
* sysdeps/unix/sysv/linux/mips/bits/socket.h: Add missing protocol
numbers.
* sysdeps/unix/sysv/linux/mips/sys/eventfd.h (EFD_SEMAPHORE):
Define.
* sysdeps/unix/sysv/linux/mips/kernel-features.h: Add entries for
preadv and pwritev.

5 years ago2009-03-18 Maciej W. Rozycki <macro@codesourcery.com>
Joseph Myers [Wed, 18 Mar 2009 14:38:51 +0000 (14:38 +0000)]
2009-03-18  Maciej W. Rozycki  <macro@codesourcery.com>

* sysdeps/unix/sysv/linux/mips/readelflib.c (process_elf_file):
Use the Elf32_Ehdr type to check for EF_MIPS_ABI2 in the flags.

5 years ago2009-03-18 Zhang Le <r0bertz@gentoo.org>
Joseph Myers [Wed, 18 Mar 2009 14:31:30 +0000 (14:31 +0000)]
2009-03-18  Zhang Le  <r0bertz@gentoo.org>

[BZ #7074]
* sysdeps/unix/sysv/linux/mips/readelflib.c (process_elf_file):
Fix the condition used to annotate n32 objects.

5 years ago * sysdeps/unix/sysv/linux/m68k/getsysstats.c (GET_NPROCS_PARSER):
Joseph Myers [Tue, 17 Mar 2009 17:41:36 +0000 (17:41 +0000)]
* sysdeps/unix/sysv/linux/m68k/getsysstats.c (GET_NPROCS_PARSER):
Change parameters and use next_line.

5 years ago * sysdeps/unix/sysv/linux/mips/getsysstats.c (GET_NPROCS_PARSER):
Joseph Myers [Tue, 17 Mar 2009 15:52:15 +0000 (15:52 +0000)]
* sysdeps/unix/sysv/linux/mips/getsysstats.c (GET_NPROCS_PARSER):
Change parameters and use next_line.

5 years ago * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Include errno.h.
Joseph Myers [Tue, 17 Mar 2009 15:49:10 +0000 (15:49 +0000)]
* sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Include errno.h.
* sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
* sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.

5 years ago2009-03-16 Khem Raj <raj.khem@gmail.com>
Joseph Myers [Tue, 17 Mar 2009 12:32:06 +0000 (12:32 +0000)]
2009-03-16  Khem Raj  <raj.khem@gmail.com>

* sysdeps/unix/sysv/linux/arm/sysdep.h: Include errno.h.

5 years ago * sysdeps/m68k/bits/link.h: Uglify function parameter names.
Joseph Myers [Sun, 15 Mar 2009 18:42:52 +0000 (18:42 +0000)]
* sysdeps/m68k/bits/link.h: Uglify function parameter names.

5 years ago * sysdeps/mips/bits/link.h: Uglify function parameter names.
Joseph Myers [Sun, 15 Mar 2009 16:54:26 +0000 (16:54 +0000)]
* sysdeps/mips/bits/link.h: Uglify function parameter names.
* sysdeps/unix/sysv/linux/mips/sys/cachectl.h: Likewise.
* sysdeps/unix/sysv/linux/mips/sys/eventfd.h: Likewise.
* sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Likewise.
* sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.

5 years ago * sysdeps/arm/bits/link.h: Uglify function parameter names.
Joseph Myers [Sun, 15 Mar 2009 16:53:46 +0000 (16:53 +0000)]
* sysdeps/arm/bits/link.h: Uglify function parameter names.
* sysdeps/unix/sysv/linux/arm/sys/io.h: Likewise.
* sysdeps/arm/eabi/bits/setjmp.h: Uglify attribute name.

5 years ago * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h: Declare
Joseph Myers [Wed, 4 Mar 2009 22:49:21 +0000 (22:49 +0000)]
* sysdeps/unix/sysv/linux/m68k/bits/fcntl.h: Declare
fallocate{,64}.

5 years ago * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Declare
Joseph Myers [Tue, 3 Mar 2009 23:19:19 +0000 (23:19 +0000)]
* sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Declare
fallocate{,64}.

5 years ago * sysdeps/unix/sysv/linux/arm/bits/fcntl.h: Declare
Joseph Myers [Tue, 3 Mar 2009 23:18:56 +0000 (23:18 +0000)]
* sysdeps/unix/sysv/linux/arm/bits/fcntl.h: Declare
fallocate{,64}.

5 years ago * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Protect UTIME_NOW and
Joseph Myers [Fri, 27 Feb 2009 13:16:51 +0000 (13:16 +0000)]
* sysdeps/unix/sysv/linux/m68k/bits/stat.h: Protect UTIME_NOW and
UTIME_OMIT only with __USE_ATFILE.

5 years ago * sysdeps/unix/sysv/linux/mips/bits/stat.h: Protect UTIME_NOW and
Joseph Myers [Thu, 26 Feb 2009 23:25:24 +0000 (23:25 +0000)]
* sysdeps/unix/sysv/linux/mips/bits/stat.h: Protect UTIME_NOW and
UTIME_OMIT only with __USE_ATFILE.

5 years ago2009-02-25 Carlos O'Donell <carlos@codesourcery.com>
Carlos O'Donell [Thu, 26 Feb 2009 21:36:13 +0000 (21:36 +0000)]
2009-02-25  Carlos O'Donell  <carlos@codesourcery.com>

* sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h:
Adjust comment. Sort macros alphabetically. Remove old
lock comments.

5 years ago2009-02-25 Carlos O'Donell <carlos@codesourcery.com>
Carlos O'Donell [Thu, 26 Feb 2009 21:29:22 +0000 (21:29 +0000)]
2009-02-25  Carlos O'Donell  <carlos@codesourcery.com>

* sysdeps/unix/sysv/linux/hppa/nptl/unwind-forcedunwind.c:
Update from nptl/sysdeps/pthread/unwind-forcedunwind.c
* sysdeps/unix/sysv/linux/hppa/nptl/unwind-resume.c:
Update from nptl/sysdeps/pthread/unwind-resume.c

5 years ago2009-02-25 Carlos O'Donell <carlos@codesourcery.com>
Carlos O'Donell [Thu, 26 Feb 2009 19:46:02 +0000 (19:46 +0000)]
2009-02-25  Carlos O'Donell  <carlos@codesourcery.com>

* sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Define
FUTEX_WAIT_BITSET, FUTEX_WAKE_BITSET, FUTEX_CLOCK_REALTIME,
and FUTEX_BITSET_MATCH_ANY.

5 years ago2009-02-22 Carlos O'Donell <carlos@codesourcery.com>
Carlos O'Donell [Sun, 22 Feb 2009 17:15:19 +0000 (17:15 +0000)]
2009-02-22  Carlos O'Donell  <carlos@codesourcery.com>

* sysdeps/unix/sysv/linux/hppa/Versions: Add missing bracket.

5 years ago2009-02-22 Carlos O'Donell <carlos@codesourcery.com>
Carlos O'Donell [Sun, 22 Feb 2009 17:02:14 +0000 (17:02 +0000)]
2009-02-22  Carlos O'Donell  <carlos@codesourcery.com>

* sysdeps/hppa/dl-machine.h: Use _dl_runtime_profile.

5 years ago [BZ #7040]
Joseph Myers [Fri, 13 Feb 2009 17:38:50 +0000 (17:38 +0000)]
[BZ #7040]
* sysdeps/unix/sysv/linux/mips/sys/inotify.h: Second parameter of
inotify_rm_watch should have type int.

5 years ago2009-02-13 Khem Raj <raj.khem@gmail.com>
Joseph Myers [Fri, 13 Feb 2009 17:35:07 +0000 (17:35 +0000)]
2009-02-13  Khem Raj  <raj.khem@gmail.com>

* sysdeps/unix/sysv/linux/arm/nptl/unwind-forcedunwind.c
(libgcc_s_handle): New variable.
(pthread_cancel_init): Depend in libgcc_s_handle for decision to
load DSO.  Assign last.
(__unwind_freeres): New function.

* sysdeps/unix/sysv/linux/arm/eabi/nptl/unwind-forcedunwind.c:
Likewise.

5 years ago2009-02-13 Khem Raj <raj.khem@gmail.com>
Joseph Myers [Fri, 13 Feb 2009 17:34:30 +0000 (17:34 +0000)]
2009-02-13  Khem Raj  <raj.khem@gmail.com>

* sysdeps/unix/sysv/linux/hppa/nptl/unwind-forcedunwind.c
(libgcc_s_handle): New variable.
(pthread_cancel_init): Depend in libgcc_s_handle for decision to
load DSO.  Assign last.
(__unwind_freeres): New function.

5 years ago2009-02-09 Arthur Loiret <aloiret@debian.org>
Carlos O'Donell [Mon, 9 Feb 2009 20:27:56 +0000 (20:27 +0000)]
2009-02-09  Arthur Loiret  <aloiret@debian.org>

[BZ #9717]

* sysdeps/unix/sysv/linux/hppa/linuxthreads/malloc-machine.h
(MALLOC): Adjust __libc_tsd_define arguments.
(tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
arguments.

5 years ago2009-02-05 Paul Brook <paul@codesourcery.com>
Joseph Myers [Thu, 5 Feb 2009 14:46:41 +0000 (14:46 +0000)]
2009-02-05  Paul Brook  <paul@codesourcery.com>
            Joseph Myers  <joseph@codesourcery.com>

* sysdeps/arm/dl-machine.h (elf_machine_dynamic): Ditto.
(elf_machine_load_address): Clear T bit of PLT entry contents.
(RTLD_START): Mark function symbols as such.  Tweak pc-relative
addressing to avoid depending on pc read pipeline offset.
* sysdeps/arm/machine-gmon.h (MCOUNT): Add Thumb-2 implementation.
* sysdeps/arm/tls-macros.h: Add alignment for Thumb-2.
(ARM_PC_OFFSET): Define.
(TLS_IE): Define differently for Thumb-2.
(TLS_LE, TLS_LD, TLS_GD): Use ARM_PC_OFFSET.
* sysdeps/arm/elf/start.S: Switch to thumb mode for Thumb-2.
* sysdeps/unix/sysv/linux/arm/eabi/sysdep.h (INTERNAL_SYSCALL_RAW):
Add Thumb implementation.
* sysdeps/unix/sysv/linux/arm/eabi/nptl/aio_misc.h: New.
* sysdeps/unix/sysv/linux/arm/eabi/nptl/unwind-resume.c: Enforce
alignment for Thumb-2.  Adjust offset from PC for Thumb-2.
* sysdeps/unix/sysv/linux/arm/eabi/nptl/unwind-forcedunwind.c: Ditto.
* sysdeps/unix/sysv/linux/arm/nptl/bits/atomic.h (atomic_full_barrier,
__arch_compare_and_exchange_val_32_acq): Add Thumb-2 implementation.

5 years ago * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHM_EXEC): Define.
Joseph Myers [Mon, 2 Feb 2009 15:36:15 +0000 (15:36 +0000)]
* sysdeps/unix/sysv/linux/mips/bits/shm.h (SHM_EXEC): Define.

5 years ago * sysdeps/unix/sysv/linux/arm/bits/shm.h (SHM_EXEC): Define.
Joseph Myers [Mon, 2 Feb 2009 15:35:22 +0000 (15:35 +0000)]
* sysdeps/unix/sysv/linux/arm/bits/shm.h (SHM_EXEC): Define.

5 years ago2009-01-27 Min Zhang <mzhang@mvista.com>
Daniel Jacobowitz [Tue, 27 Jan 2009 17:10:08 +0000 (17:10 +0000)]
2009-01-27  Min Zhang  <mzhang@mvista.com>

* sysdeps/arm/memset.S (memset): Use stm instead of two
str instructions.

5 years ago2009-01-27 Kirill A. Shutemov <kirill@shutemov.name>
Daniel Jacobowitz [Tue, 27 Jan 2009 16:01:19 +0000 (16:01 +0000)]
2009-01-27  Kirill A. Shutemov <kirill@shutemov.name>

* sysdeps/arm/elf/start.S (_start): Use position-independent code
if SHARED.  Clear lr.

5 years ago * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h
Daniel Jacobowitz [Tue, 27 Jan 2009 15:48:44 +0000 (15:48 +0000)]
    * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h
(lll_futex_wake_unlock, lll_futex_requeue): Return zero if success.

5 years ago * sysdeps/unix/sysv/linux/arm/sysdep.h: Include <tls.h>.
Daniel Jacobowitz [Tue, 27 Jan 2009 15:36:22 +0000 (15:36 +0000)]
* sysdeps/unix/sysv/linux/arm/sysdep.h: Include <tls.h>.

5 years ago PR glibc/1048
Daniel Jacobowitz [Tue, 27 Jan 2009 15:32:55 +0000 (15:32 +0000)]
PR glibc/1048
* sysdeps/unix/sysv/linux/mips/dl-static.c: New file to support
variable page size for MIPS.
* sysdeps/unix/sysv/linux/mips/ldsodefs.h: Likewise.
* sysdeps/unix/sysv/linux/mips/Makefile: Build dl-static in elf.
* sysdeps/unix/sysv/linux/mips/Versions: Add _dl_var_init.

5 years ago2009-01-12 Mike Frysinger <vapier@gentoo.org>
Joseph Myers [Mon, 12 Jan 2009 16:49:33 +0000 (16:49 +0000)]
2009-01-12  Mike Frysinger  <vapier@gentoo.org>

* sysdeps/arm/fpu/setjmp.S: Add hidden_def (__sigsetjmp).

5 years ago * sysdeps/unix/sysv/linux/mips/bits/resource.h (enum
Joseph Myers [Mon, 12 Jan 2009 16:45:43 +0000 (16:45 +0000)]
* sysdeps/unix/sysv/linux/mips/bits/resource.h (enum
__rusage_who): Avoid comma after RUSAGE_CHILDREN if not
-D_GNU_SOURCE.

5 years ago * sysdeps/unix/sysv/linux/mips/nptl/lowlevellock.h: Define
Joseph Myers [Mon, 12 Jan 2009 16:38:17 +0000 (16:38 +0000)]
* sysdeps/unix/sysv/linux/mips/nptl/lowlevellock.h: Define
FUTEX_CLOCK_REALTIME and FUTEX_BITSET_MATCH_ANY.

5 years ago * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h: Define
Joseph Myers [Mon, 12 Jan 2009 16:37:27 +0000 (16:37 +0000)]
* sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h: Define
FUTEX_CLOCK_REALTIME and FUTEX_BITSET_MATCH_ANY.

5 years ago * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate64.c,
Joseph Myers [Fri, 19 Dec 2008 21:35:57 +0000 (21:35 +0000)]
* sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate64.c,
sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate.c,
sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fallocate64.c,
sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fallocate.c: New.

5 years ago * sysdeps/unix/sysv/linux/mips/bits/socket.h (SCM_CREDENTIALS):
Joseph Myers [Tue, 9 Dec 2008 23:53:33 +0000 (23:53 +0000)]
* sysdeps/unix/sysv/linux/mips/bits/socket.h (SCM_CREDENTIALS):
Make available only for __USE_GNU.