platform/upstream/glibc.git
21 years agoFix handling of syscalls with more than four parameters.
Ulrich Drepper [Thu, 12 Jun 2003 16:18:11 +0000 (16:18 +0000)]
Fix handling of syscalls with more than four parameters.

21 years agoDon't inline the function. Export them. Prepend __ to name.
Ulrich Drepper [Wed, 11 Jun 2003 22:37:05 +0000 (22:37 +0000)]
Don't inline the function. Export them.  Prepend __ to name.

21 years agoNew sequences for 5+ arg syscalls only needed for PIC.
Ulrich Drepper [Fri, 6 Jun 2003 17:31:40 +0000 (17:31 +0000)]
New sequences for 5+ arg syscalls only needed for PIC.

21 years ago * sysdeps/alpha/dl-machine.h (RTLD_START): Fix top-of-stack backtrace.
Richard Henderson [Fri, 6 Jun 2003 05:54:15 +0000 (05:54 +0000)]
    * sysdeps/alpha/dl-machine.h (RTLD_START): Fix top-of-stack backtrace.
        * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
        * sysdeps/alpha/elf/start.S: Likewise.  Remove pointless allocation.
        * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Use standard ldgp
        entry sequence and explicit relocs.  Add unwind info for sigreturn
        and rt_sigreturn.
        * configure.in (libc_cv_asm_cfi_directives): Test .cfi_remember_state.
        * configure: Regenerate.

21 years ago * sysdeps/unix/sysv/linux/alpha/syscalls.list (semtimedop): New.
Richard Henderson [Fri, 6 Jun 2003 05:52:52 +0000 (05:52 +0000)]
    * sysdeps/unix/sysv/linux/alpha/syscalls.list (semtimedop): New.
        Annotate some parameters.
        * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_semtimedop): New.

21 years ago * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Fix typo in conversion.
Richard Henderson [Fri, 6 Jun 2003 05:51:53 +0000 (05:51 +0000)]
    * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Fix typo in conversion.

21 years ago2003-05-30 Guido Guenther <agx@sigxcpu.org>
Andreas Jaeger [Fri, 30 May 2003 17:41:46 +0000 (17:41 +0000)]
2003-05-30  Guido Guenther  <agx@sigxcpu.org>

* sysdeps/mips/mips64/bsd-_setjmp.S: Include <sys/asm.h> for
SETUP_GP64 and friends.
* sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Fix register
names in internal_syscall{6,7}.
* sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
* sysdeps/unix/sysv/linux/mips/pread.c [_MIPS_SIM == _ABI64]: Fix
number of syscall arguments.
* sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
* sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
* sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.

21 years ago2003-05-11 Andreas Schwab <schwab@suse.de>
Roland McGrath [Wed, 28 May 2003 21:05:12 +0000 (21:05 +0000)]
2003-05-11  Andreas Schwab  <schwab@suse.de>

* Makerules: Always use -MP together with -MD.
(sed-remove-dotot): Substitute $(..) also at start of line.
($(stdio_lim:h=st)): Use -MD instead of SUNPRO_DEPENDENCIES.
Generated defines with a single compiler call.
Use $(sed-remove-dotdot).
* mach/Makefile ($(objpfx)mach-syscalls.mk): Use -MD instead
of DEPENDENCIES_OUTPUT, and use $(sed-remove-objpfx).
* sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
Use -MD instead of SUNPRO_DEPENDENCIES, and use $(sed-remove-objpfx).
* sysdeps/unix/sysv/linux/mips/Makefile
($(objpfx)syscall-%.h): Likewise.

21 years ago2003-05-20 Guido Guenther <agx@sigxcpu.org>
Andreas Jaeger [Thu, 22 May 2003 02:26:29 +0000 (02:26 +0000)]
2003-05-20  Guido Guenther  <agx@sigxcpu.org>

* sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Change SI_ASYNCNL
to -60 and define SI_TKILL.

21 years ago(atomic_exchange_acq): Renamed from atomic_exchange.
Ulrich Drepper [Sat, 10 May 2003 05:29:30 +0000 (05:29 +0000)]
(atomic_exchange_acq): Renamed from atomic_exchange.

21 years ago(IPCOP_semtimedop): Define.
Ulrich Drepper [Fri, 2 May 2003 23:24:56 +0000 (23:24 +0000)]
(IPCOP_semtimedop): Define.

21 years ago* sysdeps/unix/sysv/linux/mips/sys/ucontext.h (ucontext): Make
Alexandre Oliva [Wed, 30 Apr 2003 23:22:09 +0000 (23:22 +0000)]
* sysdeps/unix/sysv/linux/mips/sys/ucontext.h (ucontext): Make
uc_flags long for all ABIs.

21 years agoAdd libc_hidden_builtin_def.
Ulrich Drepper [Tue, 29 Apr 2003 22:47:20 +0000 (22:47 +0000)]
Add libc_hidden_builtin_def.

21 years agosemtimedop implementation for Linux/m68k.
Andreas Schwab [Sun, 27 Apr 2003 17:08:00 +0000 (17:08 +0000)]
semtimedop implementation for Linux/m68k.

21 years agoDefine SI_TKILL.
Ulrich Drepper [Mon, 21 Apr 2003 07:27:10 +0000 (07:27 +0000)]
Define SI_TKILL.

21 years agoSync with Linux 2.5.67.
Ulrich Drepper [Sat, 19 Apr 2003 18:31:57 +0000 (18:31 +0000)]
Sync with Linux 2.5.67.

21 years ago* sysdeps/unix/sysv/linux/mips/profil-counter: New.
Alexandre Oliva [Sun, 13 Apr 2003 11:36:32 +0000 (11:36 +0000)]
* sysdeps/unix/sysv/linux/mips/profil-counter: New.
* sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Port to n32/n64.
* sysdeps/unix/sysv/linux/mips/bits/sigcontext.h: New.
* sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Port to n32/n64.
(mcontext_t): Make it match the 32-bit mips kernel in o32.
* sysdeps/unix/sysv/linux/mips/sys/user.h: Bring in constants from
the mips and mips64 headers.
(struct user): Port to n32/n64.

21 years agoAllow file to be included multiple times.
Ulrich Drepper [Sat, 12 Apr 2003 00:51:50 +0000 (00:51 +0000)]
Allow file to be included multiple times.

21 years agoRemove FLT_EVAL_METHOD definition.
Ulrich Drepper [Wed, 9 Apr 2003 07:39:17 +0000 (07:39 +0000)]
Remove FLT_EVAL_METHOD definition.

21 years ago* sysdeps/mips/sys/regdef.h (t4,t5,t6,t7): Renamed to t0..t3 on
Alexandre Oliva [Wed, 9 Apr 2003 02:51:04 +0000 (02:51 +0000)]
* sysdeps/mips/sys/regdef.h (t4,t5,t6,t7): Renamed to t0..t3 on
NewABI.
(ta0, ta1, ta2, ta3): Defined to t4..t7 on o32, and a4..a7 on
NewABI.
* sysdeps/mips/mips64/memcpy.S: Adjust register naming
conventions.
* sysdeps/mips/mips64/memset.S: Likewise.
* sysdeps/unix/mips/sysdep.S (__syscall_error) [_LIBC_REENTRANT]:
Use t0 instead of t4 as temporary.

21 years ago* sysdeps/unix/sysv/linux/mips/mips64/n32/ftruncate64.c: New.
Alexandre Oliva [Sat, 5 Apr 2003 19:57:35 +0000 (19:57 +0000)]
* sysdeps/unix/sysv/linux/mips/mips64/n32/ftruncate64.c: New.
* sysdeps/unix/sysv/linux/mips/mips64/n32/truncate64.c: New.
* sysdeps/unix/sysv/linux/kernel-features.h: fcntl64 is available
on mips n32.
* sysdeps/unix/sysv/linux/mips/kernel_stat.h: Explain why
XSTAT_IS_XSTAT64 must not be used for mips n64.  Use 64-bit data
structure on n32 as well.
* sysdeps/unix/sysv/linux/mips/bits/stat.h: Use POSIX-compliant
data types on n32 and n64.

21 years ago* sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock): Adjust
Alexandre Oliva [Fri, 4 Apr 2003 05:12:00 +0000 (05:12 +0000)]
* sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock): Adjust
for n64 abi.

21 years ago(PSEUDO): Add missing ; after ENTRY use.
Ulrich Drepper [Thu, 3 Apr 2003 19:32:34 +0000 (19:32 +0000)]
(PSEUDO): Add missing ; after ENTRY use.

21 years ago(_NSIG): Define to 65.
Ulrich Drepper [Tue, 1 Apr 2003 06:16:53 +0000 (06:16 +0000)]
(_NSIG): Define to 65.

21 years ago(atomic_increment_and_test): Define.
Andreas Schwab [Mon, 31 Mar 2003 16:01:09 +0000 (16:01 +0000)]
(atomic_increment_and_test): Define.
(atomic_decrement_and_test): Fix test.

21 years ago* configure.in: Add mips64* support.
Alexandre Oliva [Sat, 29 Mar 2003 08:15:29 +0000 (08:15 +0000)]
* configure.in: Add mips64* support.
* configure: Rebuilt.
* sysdeps/mips/bits/endian.h: Make it bi-endian.
* sysdeps/mips/mipsel/bits/endian.h: Removed.
* sysdeps/mips/mips64/n32/el/bits/endian.h: Removed.
* sysdeps/mips/mips64/n64/el/bits/endian.h: Removed.
* sysdeps/mips/mips32/Makefile (CC): Add -mabi=32.
* sysdeps/mips/mips64/n32/Makefile (CC): Add -mabi=n32.
* sysdeps/mips/mips64/n64/Makefile (CC): Add -mabi=64.
* sysdeps/mips/Implies: Moved wordsize-32 to...
* sysdeps/mips/mips32/Implies: New file.
* sysdeps/unix/mips/sysdep.h (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO,
ret_NOERRNO): New.
(ret, PSEUDO_END): Moved past END.
(PSEUDO): Moved to...
* sysdeps/unix/mips/mips32/sysdep.h: New file.
* sysdeps/unix/mips/mips64/n32/sysdep.h: Removed #undef PSEUDO.
* sysdeps/unix/mips/mips64/n64/sysdep.h: Likewise.
* sysdeps/unix/sysv/linux/mips/sysdep.h: Move to...
* sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: New file.
* sysdeps/unix/sysv/linux/mips/mips32/kern64/sysdep.h: New file.

21 years ago* sysdeps/unix/sysv/linux/mips/clone.S (__thread_start):
Alexandre Oliva [Sat, 29 Mar 2003 08:01:57 +0000 (08:01 +0000)]
* sysdeps/unix/sysv/linux/mips/clone.S (__thread_start):
Re-introduce ENTRY.

21 years ago* sysdeps/unix/mips/sysdep.S: Include sys/asm.h.
Alexandre Oliva [Fri, 28 Mar 2003 07:02:35 +0000 (07:02 +0000)]
* sysdeps/unix/mips/sysdep.S: Include sys/asm.h.

21 years ago* sysdeps/unix/sysv/linux/mips/configure: Rebuilt.
Alexandre Oliva [Fri, 28 Mar 2003 06:11:03 +0000 (06:11 +0000)]
* sysdeps/unix/sysv/linux/mips/configure: Rebuilt.

21 years ago2003-03-27 Philip Blundell <philb@gnu.org>
Roland McGrath [Thu, 27 Mar 2003 02:45:49 +0000 (02:45 +0000)]
2003-03-27  Philip Blundell  <philb@gnu.org>

* sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET_NOERRNO): Use
unconditional mov.  Remove nop.

21 years ago2003-03-27 Philip Blundell <philb@gnu.org>
Roland McGrath [Thu, 27 Mar 2003 02:45:46 +0000 (02:45 +0000)]
2003-03-27  Philip Blundell  <philb@gnu.org>

* sysdeps/unix/sysv/linux/kernel-features.h
(__ASSUME_VFORK_SYSCALL): Define for kernel 2.4 on arm.
* sysdeps/unix/sysv/linux/arm/vfork.S: Elide compatibility code
when __ASSUME_VFORK_SYSCALL is defined.
* sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise for
__ASSUME_MMAP2_SYSCALL.
* sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise for
__ASSUME_REALTIME_SIGNALS.

21 years ago(struct siginfo): Avoid no-op padding element.
Ulrich Drepper [Wed, 26 Mar 2003 23:41:57 +0000 (23:41 +0000)]
(struct siginfo): Avoid no-op padding element.

21 years ago(struct siginfo): Adjust timer info for what the kernel provides these days.
Ulrich Drepper [Wed, 26 Mar 2003 04:48:10 +0000 (04:48 +0000)]
(struct siginfo): Adjust timer info for what the kernel provides these days.
(struct sigevent): Add _tid field.
Define SIGEV_THREAD_ID.
Remove struct __pthread_attr_s forward declaration.

21 years agoFix typos.
Andreas Schwab [Tue, 25 Mar 2003 23:40:18 +0000 (23:40 +0000)]
Fix typos.

21 years agoDefine ret_NOERRNO.
Andreas Schwab [Tue, 25 Mar 2003 23:15:40 +0000 (23:15 +0000)]
Define ret_NOERRNO.

21 years ago(__TIMER_T_TYPE): Define as void*.
Ulrich Drepper [Tue, 25 Mar 2003 21:59:17 +0000 (21:59 +0000)]
(__TIMER_T_TYPE): Define as void*.

21 years ago* sysdeps/mips/sgidefs.h (_MIPS_ISA_MIPS32, _MIPS_ISA_MIPS64):
Alexandre Oliva [Tue, 25 Mar 2003 21:51:53 +0000 (21:51 +0000)]
* sysdeps/mips/sgidefs.h (_MIPS_ISA_MIPS32, _MIPS_ISA_MIPS64):
Define.
* sysdeps/mips/sys/asm.h: Test _MIPS_ISA against them on all
ISA tests.
(ALSZ, ALMASK, SZREG, REG_S, REG_L): Define based on ABI, not ISA.
(PTR_ADD, etc): Test _MIPS_SZPTR instead of _MIPS_SZLONG.
* sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
to decide whether to add padding.
* sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
to decide whether to add padding.
* sysdeps/unix/sysv/linux/mips/kernel_sigaction.h (struct
old_kernel_sigaction): Likewise.

21 years ago2003-03-24 Daniel Jacobowitz <drow@mvista.com>
Roland McGrath [Tue, 25 Mar 2003 09:44:29 +0000 (09:44 +0000)]
2003-03-24  Daniel Jacobowitz  <drow@mvista.com>

* sysdeps/unix/sysv/linux/arm/sysdep-cancel.h
(DOARGS_5, DOARGS_6, DOARGS_7): Rewritten.

21 years agoINTERNAL_SYSCALL): Remove a1 from clobber list.
Ulrich Drepper [Mon, 24 Mar 2003 19:00:28 +0000 (19:00 +0000)]
INTERNAL_SYSCALL): Remove a1 from clobber list.

21 years agoDefine PSEUDO_NOERRNO, PSEUDO_END_NOERRNO, and ret_NOERRNO.
Ulrich Drepper [Sun, 23 Mar 2003 19:42:23 +0000 (19:42 +0000)]
Define PSEUDO_NOERRNO, PSEUDO_END_NOERRNO, and ret_NOERRNO.

21 years ago2003-03-23 Jakub Jelinek <jakub@redhat.com>
Roland McGrath [Sun, 23 Mar 2003 00:52:10 +0000 (00:52 +0000)]
2003-03-23  Jakub Jelinek  <jakub@redhat.com>

* sysdeps/alpha/fpu/libm-test-ulps: Update.
* sysdeps/arm/libm-test-ulps: Update.
* sysdeps/hppa/fpu/libm-test-ulps: Update.
* sysdeps/ia64/fpu/libm-test-ulps: Update.
* sysdeps/mips/fpu/libm-test-ulps: Update.
* sysdeps/powerpc/nofpu/libm-test-ulps: Update.
* sysdeps/powerpc/fpu/libm-test-ulps: Update.
* sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
* sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
* sysdeps/sh/sh4/fpu/libm-test-ulps: Update.
* sysdeps/s390/fpu/libm-test-ulps: Update.
* sysdeps/x86_64/fpu/libm-test-ulps: Update.

21 years agoUpdate.
Andreas Schwab [Sat, 22 Mar 2003 21:17:47 +0000 (21:17 +0000)]
Update.

21 years agoSuperceded by atomic.h.
Andreas Schwab [Sat, 22 Mar 2003 21:00:48 +0000 (21:00 +0000)]
Superceded by atomic.h.

21 years agoAtomic operations for m68020 and up.
Andreas Schwab [Sat, 22 Mar 2003 20:59:49 +0000 (20:59 +0000)]
Atomic operations for m68020 and up.

21 years ago* sysdeps/mips/elf/ldsodefs.h: Add mips-specific elf64 relocation
Alexandre Oliva [Sat, 22 Mar 2003 15:07:05 +0000 (15:07 +0000)]
* sysdeps/mips/elf/ldsodefs.h: Add mips-specific elf64 relocation
data structures and macros.  Protect from multiple inclusion.

21 years ago* sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Fix harmless
Alexandre Oliva [Sat, 22 Mar 2003 12:50:46 +0000 (12:50 +0000)]
* sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Fix harmless
typo in #if test.

21 years ago* sysdeps/mips/mips64/memcpy.S: Fix porting bug that broke
Alexandre Oliva [Fri, 21 Mar 2003 21:39:39 +0000 (21:39 +0000)]
* sysdeps/mips/mips64/memcpy.S: Fix porting bug that broke
unaligned copying of 8-15 bytes.  From Chris Demetriou
<cgd@broadcom.com>.  Fix label names.
* sysdeps/mips/mips64/memset.S: Fix label names.  Make similar
change as to memcpy.S.
* sysdeps/mips/memcpy.S: Formatting changes.
* sysdeps/mips/memset.S: Likewise.

21 years ago2003-03-21 Roland McGrath <roland@redhat.com>
Roland McGrath [Fri, 21 Mar 2003 20:51:59 +0000 (20:51 +0000)]
2003-03-21  Roland McGrath  <roland@redhat.com>

* sysdeps/arm/sysdep.h (CALL_MCOUNT): Add trailing semicolon.

21 years ago2003-03-21 Daniel Jacobowitz <drow@mvista.com>
Roland McGrath [Fri, 21 Mar 2003 20:49:58 +0000 (20:49 +0000)]
2003-03-21  Daniel Jacobowitz  <drow@mvista.com>

* sysdeps/unix/sysv/linux/arm/sysdep-cancel.h
(SINGLE_THREAD_P_PIC): Use "reg" instead of "lr".

21 years ago* sysdeps/mips/mips64/memcpy.S, sysdeps/mips/mips64/memset.S: New.
Alexandre Oliva [Fri, 21 Mar 2003 19:44:24 +0000 (19:44 +0000)]
* sysdeps/mips/mips64/memcpy.S, sysdeps/mips/mips64/memset.S: New.
* sysdeps/mips/memcpy.S, sysdeps/mips/memset.S: Update comments.

21 years ago* sysdeps/mips/bits/setjmp.h: n32 has only 6 call-saved fpregs.
Alexandre Oliva [Thu, 20 Mar 2003 22:29:44 +0000 (22:29 +0000)]
* sysdeps/mips/bits/setjmp.h: n32 has only 6 call-saved fpregs.
* sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Adjust.
* sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.

21 years ago* sysdeps/unix/sysv/linux/mips/pread.c: Don't break up offset
Alexandre Oliva [Thu, 20 Mar 2003 20:58:02 +0000 (20:58 +0000)]
* sysdeps/unix/sysv/linux/mips/pread.c: Don't break up offset
into high and low halves on n64.
* sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
* sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
* sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.

21 years ago* sysdeps/mips/ieee754.h: Remove excess #endif.
Alexandre Oliva [Thu, 20 Mar 2003 17:59:45 +0000 (17:59 +0000)]
* sysdeps/mips/ieee754.h: Remove excess #endif.

21 years ago* sysdeps/mips/bits/setjmp.h: Store all N32 and N64 registers,
Alexandre Oliva [Thu, 20 Mar 2003 10:27:55 +0000 (10:27 +0000)]
* sysdeps/mips/bits/setjmp.h: Store all N32 and N64 registers,
including pc, gp, sp and fp, as long long.
* sysdeps/mips/mips64/setjmp.S: Pass gp to __sigsetjmp_aux.
* sysdeps/mips/mips64/setjmp_aux.c: Adjust type of arguments.
Add gp argument, and set gp in the jmpbuf to it.
* sysdeps/mips/setjmp_aux.c: Revert to o32-only.

21 years ago* sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: Sign-extend
Alexandre Oliva [Thu, 20 Mar 2003 07:54:56 +0000 (07:54 +0000)]
* sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: Sign-extend
with a single instruction.

21 years ago* sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Define
Alexandre Oliva [Thu, 20 Mar 2003 07:54:21 +0000 (07:54 +0000)]
* sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Define
properly for n64.
(elf_machine_runtime_setup): Cast link_map pointer to Elf Addr
type.
(elf_machine_rel, elf_machine_rel_relative): Cast symidx to Elf
Word before comparing with gotsym.  Take reloc_addr argument as
void*.  Remove the code added for the compiler to drop any
alignment assumptions.

21 years ago* sysdeps/mips/ieee754.h: New file, suitable to replace both
Alexandre Oliva [Thu, 20 Mar 2003 00:39:32 +0000 (00:39 +0000)]
* sysdeps/mips/ieee754.h: New file, suitable to replace both
../ieee754/ieee754.h and ../ieee754/ldbl-128/ieee754.h, kept
mips-specific for now.

21 years ago* sysdeps/mips/mips64/Implies: Move wordsize-64 to...
Alexandre Oliva [Mon, 17 Mar 2003 16:20:44 +0000 (16:20 +0000)]
* sysdeps/mips/mips64/Implies: Move wordsize-64 to...
* sysdeps/mips/mips64/n64/Implies: New file.
* sysdeps/mips/mips64/n64/Makefile: New file.
* sysdeps/mips/mips64/n64/el/bits/endian.h: New file.
* sysdeps/mips/mips64/n32/Implies: New file.
* sysdeps/mips/mips64/n32/Makefile: New file.
* sysdeps/mips/mips64/n32/el/bits/endian.h: New file.
* sysdeps/unix/mips/mips64/n32/sysdep.h: New file.
* sysdeps/unix/mips/mips64/n64/sysdep.h: New file.
* sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: New file.
* sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: New file.
* sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: New file.
* sysdeps/unix/sysv/linux/mips/mips64/ldconfig.h: New file.
* sysdeps/unix/sysv/linux/mips/mips64/llseek.c: New file.
* sysdeps/unix/sysv/linux/mips/mips64/recv.c: New file.
* sysdeps/unix/sysv/linux/mips/mips64/send.c: New file.
* sysdeps/unix/sysv/linux/mips/mips64/syscall.S: New file.
* sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: New file.
* sysdeps/unix/sysv/linux/mips/mips64/umount.c: New file.
* sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: New file.

21 years ago* sysdeps/unix/sysv/linux/configure.in (libc_cv_slibdir): Use
Alexandre Oliva [Mon, 17 Mar 2003 15:57:19 +0000 (15:57 +0000)]
* sysdeps/unix/sysv/linux/configure.in (libc_cv_slibdir): Use
lib64 for mips64/n64 and lib32 for mips64/n32.
(ldd_rewrite_script): Needed for all mips64 configurations.
* sysdeps/unix/sysv/linux/configure: Rebuilt.
* sysdeps/unix/sysv/linux/mips/mips64/ldd-rewrite.sed: New file.
* sysdeps/unix/sysv/linux/mips/mips64/Dist: New file.

21 years ago* sysdeps/mips/machine-gmon.h (MCOUNT): Define for N32 and N64 as
Alexandre Oliva [Mon, 17 Mar 2003 15:53:37 +0000 (15:53 +0000)]
* sysdeps/mips/machine-gmon.h (MCOUNT): Define for N32 and N64 as
well.

21 years ago* sysdeps/unix/sysv/linux/mips/configure.in: New. Pre-process
Alexandre Oliva [Mon, 17 Mar 2003 15:50:05 +0000 (15:50 +0000)]
* sysdeps/unix/sysv/linux/mips/configure.in: New.  Pre-process
asm/unistd.h into asm-unistd.h.
* sysdeps/unix/sysv/linux/mips/configure: Generated.
* sysdeps/unix/sysv/linux/mips/Makefile: Do custom processing
of syscall list.
* sysdeps/unix/sysv/linux/mips/sys/syscall.h: New file.
* sysdeps/unix/sysv/linux/mips/clone.S: Don't include
asm/unistd.h.

21 years ago* sysdeps/unix/sysv/linux/mips/sys/ptrace.h: New file.
Alexandre Oliva [Mon, 17 Mar 2003 15:48:52 +0000 (15:48 +0000)]
* sysdeps/unix/sysv/linux/mips/sys/ptrace.h: New file.
* sysdeps/unix/sysv/linux/mips/ptrace.c: New file.  Use long
long type for registers on n32.

21 years ago* sysdeps/mips/bits/wordsize.h: New file, appropriate for all
Alexandre Oliva [Mon, 17 Mar 2003 15:47:13 +0000 (15:47 +0000)]
* sysdeps/mips/bits/wordsize.h: New file, appropriate for all
3 ABIs.
* sysdeps/mips/mips64/gmp-mparam.h: New file.  Define
BITS_PER_LONGINT to __WORDSIZE, to match all 3 ABIs.
* sysdeps/mips/setjmp_aux.c (STRINGXP, REGS, PTRS): New macros.
(__sigsetjmp_aux): Use them.  Adjust for all 3 ABIs.
* sysdeps/mips/elf/start.S: Adjust for all 3 ABIs.
* sysdeps/unix/mips/brk.S: Likewise.
* sysdeps/unix/mips/sysdep.S: Likewise.
* sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
* sysdeps/mips/bits/setjmp.h (__jmp_buf): Likewise.
* sysdeps/mips/sys/ucontext.h: Likewise.
* sysdeps/unix/sysv/linux/mips/sys/profcs.h: Likewise.
* sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Likewise.
* sysdeps/unix/sysv/linux/mips/kernel_stat.h: Likewise.
* sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
* sysdeps/mips/mips64/bsd-setjmp.S: Likewise.
* sysdeps/mips/mips64/setjmp.S: Likewise.
* sysdeps/mips/mips64/bits/setjmp.h: Deleted, obsolete.
* sysdeps/mips/mips64/soft-fp/sfp-machine.h: Use long long for
64-bit types.

21 years ago* sysdeps/mips/fpu/bits/mathdef.h: New.
Alexandre Oliva [Fri, 14 Mar 2003 15:30:43 +0000 (15:30 +0000)]
* sysdeps/mips/fpu/bits/mathdef.h: New.
(__NO_LONG_DOUBLE_MATH): Define for o32.

21 years ago* sysdeps/mips/sys/asm.h: Formatting changes.
Alexandre Oliva [Fri, 14 Mar 2003 11:06:32 +0000 (11:06 +0000)]
* sysdeps/mips/sys/asm.h: Formatting changes.
(PTR, PTRSIZE, PTRLOG): Adjust for all 3 ABIs.
(CPADD): Define for all of them.
(SETUP_GP, SETUP_GPX, SETUP_GPX_L, SAVE_GP, SETUP_GP64,
SETUP_GPX64, SETUP_GPX64_L, RESTORE_GP64, USE_ALT_CP,
NARGSAVE): Define per ABI spec.
(END): Don't redefine.
(LONG_SLL, LONG_SLLV, LONG_SRL, LONG_SRLV, LONG_SRA,
LONG_SRAV): Remove duplicate definitions.
(PTR_ADD, PTR_ADDI, PTR_ADDU, PTR_ADDIU, PTR_SUB, PTR_SUBI,
PTR_SUBU, PTR_SUBIU, PTR_L, PTR_S, PTR_SLL, PTR_SLLV, PTR_SRL,
PTR_SRLV, PTR_SRA, PTR_SRAV, PTR_SCALESHIFT): Define for n32.
(PTR_LA): Define for all 3 ABIs.

21 years ago* sysdeps/mips/dl-machine.h: Include sys/asm.h.
Alexandre Oliva [Fri, 14 Mar 2003 08:43:13 +0000 (08:43 +0000)]
* sysdeps/mips/dl-machine.h: Include sys/asm.h.
(elf_machine_matches_host): Prevent linking of o32 and n32
together.
(elf_machine_dynamic): Document assumption on $gp.
(STRINGXP, STRINGXV, STRINGV_): New macros.
(elf_machine_load_address): Use them to stringize PTR_LA and
PTR_SUBU.
(ELF_DL_FRAME_SIZE, ELF_DL_SAVE_ARG_REGS,
ELF_DL_RESTORE_ARG_REGS, IFABIO32): New macros used in...
(_dl_runtime_resolve): Adjust it for all 3 ABIs.
(__dl_runtime_resolve): Cast the symtab initializer to the
right type.
(RTLD_START): Use it.  Adjust it for all 3 ABIs.
(elf_machine_rel): Mark as always_inline in RTLD_BOOTSTRAP.
Handle 64-bit R_MIPS_REL composite relocation and accept
R_MIPS_64 relocations to shift addend size to 64 bits.
Document assumption regarding local GOT entries.  Document
backward-compatibility departing from the ABI behavior in
applying relocations that reference section symbols, no longer
used.  Support relocations to mis-aligned offsets.
* sysdeps/mips/mips64/dl-machine.h: Deleted, obsolete.

21 years ago* sysdeps/unix/sysv/linux/mips/readelflib.c: New file.
Alexandre Oliva [Fri, 14 Mar 2003 07:52:05 +0000 (07:52 +0000)]
* sysdeps/unix/sysv/linux/mips/readelflib.c: New file.

21 years ago* sysdeps/unix/sysv/linux/mips/kernel_sigaction.h
Alexandre Oliva [Fri, 14 Mar 2003 07:49:05 +0000 (07:49 +0000)]
* sysdeps/unix/sysv/linux/mips/kernel_sigaction.h
(_KERNEL_NSIG_BPW): Define in terms of _MIPS_SZLONG.
* sysdeps/unix/sysv/linux/mips/sigaction.c: Define restore and
restore_rt functions.  Use them.

21 years ago* sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Don't
Alexandre Oliva [Fri, 14 Mar 2003 07:03:36 +0000 (07:03 +0000)]
* sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Don't
.set mips2 on new abis.

21 years ago* sysdeps/mips/memcpy.S: Map t0-3 to a4-7 on new abis.
Alexandre Oliva [Fri, 14 Mar 2003 05:31:28 +0000 (05:31 +0000)]
* sysdeps/mips/memcpy.S: Map t0-3 to a4-7 on new abis.
* sysdeps/mips/memset.S: Likewise.
* sysdeps/mips/sys/regdef.h: Alias a4-7 or t0-3 to $8-11
depending on the ABI.

21 years ago* sysdeps/mips/atomicity.h (exchange_and_add, atomic_add):
Alexandre Oliva [Fri, 14 Mar 2003 05:30:31 +0000 (05:30 +0000)]
* sysdeps/mips/atomicity.h (exchange_and_add, atomic_add):
Don't .set mips2 on new abi.
(compare_and_swap): Likewise.  Support 64-bit longs on n64.

21 years ago2003-03-13 Alexandre Oliva <aoliva@redhat.com>
Roland McGrath [Fri, 14 Mar 2003 03:59:37 +0000 (03:59 +0000)]
2003-03-13  Alexandre Oliva  <aoliva@redhat.com>

* sysdeps/mips/add_n.S: Use L macro for local labels.
* sysdeps/mips/addmul_1.S: Likewise.
* sysdeps/mips/lshift.S: Likewise.
* sysdeps/mips/memcpy.S: Likewise.
* sysdeps/mips/memset.S: Likewise.
* sysdeps/mips/mul_1.S: Likewise.
* sysdeps/mips/rshift.S: Likewise.
* sysdeps/mips/sub_n.S: Likewise.
* sysdeps/mips/submul_1.S: Likewise.
* sysdeps/mips/mips64/add_n.S: Likewise.
* sysdeps/mips/mips64/addmul_1.S: Likewise.
* sysdeps/mips/mips64/lshift.S: Likewise.
* sysdeps/mips/mips64/mul_1.S: Likewise.
* sysdeps/mips/mips64/rshift.S: Likewise.
* sysdeps/mips/mips64/sub_n.S: Likewise.
* sysdeps/mips/mips64/submul_1.S: Likewise.
* sysdeps/unix/mips/sysdep.h: Define L() according to ABI
conventions.  Define END as in sys/asm.h.
* sysdeps/unix/mips/sysdep.S: Likewise.
* sysdeps/unix/mips/wait.S: Likewise.
* sysdeps/unix/sysv/linux/mips/clone.S: Likewise.

21 years ago Introduce and use local
Andreas Jaeger [Thu, 13 Mar 2003 15:07:13 +0000 (15:07 +0000)]
Introduce and use local
label .Lthread_start since current binutils don't allow branches
to globally visible symbols.

21 years ago(__thread_start): Use jal instead of jalr to invoke subroutine so
Ulrich Drepper [Wed, 12 Mar 2003 01:04:51 +0000 (01:04 +0000)]
(__thread_start): Use jal instead of jalr to invoke subroutine so
restoring the $gp register will work properly.

21 years ago2003-03-04 Guido Guenther <agx@sigxcpu.org>
Andreas Jaeger [Fri, 7 Mar 2003 09:46:33 +0000 (09:46 +0000)]
2003-03-04  Guido Guenther  <agx@sigxcpu.org>

* sysdeps/unix/sysv/linux/mips/syscalls.list: Remove unneeded
stubs, we have INLINE_SYSCALL.
* sysdeps/unix/sysv/linux/mips/bits/mman.h: Define MAP_POPULATE,
MAP_NONBLOCK.

21 years agoDefine MAP_POPULATE and MAP_NONBLOCK.
Ulrich Drepper [Mon, 3 Mar 2003 09:58:55 +0000 (09:58 +0000)]
Define MAP_POPULATE and MAP_NONBLOCK.

21 years ago(_dl_start_user): Access
Andreas Schwab [Sat, 1 Mar 2003 15:33:11 +0000 (15:33 +0000)]
(_dl_start_user): Access
__libc_stack_end through GOT since it is a global symbol.

21 years agoRevert unintentional commits.
Roland McGrath [Wed, 26 Feb 2003 00:01:15 +0000 (00:01 +0000)]
Revert unintentional commits.

21 years agolinuxthreads/ChangeLog
Roland McGrath [Tue, 25 Feb 2003 23:45:16 +0000 (23:45 +0000)]
linuxthreads/ChangeLog

21 years agoAdd soft-supp.h.
Ulrich Drepper [Fri, 21 Feb 2003 06:59:04 +0000 (06:59 +0000)]
Add soft-supp.h.

21 years ago(init_iosys): Yield ENODEV on unknown systems.
Ulrich Drepper [Thu, 20 Feb 2003 22:22:35 +0000 (22:22 +0000)]
(init_iosys): Yield ENODEV on unknown systems.

21 years agoExtra files to distribute for powerpc/nofpu.
Ulrich Drepper [Thu, 20 Feb 2003 22:19:28 +0000 (22:19 +0000)]
Extra files to distribute for powerpc/nofpu.

21 years ago(INLINE_SYSCALL): Add missing arguments to INTERNAL_SYSCALL_ERROR_P and
Ulrich Drepper [Thu, 20 Feb 2003 20:22:20 +0000 (20:22 +0000)]
(INLINE_SYSCALL): Add missing arguments to INTERNAL_SYSCALL_ERROR_P and
INTERNAL_SYSCALL_ERRNO.

21 years agoAdd MADV_* and POSIX_MADV_* constants.
Andreas Schwab [Thu, 20 Feb 2003 13:23:24 +0000 (13:23 +0000)]
Add MADV_* and POSIX_MADV_* constants.

21 years ago(elf_machine_rela): Add instead of subtracting map->l_tls_offset.
Ulrich Drepper [Fri, 14 Feb 2003 06:02:01 +0000 (06:02 +0000)]
(elf_machine_rela): Add instead of subtracting map->l_tls_offset.

21 years ago(ELF_MACHINE_RUNTIME_TRAMPOLINE): Fix masking of version index.
Ulrich Drepper [Wed, 12 Feb 2003 09:42:48 +0000 (09:42 +0000)]
(ELF_MACHINE_RUNTIME_TRAMPOLINE): Fix masking of version index.

21 years agoAdd posix_fadvise64 syscall.
Ulrich Drepper [Wed, 5 Feb 2003 23:29:25 +0000 (23:29 +0000)]
Add posix_fadvise64 syscall.

21 years agoRemove __GI_* aliases, already added by make-syscalls.sh.
Ulrich Drepper [Fri, 31 Jan 2003 03:40:10 +0000 (03:40 +0000)]
Remove __GI_* aliases, already added by make-syscalls.sh.

21 years ago(sysdep-CFLAGS): Don't define, not needed any more.
Andreas Schwab [Thu, 30 Jan 2003 23:52:52 +0000 (23:52 +0000)]
(sysdep-CFLAGS): Don't define, not needed any more.

21 years ago(SYSCALL_ERROR_LABEL): Define.
Ulrich Drepper [Mon, 27 Jan 2003 20:15:03 +0000 (20:15 +0000)]
(SYSCALL_ERROR_LABEL): Define.

21 years agoDon't set errno in the _LIBC_REENTRANT case, use register names consistently.
Ulrich Drepper [Mon, 27 Jan 2003 19:01:25 +0000 (19:01 +0000)]
Don't set errno in the _LIBC_REENTRANT case, use register names consistently.

21 years agoAdd support for cancellation handling and handle both __NR_pwrite64 and
Ulrich Drepper [Mon, 27 Jan 2003 19:01:03 +0000 (19:01 +0000)]
Add support for cancellation handling and handle both __NR_pwrite64 and
__NR_pwrite.

21 years agoAdd support for cancellation handling and handle both __NR_pread64 and
Ulrich Drepper [Mon, 27 Jan 2003 19:00:40 +0000 (19:00 +0000)]
Add support for cancellation handling and handle both __NR_pread64 and
__NR_pread.

21 years ago(_dl_start_user): Use pc-relative addressing to save GOT entries.
Andreas Schwab [Sat, 25 Jan 2003 23:07:04 +0000 (23:07 +0000)]
(_dl_start_user): Use pc-relative addressing to save GOT entries.

21 years ago2003-01-21 Jakub Jelinek <jakub@redhat.com>
Roland McGrath [Wed, 22 Jan 2003 02:07:54 +0000 (02:07 +0000)]
2003-01-21  Jakub Jelinek  <jakub@redhat.com>

* sysdeps/unix/alpha/sysdep.h (inline_syscall0,
inline_syscall1, inline_syscall2, inline_syscall3,
inline_syscall4, inline_syscall5, inline_syscall6): Add __volatile__.
* sysdeps/unix/sysv/linux/alpha/sysdep.h (INTERNAL_SYSCALL): Add
__attribute__((unused)) to ChEcK.

21 years ago(EPILOGUE, GPSAVEREG): New.
Ulrich Drepper [Fri, 17 Jan 2003 19:19:55 +0000 (19:19 +0000)]
(EPILOGUE, GPSAVEREG): New.
(LOADGP) [!PIC]: Rewrite to preserve caller's gp.

21 years agoHelper code for TLS setup in static libc.
Ulrich Drepper [Fri, 17 Jan 2003 19:19:37 +0000 (19:19 +0000)]
Helper code for TLS setup in static libc.

21 years ago(elf_machine_type_class): Add TLS relocs for class PLT.
Ulrich Drepper [Fri, 17 Jan 2003 19:18:51 +0000 (19:18 +0000)]
(elf_machine_type_class): Add TLS relocs for class PLT.

21 years ago(__vfork): Conditionally branch to __fork even if __NR_vfork is not defined.
Ulrich Drepper [Wed, 15 Jan 2003 01:06:06 +0000 (01:06 +0000)]
(__vfork): Conditionally branch to __fork even if __NR_vfork is not defined.

21 years ago(INTERNAL_SYSCALL, INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
Ulrich Drepper [Wed, 15 Jan 2003 01:02:03 +0000 (01:02 +0000)]
(INTERNAL_SYSCALL, INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
INTERNAL_SYSCALL_ERROR_P, INLINE_SYSCALL): Define.