summaryrefslogtreecommitdiff
path: root/ldso/ldso/sh64/dl-syscalls.h
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-12-17 08:07:14 +0000
committerEric Andersen <andersen@codepoet.org>2003-12-17 08:07:14 +0000
commit14ad6760690b422e2d0f709c06a543196a6da2c0 (patch)
tree69c315b6c87ac9ab90cfe435ea3c31f801135368 /ldso/ldso/sh64/dl-syscalls.h
parent0a0a648ed65342e7bb71608894c308bfb6143a4d (diff)
Patch from Paul Mundt <lethal@linux-sh.org>:
Here's the patch for the ldso bits for sh64. This is still in need of a bunch of debugging, testing, etc. and is really only being submitted for general completeness. This assumes that the previous patches I've submitted have already been applied. I plan on playing with this and buildroot some more later, as I'd definitely like to see buildroot images for sh64.
Diffstat (limited to 'ldso/ldso/sh64/dl-syscalls.h')
-rw-r--r--ldso/ldso/sh64/dl-syscalls.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/ldso/ldso/sh64/dl-syscalls.h b/ldso/ldso/sh64/dl-syscalls.h
new file mode 100644
index 000000000..34da5d630
--- /dev/null
+++ b/ldso/ldso/sh64/dl-syscalls.h
@@ -0,0 +1,9 @@
+/* Define the __set_errno macro as nothing so that we don't bother
+ * setting errno, which is important since we make system calls
+ * before the errno symbol is dynamicly linked. */
+
+#include <errno.h>
+#undef __set_errno
+#define __set_errno(X) {(void)(X);}
+#include "sys/syscall.h"
+