external/glibc.git
15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

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

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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}.

15 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}.

15 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}.

15 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.

15 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.

15 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.

15 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

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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>.

15 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.

15 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).

15 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.

15 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.

15 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.

15 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.

15 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.

15 years ago * sysdeps/unix/sysv/linux/mips/nptl/lowlevellock.h: Define
Joseph Myers [Wed, 3 Dec 2008 23:37:48 +0000 (23:37 +0000)]
* sysdeps/unix/sysv/linux/mips/nptl/lowlevellock.h: Define
FUTEX_WAIT_BITSET and FUTEX_WAKE_BITSET.

15 years ago * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h: Define
Joseph Myers [Wed, 3 Dec 2008 23:36:56 +0000 (23:36 +0000)]
* sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h: Define
FUTEX_WAIT_BITSET and FUTEX_WAKE_BITSET.

15 years ago.
Roland McGrath [Wed, 26 Nov 2008 19:20:37 +0000 (19:20 +0000)]
.

15 years ago2008-11-26 Roland McGrath <roland@redhat.com>
Roland McGrath [Wed, 26 Nov 2008 19:20:13 +0000 (19:20 +0000)]
2008-11-26  Roland McGrath  <roland@redhat.com>

* sysdeps/unix/sysv/linux/alpha/wordexp.c: Contents moved to main
repository's ia64 file; #include that.
* sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Contents moved to main
repository's powerpc file; #include that.

15 years ago\f
Roland McGrath [Wed, 26 Nov 2008 07:21:20 +0000 (07:21 +0000)]
\f

* ChangeLog.alpha: New file (this one).
* sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
Subdirectories moved here from main repository.
* sysdeps/alpha/nptl, sysdeps/unix/sysv/linux/alpha/nptl:
Subdirectories moved here from main repository's nptl/ subdirectory.
* sysdeps/alpha/preconfigure: New file.
* sysdeps/alpha/shlib-versions: New file.

15 years ago * sysdeps/unix/sysv/linux/mips/sys/signalfd.h (signalfd): Fix
Joseph Myers [Tue, 25 Nov 2008 16:45:39 +0000 (16:45 +0000)]
* sysdeps/unix/sysv/linux/mips/sys/signalfd.h (signalfd): Fix
__THROW vs. __nonnull order for C++.

15 years ago * sysdeps/unix/sysv/linux/arm/sysdep.h (LOAD_ARGS_1, LOAD_ARGS_2,
Joseph Myers [Tue, 25 Nov 2008 16:37:26 +0000 (16:37 +0000)]
* sysdeps/unix/sysv/linux/arm/sysdep.h (LOAD_ARGS_1, LOAD_ARGS_2,
LOAD_ARGS_3, LOAD_ARGS_4, LOAD_ARGS_5, LOAD_ARGS_6, LOAD_ARGS_7):
Load all arguments into temporary variables before loading into
registers.

15 years agoRegenerated: autoconf ports/sysdeps/hppa/configure.in
Carlos O'Donell [Thu, 23 Oct 2008 17:11:06 +0000 (17:11 +0000)]
Regenerated: autoconf ports/sysdeps/hppa/configure.in

15 years agoRegenerated: autoconf ports/sysdeps/hppa/configure.in
Carlos O'Donell [Thu, 23 Oct 2008 16:57:35 +0000 (16:57 +0000)]
Regenerated: autoconf  ports/sysdeps/hppa/configure.in

15 years agoRegenerated: autoconf ports/sysdeps/hppa/elf/configure.in
Carlos O'Donell [Thu, 23 Oct 2008 16:57:15 +0000 (16:57 +0000)]
Regenerated: autoconf  ports/sysdeps/hppa/elf/configure.in

15 years ago * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
Jakub Jelinek [Thu, 16 Oct 2008 20:28:45 +0000 (20:28 +0000)]
* sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
__nonnull order for C++.
* sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
* sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.

15 years ago * sysdeps/mips/dl-dtprocnum.h (DT_MIPS_NUM): Do not redefine.
Daniel Jacobowitz [Wed, 15 Oct 2008 19:37:36 +0000 (19:37 +0000)]
* sysdeps/mips/dl-dtprocnum.h (DT_MIPS_NUM): Do not redefine.
* sysdeps/mips/dl-machine.h (STO_MIPS_PLT, R_MIPS_COPY,
R_MIPS_JUMP_SLOT, DT_MIPS_PLTGOT): Do not redefine.

15 years ago2008-10-01 Mark Shinwell <shinwell@codesourcery.com>
Daniel Jacobowitz [Wed, 1 Oct 2008 13:28:14 +0000 (13:28 +0000)]
2008-10-01  Mark Shinwell  <shinwell@codesourcery.com>
    Daniel Jacobowitz  <dan@codesourcery.com>
    Richard Sandiford  <rdsandiford@googlemail.com>

* sysdeps/mips/dl-dtprocnum.h (DT_MIPS_NUM): Redefine.
* sysdeps/mips/dl-lookup.c: New.
* sysdeps/mips/do-lookup.h: New.
* sysdeps/mips/dl-machine.h (ELF_MACHINE_NO_PLT): Remove
definition.
(STO_MIPS_PLT, R_MIPS_COPY, R_MIPS_JUMP_SLOT, DT_MIPS_PLTGOT): Define
if needed.
(ELF_MACHINE_JMP_SLOT): Alter definition and update comment.
(elf_machine_type_class): Likewise.
(ELF_MACHINE_PLT_REL): Define.
(elf_machine_fixup_plt): New.
(elf_machine_plt_value): New.
(elf_machine_reloc): Handle jump slot and copy relocations.
(elf_machine_lazy_rel): Point relocation place at PLT if
required.
(RESOLVE_GOTSYM): Take a relocation type argument.
(elf_machine_got_rel): Bind lazy stubs directly to their target if
!lazy.  Skip lazy binding for PLT symbols.
(elf_machine_runtime_setup): Fill in .got.plt header.
* sysdeps/mips/dl-trampoline.c (IFNEWABI): New macro.
(ELF_DL_PLT_FRAME_SIZE, ELF_DL_PLT_SAVE_ARG_REGS,
ELF_DL_PLT_RESTORE_ARG_REGS): Define.
(_dl_runtime_pltresolve): New.
* sysdeps/mips/bits/linkmap.h: New file.
* sysdeps/mips/tls-macros.h: Load $gp as required.  Merge 32-bit and
64-bit versions.

* sysdeps/unix/sysv/linux/mips/mips32/sysdep.h (SYSCALL_ERROR_LABEL):
Delete definition.
* sysdeps/unix/sysv/linux/mips/nptl/sysdep-cancel.h (PSEUDO_CPLOAD,
PSEUDO_ERRJMP, PSEUDO_SAVEGP, PSEUDO_LOADGP): Define.
(PSEUDO): Use them.  Move outside __PIC__.
(PSEUDO_JMP): New.
(CENABLE, CDISABLE): Use it.

16 years ago * sysdeps/unix/sysv/linux/mips/sys/epoll.h: Change epoll_create2
Joseph Myers [Tue, 19 Aug 2008 16:53:11 +0000 (16:53 +0000)]
* sysdeps/unix/sysv/linux/mips/sys/epoll.h: Change epoll_create2
to epoll_create1.

16 years ago * sysdeps/unix/sysv/linux/mips/bits/socket.h: Define SOCK_CLOEXEC,
Joseph Myers [Tue, 19 Aug 2008 16:12:35 +0000 (16:12 +0000)]
* sysdeps/unix/sysv/linux/mips/bits/socket.h: Define SOCK_CLOEXEC,
SOCK_NONBLOCK, PF_ISDN and AF_ISDN.
* sysdeps/unix/sysv/linux/mips/sys/epoll.h: New file.
* sysdeps/unix/sysv/linux/mips/sys/eventfd.h: New file.
* sysdeps/unix/sysv/linux/mips/sys/inotify.h: New file.
* sysdeps/unix/sysv/linux/mips/sys/signalfd.h: New file.
* sysdeps/unix/sysv/linux/mips/sys/timerfd.h: New file.

16 years ago * sysdeps/powerpc/nofpu/shlib-versions: New.
Joseph Myers [Tue, 19 Aug 2008 16:06:38 +0000 (16:06 +0000)]
* sysdeps/powerpc/nofpu/shlib-versions: New.
* c++-types-powerpcsoft-linux-gnu.data: New.
* localplt-powerpcsoft-linux-gnu.data: New.
* sysdeps/powerpc/nofpu/feholdexcpt.c (feholdexcept): Use
__fegetenv.

16 years ago * data/c++-types-arm-linux-gnueabi.data: New.
Joseph Myers [Tue, 19 Aug 2008 15:59:07 +0000 (15:59 +0000)]
* data/c++-types-arm-linux-gnueabi.data: New.
* data/localplt-arm-linux-gnueabi.data: New.
* sysdeps/arm/bsd-_setjmp.S: Use HIDDEN_JUMPTARGET to call
__sigsetjmp.
* sysdeps/arm/bsd-setjmp.S: Likewise.
* sysdeps/arm/eabi/aeabi_localeconv.c: Use __localeconv.
* sysdeps/arm/eabi/find_exidx.c (__gnu_Unwind_Find_exidx): Use
__dl_iterate_phdr.
* sysdeps/arm/eabi/setjmp.S: Add hidden_def (__sigsetjmp).
* sysdeps/arm/memmove.S: Use HIDDEN_JUMPTARGET to call memcpy from
within libc.
* sysdeps/arm/setjmp.S: Add hidden_def (__sigsetjmp).
* sysdeps/unix/sysv/linux/arm/clone.S: Use HIDDEN_JUMPTARGET to
call _exit.
* sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Use __sysctl,
__readlink and fgets_unlocked.
(_ioperm): Use __open and __close.

16 years ago * sysdeps/mips/fpu_control.h (_FPU_GETCW, _FPU_SETCW): Make asms
Joseph Myers [Tue, 19 Aug 2008 15:54:50 +0000 (15:54 +0000)]
* sysdeps/mips/fpu_control.h (_FPU_GETCW, _FPU_SETCW): Make asms
volatile.

16 years ago2008-08-10 Joseph Myers <joseph@codesourcery.com>
Andreas Schwab [Sun, 10 Aug 2008 08:43:09 +0000 (08:43 +0000)]
2008-08-10  Joseph Myers  <joseph@codesourcery.com>

* sysdeps/m68k/bits/byteswap.h: Allow inclusion from <endian.h>.
(__bswap_constant_16): Define.
(__bswap_16): Allow arguments with side effects.
(__bswap_constant_32): Ensure result is unsigned.
(__bswap_32): Define as inline function in fallback case.
(__bswap_constant_64): Define.
(__bswap_64): Use it for constant arguments.
* sysdeps/m68k/bits/setjmp.h (__jmp_buf): Give name to structure
type.
* sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Only allow inclusion
from <math.h>.  Do not use extern inline directly.
* sysdeps/unix/sysv/linux/m68k/bits/fcntl.h: Include <bits/uio.h>.
(O_CLOEXEC, SYNC_FILE_RANGE_WAIT_BEFORE, SYNC_FILE_RANGE_WRITE,
SYNC_FILE_RANGE_WAIT_AFTER, SPLICE_F_MOVE, SPLICE_F_NONBLOCK,
SPLICE_F_MORE, SPLICE_F_GIFT): Define.
(sync_file_range, vmsplice, splice, tee): Declare.
* sysdeps/unix/sysv/linux/m68k/bits/mman.h (MADV_REMOVE): Define.
* sysdeps/unix/sysv/linux/m68k/bits/poll.h (POLLMSG, POLLREMOVE,
POLLRDHUP): Define.
* sysdeps/unix/sysv/linux/m68k/bits/stat.h (UTIME_NOW,
UTIME_OMIT): Define.
* sysdeps/unix/sysv/linux/m68k/kernel-features.h: New.
* sysdeps/unix/sysv/linux/m68k/sys/user.h: New.

16 years ago2008-08-07 Helge Deller <deller@gmx.de>
Carlos O'Donell [Thu, 7 Aug 2008 23:52:34 +0000 (23:52 +0000)]
2008-08-07  Helge Deller  <deller@gmx.de>

* sysdeps/unix/sysv/linux/hppa/ucontext_i.sym: New file.
* sysdeps/unix/sysv/linux/hppa/Makefile: New file.
* sysdeps/unix/sysv/linux/hppa/getcontext.S: New file.
* sysdeps/unix/sysv/linux/hppa/makecontext.c: New file.
* sysdeps/unix/sysv/linux/hppa/setcontext.S: New file.
* sysdeps/unix/sysv/linux/hppa/swapcontext.c: New file.

16 years agotimerfd.h header for Linux/Alpha.
Ulrich Drepper [Fri, 25 Jul 2008 04:44:10 +0000 (04:44 +0000)]
timerfd.h header for Linux/Alpha.

16 years agosignalfd.h header for Linux/Alpha.
Ulrich Drepper [Fri, 25 Jul 2008 04:44:03 +0000 (04:44 +0000)]
signalfd.h header for Linux/Alpha.

16 years agoinotify.h header for Linux/Alpha.
Ulrich Drepper [Fri, 25 Jul 2008 04:43:59 +0000 (04:43 +0000)]
inotify.h header for Linux/Alpha.

16 years agoeventfd.h header for Linux/Alpha.
Ulrich Drepper [Fri, 25 Jul 2008 04:43:52 +0000 (04:43 +0000)]
eventfd.h header for Linux/Alpha.

16 years agoepoll.h header for Linux/Alpha.
Ulrich Drepper [Fri, 25 Jul 2008 04:43:46 +0000 (04:43 +0000)]
epoll.h header for Linux/Alpha.

16 years ago * sysdeps/mips/bits/setjmp.h (__jmp_buf): Give name to structure
Daniel Jacobowitz [Fri, 18 Jul 2008 13:24:21 +0000 (13:24 +0000)]
* sysdeps/mips/bits/setjmp.h (__jmp_buf): Give name to structure
type.

16 years ago2008-07-18 Joseph Myers <joseph@codesourcery.com>
Daniel Jacobowitz [Fri, 18 Jul 2008 13:21:45 +0000 (13:21 +0000)]
2008-07-18  Joseph Myers  <joseph@codesourcery.com>

* sysdeps/arm/eabi/fgetexcptflg.c: New.
* sysdeps/arm/eabi/fsetexcptflg.c (__fesetexceptflag): Operate on
set exception flags, not on mask of enabled exceptions.

16 years ago2008-07-18 Joseph Myers <joseph@codesourcery.com>
Daniel Jacobowitz [Fri, 18 Jul 2008 13:20:51 +0000 (13:20 +0000)]
2008-07-18  Joseph Myers  <joseph@codesourcery.com>

* sysdeps/arm/eabi/feupdateenv.c: New.