summaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/mach/_strerror.c2
-rw-r--r--sysdeps/unix/sysv/linux/i386/stat.S9
-rw-r--r--sysdeps/unix/sysv/linux/i386/sysdep.S2
-rw-r--r--sysdeps/unix/sysv/linux/sigset.h1
4 files changed, 11 insertions, 3 deletions
diff --git a/sysdeps/mach/_strerror.c b/sysdeps/mach/_strerror.c
index 8754f4c047..82d83a048f 100644
--- a/sysdeps/mach/_strerror.c
+++ b/sysdeps/mach/_strerror.c
@@ -20,7 +20,7 @@ Cambridge, MA 02139, USA. */
#include <string.h>
#include <mach/error.h>
#include <errorlib.h>
-#include "../stdio/_itoa.h"
+#include "../stdio-common/_itoa.h"
/* Return a string describing the errno code in ERRNUM. */
char *
diff --git a/sysdeps/unix/sysv/linux/i386/stat.S b/sysdeps/unix/sysv/linux/i386/stat.S
index 73204bf254..5902c21eb2 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 b873c958bb..5bbe3b745d 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 e9bbb9652a..0000000000
--- a/sysdeps/unix/sysv/linux/sigset.h
+++ /dev/null
@@ -1 +0,0 @@
-#include <sysdeps/generic/sigset.h>