diff options
| author | Roland McGrath <roland@gnu.org> | 2002-10-11 10:51:31 +0000 |
|---|---|---|
| committer | Roland McGrath <roland@gnu.org> | 2002-10-11 10:51:31 +0000 |
| commit | d030d52da237cfe4159a06fe78564368bb837d71 (patch) | |
| tree | 81a56f74d75628e65730e418bb802876e3e8f6dd | |
| parent | 402dbb2e81f71e5c0f1bbf04b14a82e7e74b4676 (diff) | |
| download | glibc-d030d52da237cfe4159a06fe78564368bb837d71.tar.xz glibc-d030d52da237cfe4159a06fe78564368bb837d71.zip | |
2002-10-07 Roland McGrath <roland@redhat.com>
* sysdeps/generic/errno.c: New file.
* csu/Makefile (aux): New variable, list errno.
* sysdeps/unix/sysv/linux/i386/sysdep.S (errno, _errno): Remove defns.
* sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
* sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
* sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
* sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
* sysdeps/unix/sysv/linux/arm/sysdep.S: Likewise.
* sysdeps/unix/sysv/linux/cris/sysdep.S: Likewise.
* sysdeps/unix/sysv/linux/hppa/sysdep.c: Likewise.
* sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
* sysdeps/unix/sysv/linux/powerpc/sysdep.c: Likewise.
* sysdeps/unix/sysv/linux/sparc/sysdep.S: Likewise.
* sysdeps/unix/sysv/linux/sh/sysdep.S: Likewise.
* sysdeps/unix/alpha/sysdep.S: Likewise.
* sysdeps/generic/start.c: Likewise.
* sysdeps/unix/start.c: Likewise.
* sysdeps/unix/arm/start.c: Likewise.
* sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
* sysdeps/unix/sparc/start.c: Likewise.
* sysdeps/unix/sysv/irix4/start.c: Likewise.
* sysdeps/unix/sysv/linux/mips/sysdep.S: File removed.
| -rw-r--r-- | sysdeps/unix/alpha/sysdep.S | 13 | ||||
| -rw-r--r-- | sysdeps/unix/arm/start.c | 5 | ||||
| -rw-r--r-- | sysdeps/unix/bsd/ultrix4/mips/start.S | 3 | ||||
| -rw-r--r-- | sysdeps/unix/sysv/irix4/start.c | 3 | ||||
| -rw-r--r-- | sysdeps/unix/sysv/linux/arm/sysdep.S | 7 | ||||
| -rw-r--r-- | sysdeps/unix/sysv/linux/cris/sysdep.S | 8 | ||||
| -rw-r--r-- | sysdeps/unix/sysv/linux/hppa/sysdep.c | 5 | ||||
| -rw-r--r-- | sysdeps/unix/sysv/linux/m68k/sysdep.S | 13 | ||||
| -rw-r--r-- | sysdeps/unix/sysv/linux/mips/sysdep.S | 35 |
9 files changed, 0 insertions, 92 deletions
diff --git a/sysdeps/unix/alpha/sysdep.S b/sysdeps/unix/alpha/sysdep.S index 5279b86076..05c00918e6 100644 --- a/sysdeps/unix/alpha/sysdep.S +++ b/sysdeps/unix/alpha/sysdep.S @@ -20,19 +20,6 @@ #include <sysdep.h> #include <features.h> - .section .bss - .globl errno - .align 2 -errno: .space 4 -#ifdef __ELF__ - .type errno, @object - .size errno, 4 -#endif - .globl __errno -__errno = errno - .globl _errno -_errno = errno - .text .align 2 diff --git a/sysdeps/unix/arm/start.c b/sysdeps/unix/arm/start.c index a8fea14b9f..6088faaed1 100644 --- a/sysdeps/unix/arm/start.c +++ b/sysdeps/unix/arm/start.c @@ -28,11 +28,6 @@ int __data_start = 0; weak_alias (__data_start, data_start) #endif -#ifndef errno -volatile int __errno; -strong_alias (__errno, errno) -#endif - extern void __libc_init __P ((int argc, char **argv, char **envp)); extern int main __P ((int argc, char **argv, char **envp)); diff --git a/sysdeps/unix/bsd/ultrix4/mips/start.S b/sysdeps/unix/bsd/ultrix4/mips/start.S index df86229ea5..c2fc4882d8 100644 --- a/sysdeps/unix/bsd/ultrix4/mips/start.S +++ b/sysdeps/unix/bsd/ultrix4/mips/start.S @@ -19,9 +19,6 @@ #include <sysdep.h> -__errno: -.comm errno, 4 - ENTRY(__start) .set noreorder diff --git a/sysdeps/unix/sysv/irix4/start.c b/sysdeps/unix/sysv/irix4/start.c index 719d017993..a88d0d4d1b 100644 --- a/sysdeps/unix/sysv/irix4/start.c +++ b/sysdeps/unix/sysv/irix4/start.c @@ -27,9 +27,6 @@ /* The first piece of initialized data. */ int __data_start = 0; -__volatile int __errno = 0; -strong_alias (__errno, errno) - extern void __libc_init __P ((int argc, char **argv, char **envp)); extern int main __P ((int argc, char **argv, char **envp)); diff --git a/sysdeps/unix/sysv/linux/arm/sysdep.S b/sysdeps/unix/sysv/linux/arm/sysdep.S index 48dcffae13..1a4de2adb3 100644 --- a/sysdeps/unix/sysv/linux/arm/sysdep.S +++ b/sysdeps/unix/sysv/linux/arm/sysdep.S @@ -18,13 +18,6 @@ #include <sysdep.h> -/* We define errno here, to be consistent with Linux/i386. */ - .bss - .globl C_SYMBOL_NAME(errno) - .type C_SYMBOL_NAME(errno),%object - .size C_SYMBOL_NAME(errno),4 -C_SYMBOL_NAME(errno): .zero 4 -weak_alias (errno, _errno) .text /* The syscall stubs jump here when they detect an error. diff --git a/sysdeps/unix/sysv/linux/cris/sysdep.S b/sysdeps/unix/sysv/linux/cris/sysdep.S index 64fb8505af..e53e7bbfb9 100644 --- a/sysdeps/unix/sysv/linux/cris/sysdep.S +++ b/sysdeps/unix/sysv/linux/cris/sysdep.S @@ -18,14 +18,6 @@ #include <sysdep.h> -/* Make space for the errno variable. */ - - .globl C_SYMBOL_NAME(errno) - .type C_SYMBOL_NAME(errno),@object - .lcomm C_SYMBOL_NAME(errno),4 - -weak_alias (errno, _errno) - /* The syscall stubs jump here when they detect an error, bot for PIC and non-PIC. */ diff --git a/sysdeps/unix/sysv/linux/hppa/sysdep.c b/sysdeps/unix/sysv/linux/hppa/sysdep.c index b333b7013d..bf4d4af5c7 100644 --- a/sysdeps/unix/sysv/linux/hppa/sysdep.c +++ b/sysdeps/unix/sysv/linux/hppa/sysdep.c @@ -28,11 +28,6 @@ __syscall_error (int err_no) return -1; } -/* We also have to have a 'real' definition of errno. */ -#undef errno -int errno = 0; -weak_alias (errno, _errno) - /* HPPA implements syscall() in 'C'; the assembler version would typically be in syscall.S. */ diff --git a/sysdeps/unix/sysv/linux/m68k/sysdep.S b/sysdeps/unix/sysv/linux/m68k/sysdep.S index 628335b8d0..e4ec92d836 100644 --- a/sysdeps/unix/sysv/linux/m68k/sysdep.S +++ b/sysdeps/unix/sysv/linux/m68k/sysdep.S @@ -18,19 +18,6 @@ #include <sysdep.h> -/* The Linux version is in fact m68k/ELF and the start.? file for this - system (sysdeps/m68k/elf/start.S) is also used by The Hurd. This file - must not contain the definition of the `errno' variable, we have to - define it somewhere else. - - ...and this place is here. */ - .bss - .globl errno - .type errno,@object -errno: .space 4 - .size errno,4 -weak_alias (errno, _errno) - .text /* The following code is only used in the shared library when we compile the reentrant version. Otherwise each system call defines diff --git a/sysdeps/unix/sysv/linux/mips/sysdep.S b/sysdeps/unix/sysv/linux/mips/sysdep.S deleted file mode 100644 index 2584982bb0..0000000000 --- a/sysdeps/unix/sysv/linux/mips/sysdep.S +++ /dev/null @@ -1,35 +0,0 @@ -/* Copyright (C) 1998, 2002 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, write to the Free - Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA - 02111-1307 USA. */ - -#include <sysdep.h> - -/* The Linux version is in fact MIPS/ELF and the start.? file for this - system (sysdeps/mips/elf/start.S) is also used by The Hurd. This file - must not contain the definition of the `errno' variable, we have to - define it somewhere else. - - ...and this place is here. */ - .bss - .globl errno - .type errno,@object - .size errno,4 -errno: .word 4 - .text -weak_alias(errno, _errno) - -#include <sysdeps/unix/mips/sysdep.S> |
