diff options
Diffstat (limited to 'sysdeps/unix')
-rw-r--r-- | sysdeps/unix/sysv/linux/i386/sysdep.S | 12 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/i386/sysdep.h | 5 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/m68k/sysdep.S | 2 |
3 files changed, 9 insertions, 10 deletions
diff --git a/sysdeps/unix/sysv/linux/i386/sysdep.S b/sysdeps/unix/sysv/linux/i386/sysdep.S index 7d5444d6a6..0f3e31dbce 100644 --- a/sysdeps/unix/sysv/linux/i386/sysdep.S +++ b/sysdeps/unix/sysv/linux/i386/sysdep.S @@ -16,6 +16,8 @@ License along with the GNU C Library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +#include <sysdep.h> + /* Because the Linux version is in fact i386/ELF and the start.? file for this system (sysdeps/i386/elf/start.S) is also used by The Hurd and therefore this files must not contain the definition of the @@ -43,9 +45,7 @@ _errno = errno /* This name is expected by hj libc.so.5 startup code. */ The code for Linux is almost identical to the canonical Unix/i386 code, except that the error number in %eax is negated. */ - .globl __syscall_error - .type __syscall_error,@function -__syscall_error: +ENTRY (__syscall_error) negl %eax #define __syscall_error __syscall_error_1 @@ -54,10 +54,7 @@ __syscall_error: #endif /* !PIC */ -#ifdef _LIBC_REENTRANT - .globl __errno_location - .type __errno_location,@function -__errno_location: +ENTRY (__errno_location) #ifdef PIC call .L2 .L2: popl %ecx @@ -69,4 +66,3 @@ __errno_location: ret .Lfe1: .size __errno_location, .Lfe1-__errno_location -#endif diff --git a/sysdeps/unix/sysv/linux/i386/sysdep.h b/sysdeps/unix/sysv/linux/i386/sysdep.h index 96470a19b9..cbd7b5553b 100644 --- a/sysdeps/unix/sysv/linux/i386/sysdep.h +++ b/sysdeps/unix/sysv/linux/i386/sysdep.h @@ -17,6 +17,9 @@ License along with the GNU C Library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +#ifndef _LINUX_I386_SYSDEP_H +#define _LINUX_I386_SYSDEP_H 1 + /* There is some commonality. */ #include <sysdeps/unix/i386/sysdep.h> @@ -179,3 +182,5 @@ syscall_error: \ #define _POPARGS_5 _POPARGS_4; popl %edi #endif /* ASSEMBLER */ + +#endif /* linux/i386/sysdep.h */ diff --git a/sysdeps/unix/sysv/linux/m68k/sysdep.S b/sysdeps/unix/sysv/linux/m68k/sysdep.S index 674715f824..b47e167159 100644 --- a/sysdeps/unix/sysv/linux/m68k/sysdep.S +++ b/sysdeps/unix/sysv/linux/m68k/sysdep.S @@ -62,7 +62,6 @@ __syscall_error: .size __syscall_error, . - __syscall_error #endif /* PIC */ -#ifdef _LIBC_REENTRANT .globl __errno_location .type __errno_location, @function __errno_location: @@ -73,4 +72,3 @@ __errno_location: #endif rts .size __errno_location, . - __errno_location -#endif |