[PATCH] Fix glibc sparc build (dl-*brk stuff)
Jakub Jelinek
jakub@redhat.com
Sun Jun 9 12:49:00 GMT 2002
Hi!
The following patch fixes build on sparc-linux. Without it, the first
dl-brk routine found in the hierarchy is unix/sparc/dl-brk.S which will
source unix/sparc/brk.S, which doesn't work on Linux (it
is a SunOS syscall).
2002-06-09 Jakub Jelinek <jakub@redhat.com>
* sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
* sysdeps/unix/sysv/linux/dl-brk.c: ...here.
* sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
* sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
---libc/sysdeps/unix/sysv/linux/i386/dl-brk.c.jj Sun Apr 7 17:54:40 2002
+++libc/sysdeps/unix/sysv/linux/i386/dl-brk.c Sun Jun 9 21:19:10 2002
@@ -1,5 +0,0 @@
-/* We can use the normal code but we also know the __curbrk is not exported
- from ld.so. */
-extern void *__curbrk attribute_hidden;
-
-#include <brk.c>
---libc/sysdeps/unix/sysv/linux/i386/dl-sbrk.c.jj Sun Apr 7 17:54:40 2002
+++libc/sysdeps/unix/sysv/linux/i386/dl-sbrk.c Sun Jun 9 21:19:10 2002
@@ -1,5 +0,0 @@
-/* We can use the normal code but we also know the __curbrk is not exported
- from ld.so. */
-extern void *__curbrk attribute_hidden;
-
-#include <sbrk.c>
---libc/sysdeps/unix/sysv/linux/dl-brk.c.jj Sun Jun 9 21:19:23 2002
+++libc/sysdeps/unix/sysv/linux/dl-brk.c Sun Apr 7 17:54:40 2002
@@ -0,0 +1,5 @@
+/* We can use the normal code but we also know the __curbrk is not exported
+ from ld.so. */
+extern void *__curbrk attribute_hidden;
+
+#include <brk.c>
---libc/sysdeps/unix/sysv/linux/dl-sbrk.c.jj Sun Jun 9 21:19:23 2002
+++libc/sysdeps/unix/sysv/linux/dl-sbrk.c Sun Apr 7 17:54:40 2002
@@ -0,0 +1,5 @@
+/* We can use the normal code but we also know the __curbrk is not exported
+ from ld.so. */
+extern void *__curbrk attribute_hidden;
+
+#include <sbrk.c>
Jakub
More information about the Libc-hacker
mailing list