diff options
author | Ulrich Drepper <drepper@redhat.com> | 2002-05-30 23:35:59 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2002-05-30 23:35:59 +0000 |
commit | 9bd646022380b5eef343c61f8a8274135540db09 (patch) | |
tree | d2badaf6dbf17a5958b89f4c1b024d56f9512b98 /sysdeps/unix/sysv/linux/i386/sysdep.h | |
parent | 5c24bb7d7bf2df8085bbf8a5b6ccfdcec6c8cafc (diff) | |
download | glibc-9bd646022380b5eef343c61f8a8274135540db09.tar.gz glibc-9bd646022380b5eef343c61f8a8274135540db09.tar.xz glibc-9bd646022380b5eef343c61f8a8274135540db09.zip |
Update.
2002-05-30 Ulrich Drepper <drepper@redhat.com> * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines): Add readahead. * sysdeps/unix/sysv/linux/readahead.c: New file. * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall. * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64. * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall. Add sendfile64 alias to sendfile syscall. * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise. * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise. * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise. * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead syscall. * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX special section for PIC register loading. * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise. * config.h.in: Define HAVE_HIDDEN. * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined. * elf/elf.h: Correct Alpha TLS relocations according to last spec.
Diffstat (limited to 'sysdeps/unix/sysv/linux/i386/sysdep.h')
-rw-r--r-- | sysdeps/unix/sysv/linux/i386/sysdep.h | 42 |
1 files changed, 38 insertions, 4 deletions
diff --git a/sysdeps/unix/sysv/linux/i386/sysdep.h b/sysdeps/unix/sysv/linux/i386/sysdep.h index 2cc39d69cd..730c4dfdf9 100644 --- a/sysdeps/unix/sysv/linux/i386/sysdep.h +++ b/sysdeps/unix/sysv/linux/i386/sysdep.h @@ -76,13 +76,30 @@ #else /* Store (- %eax) into errno through the GOT. */ #ifdef _LIBC_REENTRANT -#define SYSCALL_ERROR_HANDLER \ -0:pushl %ebx; \ + +# ifndef HAVE_HIDDEN +# define SETUP_PIC_REG \ call 1f; \ .subsection 1; \ 1:movl (%esp), %ebx; \ ret; \ + .previous +# else +# define SETUP_PIC_REG \ + .section .gnu.linkonce.t.__i686.get_pc_thunk.bx,"ax",@progbits; \ + .globl __i686.get_pc_thunk.bx; \ + .hidden __i686.get_pc_thunk.bx; \ + .type __i686.get_pc_thunk.bx,@function; \ +__i686.get_pc_thunk.bx: \ + movl (%esp), %ebx; \ + ret; \ .previous; \ + call __i686.get_pc_thunk.bx +# endif + +#define SYSCALL_ERROR_HANDLER \ +0:pushl %ebx; \ + SETUP_PIC_REG; \ addl $_GLOBAL_OFFSET_TABLE_, %ebx; \ xorl %edx, %edx; \ subl %eax, %edx; \ @@ -98,12 +115,29 @@ /* A quick note: it is assumed that the call to `__errno_location' does not modify the stack! */ #else -#define SYSCALL_ERROR_HANDLER \ -0:call 1f; \ + +# ifndef HAVE_HIDDEN +# define SETUP_PIC_REG \ + call 1f; \ .subsection 1; \ 1:movl (%esp), %ecx; \ ret; \ + .previous +# else +# define SETUP_PIC_REG \ + .section .gnu.linkonce.t.__i686.get_pc_thunk.cx,"ax",@progbits; \ + .globl __i686.get_pc_thunk.cx; \ + .hidden __i686.get_pc_thunk.cx; \ + .type __i686.get_pc_thunk.cx,@function; \ +__i686.get_pc_thunk.cx: \ + movl (%esp), %ecx; \ + ret; \ .previous; \ + call __i686.get_pc_thunk.cx +# endif + +#define SYSCALL_ERROR_HANDLER \ +0:define SETUP_PIC_REG; \ addl $_GLOBAL_OFFSET_TABLE_, %ecx; \ xorl %edx, %edx; \ subl %eax, %edx; \ |