about summary refs log tree commit diff
path: root/src/linux/arch_prctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/linux/arch_prctl.c')
-rw-r--r--src/linux/arch_prctl.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/linux/arch_prctl.c b/src/linux/arch_prctl.c
new file mode 100644
index 00000000..a6ab2644
--- /dev/null
+++ b/src/linux/arch_prctl.c
@@ -0,0 +1,9 @@
+#include "syscall.h"
+#ifdef SYS_arch_prctl
+#include "libc.h"
+int __arch_prctl(int code, unsigned long addr)
+{
+	return syscall(SYS_arch_prctl, code, addr);
+}
+weak_alias(__arch_prctl, arch_prctl);
+#endif