From cabcc273c218a247ffecb03a067b80857a353cf4 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 18 Oct 1995 05:47:53 +0000 Subject: Tue Oct 17 23:00:10 1995 Roland McGrath * sysdeps/mach/_strerror.c: Include stdio-common/_itoa.h instead of stdio/_itoa.h. Tue Oct 17 19:51:17 1995 Ulrich Drepper * sysdeps/unix/sysv/linux/i386/stat.S [PIC] (__stat): Set GOT register %ebx before calling __xstat through PLT. * sysdeps/unix/sysv/linux/i386/sysdep.S: Fix typo in comment. * sysdeps/unix/sysv/linux/sigset.h: Remove file. * hurd/hurdsock.c: Include stdio-common/_itoa.h instead of stdio/_itoa.h. * hurd/hurdlookup.c: Likewise. --- sysdeps/unix/sysv/linux/i386/stat.S | 9 +++++++++ sysdeps/unix/sysv/linux/i386/sysdep.S | 2 +- sysdeps/unix/sysv/linux/sigset.h | 1 - 3 files changed, 10 insertions(+), 2 deletions(-) delete mode 100644 sysdeps/unix/sysv/linux/sigset.h (limited to 'sysdeps/unix') diff --git a/sysdeps/unix/sysv/linux/i386/stat.S b/sysdeps/unix/sysv/linux/i386/stat.S index 73204bf..5902c21 100644 --- a/sysdeps/unix/sysv/linux/i386/stat.S +++ b/sysdeps/unix/sysv/linux/i386/stat.S @@ -28,11 +28,20 @@ Cambridge, MA 02139, USA. */ ENTRY (__stat) movl 8(%esp), %eax movl 4(%esp), %ecx +#ifdef PIC + pushl %ebx + call 0f +0: popl %ebx + addl $_GLOBAL_OFFSET_TABLE_+[.-0b], %ebx +#endif pushl %eax pushl %ecx pushl $_STAT_VER /* Push extra first arg to syscall. */ call JUMPTARGET(__xstat)/* Jump to xstat implementation. */ addl $12, %esp +#ifdef PIC + popl %ebx +#endif ret weak_alias (__stat, stat) diff --git a/sysdeps/unix/sysv/linux/i386/sysdep.S b/sysdeps/unix/sysv/linux/i386/sysdep.S index b873c95..5bbe3b7 100644 --- a/sysdeps/unix/sysv/linux/i386/sysdep.S +++ b/sysdeps/unix/sysv/linux/i386/sysdep.S @@ -33,7 +33,7 @@ __syscall_error: `errno' variable (I don't know why, ask Roland), we have to define it somewhere else. - ...and this please is here. */ + ...and this place is here. */ .data .globl errno errno: diff --git a/sysdeps/unix/sysv/linux/sigset.h b/sysdeps/unix/sysv/linux/sigset.h deleted file mode 100644 index e9bbb96..0000000 --- a/sysdeps/unix/sysv/linux/sigset.h +++ /dev/null @@ -1 +0,0 @@ -#include -- cgit v1.1