Blame SOURCES/ltrace-0.7.91-aarch64.patch

2ba66f
diff --git a/README b/README
2ba66f
index 414bdfb..a04b767 100644
2ba66f
--- a/README
2ba66f
+++ b/README
2ba66f
@@ -24,6 +24,7 @@ The following targets are currently (at least somewhat) supported.
2ba66f
 Some of them may be more or less broken in reality, it is not feasible
2ba66f
 to test each release comprehensively on each target.
2ba66f
 
2ba66f
+	aarch64-*-linux-gnu
2ba66f
 	armv6l-*-linux-gnueabi
2ba66f
 	armv7l-*-linux-gnueabihf
2ba66f
 	i[4567]86-*-linux-gnu
2ba66f
@@ -81,7 +82,7 @@ quick one-liner), it is advisable to send an e-mail beforehand.
2ba66f
 
2ba66f
 
2ba66f
 -------------------------------------------------------------------------------
2ba66f
-Copyright (C) 2012,2013 Petr Machata <pmachata@redhat.com>
2ba66f
+Copyright (C) 2012-2014 Petr Machata <pmachata@redhat.com>
2ba66f
 Copyright (C) 1997-2009 Juan Cespedes <cespedes@debian.org>
2ba66f
 This file is part of ltrace.
2ba66f
 
2ba66f
diff --git a/configure.ac b/configure.ac
2ba66f
index c6e6bf0..0e9a124 100644
2ba66f
--- a/configure.ac
2ba66f
+++ b/configure.ac
2ba66f
@@ -1,6 +1,6 @@
2ba66f
 # -*- Autoconf -*-
2ba66f
 # This file is part of ltrace.
2ba66f
-# Copyright (C) 2010,2012,2013 Petr Machata, Red Hat Inc.
2ba66f
+# Copyright (C) 2010,2012,2013,2014 Petr Machata, Red Hat Inc.
2ba66f
 # Copyright (C) 2010,2011 Joe Damato
2ba66f
 # Copyright (C) 2010 Marc Kleine-Budde
2ba66f
 # Copyright (C) 2010 Zachary T Welch
2ba66f
@@ -399,6 +399,7 @@ AC_CONFIG_FILES([
2ba66f
 	Makefile
2ba66f
 	sysdeps/Makefile
2ba66f
 	sysdeps/linux-gnu/Makefile
2ba66f
+	sysdeps/linux-gnu/aarch64/Makefile
2ba66f
 	sysdeps/linux-gnu/alpha/Makefile
2ba66f
 	sysdeps/linux-gnu/arm/Makefile
2ba66f
 	sysdeps/linux-gnu/cris/Makefile
2ba66f
diff --git a/etc/libc.so.conf b/etc/libc.so.conf
2ba66f
index 669c50a..48b3b01 100644
2ba66f
--- a/etc/libc.so.conf
2ba66f
+++ b/etc/libc.so.conf
2ba66f
@@ -1,5 +1,12 @@
2ba66f
 # See ltrace.conf(5) for description of syntax of this file.
2ba66f
 
2ba66f
+# XXX ltrace misses long double and long long support
2ba66f
+typedef ldouble = double;
2ba66f
+typedef llong = long;
2ba66f
+typedef ullong = ulong;
2ba66f
+
2ba66f
+void __libc_start_main(hide(void*), hide(int), array(string, arg2));
2ba66f
+
2ba66f
 # arpa/inet.h
2ba66f
 typedef in_addr = struct(hex(uint));
2ba66f
 int inet_aton(string, +in_addr*);
2ba66f
@@ -233,9 +240,22 @@ void setbuffer(file,addr,ulong);
2ba66f
 void setlinebuf(file);
2ba66f
 int rename(string,string);
2ba66f
 
2ba66f
+# xlocale.h
2ba66f
+typedef locale_t = void*;
2ba66f
+locale_t newlocale(hex(int), string, locale_t);
2ba66f
+
2ba66f
 # stdlib.h
2ba66f
-long __strtol_internal(string,addr,int);
2ba66f
-ulong __strtoul_internal(string,addr,int);
2ba66f
+long __strtol_internal(string, +string*, int);
2ba66f
+ulong __strtoul_internal(string, +string*, int);
2ba66f
+
2ba66f
+double strtod(string, +string*);
2ba66f
+float strtof(string, +string*);
2ba66f
+ldouble strtold(string, +string*);
2ba66f
+
2ba66f
+double strtod_l(string, +string*, locale_t);
2ba66f
+float strtof_l(string, +string*, locale_t);
2ba66f
+ldouble strtold_l(string, +string*, locale_t);
2ba66f
+
2ba66f
 int atexit(addr);
2ba66f
 addr bsearch(string, addr, ulong, ulong, addr);
2ba66f
 addr calloc(ulong, ulong);
2ba66f
@@ -343,6 +363,10 @@ addr gmtime(addr);
2ba66f
 addr localtime(addr);
2ba66f
 ulong strftime(+string2,ulong,string,addr);
2ba66f
 long time(addr);
2ba66f
+# XXX in fact (time_t, long), which may be (llong, long) on 32-bit
2ba66f
+# arches.  We don't have llong as of this writing.
2ba66f
+typedef timespec = struct(long, long);
2ba66f
+int nanosleep(timespec*, timespec*);
2ba66f
 
2ba66f
 # unistd.h
2ba66f
 void _exit(int);
2ba66f
diff --git a/etc/syscalls.conf b/etc/syscalls.conf
2ba66f
index 562f4e7..09d347d 100644
2ba66f
--- a/etc/syscalls.conf
2ba66f
+++ b/etc/syscalls.conf
2ba66f
@@ -1,6 +1,10 @@
2ba66f
 # syscall.conf -- system call prototypes
2ba66f
 # See ltrace.conf(5) for description of syntax of this file.
2ba66f
 
2ba66f
+# Special value used to indicate the *at functions should use the
2ba66f
+# current working directory.
2ba66f
+typedef at_dirfd_t = enum[int](AT_FDCWD=-100);
2ba66f
+
2ba66f
 addr brk(addr);
2ba66f
 int close(int);
2ba66f
 int execve(string,addr,addr);
2ba66f
@@ -14,7 +18,7 @@ int getpid();
2ba66f
 addr mmap(addr,ulong,int,int,int,long);
2ba66f
 
2ba66f
 int munmap(addr,ulong);
2ba66f
-int open(string,int,octal);
2ba66f
+int open(string, hex(uint), oct(uint));
2ba66f
 int personality(uint);
2ba66f
 long read(int,+string0,ulong);
2ba66f
 int stat(string,addr);
2ba66f
@@ -113,3 +117,30 @@ ulong writev(int,addr,int);
2ba66f
 int mprotect(addr,int,int);
2ba66f
 int access(string,octal);
2ba66f
 int getdents(uint, void *, uint);
2ba66f
+
2ba66f
+int openat(at_dirfd_t, string, hex(uint), oct(uint));
2ba66f
+int mknodat(at_dirfd_t, string, oct(uint), ushort)
2ba66f
+int mkdirat(at_dirfd_t, string, oct(uint));
2ba66f
+int unlinkat(at_dirfd_t, string, hex(uint));
2ba66f
+int symlinkat(string, at_dirfd_t, string);
2ba66f
+int linkat(at_dirfd_t, string, at_dirfd_t, string, hex(uint));
2ba66f
+int renameat(at_dirfd_t, string, at_dirfd_t, string);
2ba66f
+int faccessat(at_dirfd_t, string, oct(uint), hex(uint));
2ba66f
+int fchmodat(at_dirfd_t, string, oct(uint), hex(uint));
2ba66f
+int fchownat(at_dirfd_t, string, int, int, hex(uint));
2ba66f
+int readlinkat(at_dirfd_t, string, +string[arg4], ulong);
2ba66f
+int fstatat(at_dirfd_t, string, addr, hex(uint));
2ba66f
+int utimensat(at_dirfd_t, string, addr, hex(uint));
2ba66f
+int futimens(int, addr);
2ba66f
+int futimesat(at_dirfd_t, string, addr);
2ba66f
+addr shmat(int, addr, hex(uint));
2ba66f
+int shmdt(addr);
2ba66f
+
2ba66f
+typedef fid_type = enum(FILEID_ROOT=0, FILEID_INO32_GEN=1, FILEID_INO32_GEN_PARENT=2, FILEID_BTRFS_WITHOUT_PARENT=0x4d, FILEID_BTRFS_WITH_PARENT=0x4e, FILEID_BTRFS_WITH_PARENT_ROOT=0x4f, FILEID_UDF_WITHOUT_PARENT=0x51, FILEID_UDF_WITH_PARENT=0x52, FILEID_NILFS_WITHOUT_PARENT=0x61, FILEID_NILFS_WITH_PARENT=0x62);
2ba66f
+typedef file_handle = struct(uint, fid_type, array(hex(char), elt1)*);
2ba66f
+int name_to_handle_at(at_dirfd_t, string, file_handle, int*, hex(uint));
2ba66f
+int open_by_handle_at(at_dirfd_t, file_handle, hex(uint));
2ba66f
+
2ba66f
+int newfstatat(at_dirfd_t, string, addr, hex(uint));
2ba66f
+int creat(string, oct(int));
2ba66f
+int ustat(ushort, addr);
2ba66f
diff --git a/sysdeps/linux-gnu/Makefile.am b/sysdeps/linux-gnu/Makefile.am
2ba66f
index ecee577..ec26162 100644
2ba66f
--- a/sysdeps/linux-gnu/Makefile.am
2ba66f
+++ b/sysdeps/linux-gnu/Makefile.am
2ba66f
@@ -1,4 +1,5 @@
2ba66f
 # This file is part of ltrace.
2ba66f
+# Copyright (C) 2014 Petr Machata, Red Hat, Inc.
2ba66f
 # Copyright (C) 2010,2012 Marc Kleine-Budde, Pengutronix
2ba66f
 #
2ba66f
 # This program is free software; you can redistribute it and/or
2ba66f
@@ -16,7 +17,8 @@
2ba66f
 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
2ba66f
 # 02110-1301 USA
2ba66f
 
2ba66f
-DIST_SUBDIRS = alpha arm cris ia64 m68k metag mips ppc s390 sparc x86
2ba66f
+DIST_SUBDIRS = aarch64 alpha arm cris ia64 m68k metag mips ppc s390	\
2ba66f
+	       sparc x86
2ba66f
 
2ba66f
 SUBDIRS = \
2ba66f
 	$(HOST_CPU)
2ba66f
diff --git a/sysdeps/linux-gnu/aarch64/Makefile.am b/sysdeps/linux-gnu/aarch64/Makefile.am
2ba66f
new file mode 100644
2ba66f
index 0000000..0af4e6e
2ba66f
--- /dev/null
2ba66f
+++ b/sysdeps/linux-gnu/aarch64/Makefile.am
2ba66f
@@ -0,0 +1,25 @@
2ba66f
+# This file is part of ltrace.
2ba66f
+# Copyright (C) 2014 Petr Machata, Red Hat, Inc.
2ba66f
+#
2ba66f
+# This program is free software; you can redistribute it and/or
2ba66f
+# modify it under the terms of the GNU General Public License as
2ba66f
+# published by the Free Software Foundation; either version 2 of the
2ba66f
+# License, or (at your option) any later version.
2ba66f
+#
2ba66f
+# This program is distributed in the hope that it will be useful, but
2ba66f
+# WITHOUT ANY WARRANTY; without even the implied warranty of
2ba66f
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
2ba66f
+# General Public License for more details.
2ba66f
+#
2ba66f
+# You should have received a copy of the GNU General Public License
2ba66f
+# along with this program; if not, write to the Free Software
2ba66f
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
2ba66f
+# 02110-1301 USA
2ba66f
+
2ba66f
+noinst_LTLIBRARIES = ../libcpu.la
2ba66f
+
2ba66f
+___libcpu_la_SOURCES = fetch.c plt.c regs.c trace.c
2ba66f
+
2ba66f
+noinst_HEADERS = arch.h ptrace.h signalent.h syscallent.h
2ba66f
+
2ba66f
+MAINTAINERCLEANFILES = Makefile.in
2ba66f
diff --git a/sysdeps/linux-gnu/aarch64/arch.h b/sysdeps/linux-gnu/aarch64/arch.h
2ba66f
new file mode 100644
2ba66f
index 0000000..4137613
2ba66f
--- /dev/null
2ba66f
+++ b/sysdeps/linux-gnu/aarch64/arch.h
2ba66f
@@ -0,0 +1,37 @@
2ba66f
+/*
2ba66f
+ * This file is part of ltrace.
2ba66f
+ * Copyright (C) 2014 Petr Machata, Red Hat, Inc.
2ba66f
+ *
2ba66f
+ * This program is free software; you can redistribute it and/or
2ba66f
+ * modify it under the terms of the GNU General Public License as
2ba66f
+ * published by the Free Software Foundation; either version 2 of the
2ba66f
+ * License, or (at your option) any later version.
2ba66f
+ *
2ba66f
+ * This program is distributed in the hope that it will be useful, but
2ba66f
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
2ba66f
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
2ba66f
+ * General Public License for more details.
2ba66f
+ *
2ba66f
+ * You should have received a copy of the GNU General Public License
2ba66f
+ * along with this program; if not, write to the Free Software
2ba66f
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
2ba66f
+ * 02110-1301 USA
2ba66f
+ */
2ba66f
+#ifndef LTRACE_AARCH64_ARCH_H
2ba66f
+#define LTRACE_AARCH64_ARCH_H
2ba66f
+
2ba66f
+/* | 31                 21 | 20       5 | 4       0 | *
2ba66f
+ * | 1 1 0 1 0 1 0 0 0 0 1 |    imm16   | 0 0 0 0 0 | */
2ba66f
+#define BREAKPOINT_VALUE { 0xd4, 0x20, 0, 0 }
2ba66f
+#define BREAKPOINT_LENGTH 4
2ba66f
+#define DECR_PC_AFTER_BREAK 0
2ba66f
+
2ba66f
+#define LT_ELFCLASS	ELFCLASS64
2ba66f
+#define LT_ELF_MACHINE	EM_AARCH64
2ba66f
+
2ba66f
+#define ARCH_HAVE_FETCH_ARG
2ba66f
+#define ARCH_ENDIAN_BIG
2ba66f
+#define ARCH_HAVE_SIZEOF
2ba66f
+#define ARCH_HAVE_ALIGNOF
2ba66f
+
2ba66f
+#endif /* LTRACE_AARCH64_ARCH_H */
2ba66f
diff --git a/sysdeps/linux-gnu/aarch64/fetch.c b/sysdeps/linux-gnu/aarch64/fetch.c
2ba66f
new file mode 100644
2ba66f
index 0000000..8779f03
2ba66f
--- /dev/null
2ba66f
+++ b/sysdeps/linux-gnu/aarch64/fetch.c
2ba66f
@@ -0,0 +1,365 @@
2ba66f
+/*
2ba66f
+ * This file is part of ltrace.
2ba66f
+ * Copyright (C) 2014 Petr Machata, Red Hat, Inc.
2ba66f
+ *
2ba66f
+ * This program is free software; you can redistribute it and/or
2ba66f
+ * modify it under the terms of the GNU General Public License as
2ba66f
+ * published by the Free Software Foundation; either version 2 of the
2ba66f
+ * License, or (at your option) any later version.
2ba66f
+ *
2ba66f
+ * This program is distributed in the hope that it will be useful, but
2ba66f
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
2ba66f
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
2ba66f
+ * General Public License for more details.
2ba66f
+ *
2ba66f
+ * You should have received a copy of the GNU General Public License
2ba66f
+ * along with this program; if not, write to the Free Software
2ba66f
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
2ba66f
+ * 02110-1301 USA
2ba66f
+ */
2ba66f
+
2ba66f
+#include <sys/ptrace.h>
2ba66f
+#include <asm/ptrace.h>
2ba66f
+#include <stdlib.h>
2ba66f
+#include <string.h>
2ba66f
+
2ba66f
+#include "fetch.h"
2ba66f
+#include "proc.h"
2ba66f
+#include "type.h"
2ba66f
+#include "value.h"
2ba66f
+
2ba66f
+int aarch64_read_gregs(struct process *proc, struct user_pt_regs *regs);
2ba66f
+int aarch64_read_fregs(struct process *proc, struct user_fpsimd_state *regs);
2ba66f
+
2ba66f
+
2ba66f
+struct fetch_context
2ba66f
+{
2ba66f
+	struct user_pt_regs gregs;
2ba66f
+	struct user_fpsimd_state fpregs;
2ba66f
+	arch_addr_t nsaa;
2ba66f
+	unsigned ngrn;
2ba66f
+	unsigned nsrn;
2ba66f
+	arch_addr_t x8;
2ba66f
+};
2ba66f
+
2ba66f
+static int
2ba66f
+context_init(struct fetch_context *context, struct process *proc)
2ba66f
+{
2ba66f
+	if (aarch64_read_gregs(proc, &context->gregs) < 0
2ba66f
+	    || aarch64_read_fregs(proc, &context->fpregs) < 0)
2ba66f
+		return -1;
2ba66f
+
2ba66f
+	context->ngrn = 0;
2ba66f
+	context->nsrn = 0;
2ba66f
+	/* XXX double cast */
2ba66f
+	context->nsaa = (arch_addr_t) (uintptr_t) context->gregs.sp;
2ba66f
+	context->x8 = 0;
2ba66f
+
2ba66f
+	return 0;
2ba66f
+}
2ba66f
+
2ba66f
+struct fetch_context *
2ba66f
+arch_fetch_arg_clone(struct process *proc, struct fetch_context *context)
2ba66f
+{
2ba66f
+	struct fetch_context *ret = malloc(sizeof(*ret));
2ba66f
+	if (ret == NULL)
2ba66f
+		return NULL;
2ba66f
+	return memcpy(ret, context, sizeof(*ret));
2ba66f
+}
2ba66f
+
2ba66f
+static void
2ba66f
+fetch_next_gpr(struct fetch_context *context, unsigned char *buf)
2ba66f
+{
2ba66f
+	uint64_t u = context->gregs.regs[context->ngrn++];
2ba66f
+	memcpy(buf, &u, 8);
2ba66f
+}
2ba66f
+
2ba66f
+static int
2ba66f
+fetch_gpr(struct fetch_context *context, struct value *value, size_t sz)
2ba66f
+{
2ba66f
+	if (sz < 8)
2ba66f
+		sz = 8;
2ba66f
+
2ba66f
+	unsigned char *buf = value_reserve(value, sz);
2ba66f
+	if (buf == NULL)
2ba66f
+		return -1;
2ba66f
+
2ba66f
+	size_t i;
2ba66f
+	for (i = 0; i < sz; i += 8)
2ba66f
+		fetch_next_gpr(context, buf + i);
2ba66f
+
2ba66f
+	return 0;
2ba66f
+}
2ba66f
+
2ba66f
+static void
2ba66f
+fetch_next_sse(struct fetch_context *context, unsigned char *buf, size_t sz)
2ba66f
+{
2ba66f
+	__int128 u = context->fpregs.vregs[context->nsrn++];
2ba66f
+	memcpy(buf, &u, sz);
2ba66f
+}
2ba66f
+
2ba66f
+static int
2ba66f
+fetch_sse(struct fetch_context *context, struct value *value, size_t sz)
2ba66f
+{
2ba66f
+	unsigned char *buf = value_reserve(value, sz);
2ba66f
+	if (buf == NULL)
2ba66f
+		return -1;
2ba66f
+
2ba66f
+	fetch_next_sse(context, buf, sz);
2ba66f
+	return 0;
2ba66f
+}
2ba66f
+
2ba66f
+static int
2ba66f
+fetch_hfa(struct fetch_context *context,
2ba66f
+	  struct value *value, struct arg_type_info *hfa_t, size_t count)
2ba66f
+{
2ba66f
+	size_t sz = type_sizeof(value->inferior, hfa_t);
2ba66f
+	unsigned char *buf = value_reserve(value, sz * count);
2ba66f
+	if (buf == NULL)
2ba66f
+		return -1;
2ba66f
+
2ba66f
+	size_t i;
2ba66f
+	for (i = 0; i < count; ++i) {
2ba66f
+		fetch_next_sse(context, buf, sz);
2ba66f
+		buf += sz;
2ba66f
+	}
2ba66f
+	return 0;
2ba66f
+}
2ba66f
+
2ba66f
+static int
2ba66f
+fetch_stack(struct fetch_context *context, struct value *value,
2ba66f
+	    size_t align, size_t sz)
2ba66f
+{
2ba66f
+	if (align < 8)
2ba66f
+		align = 8;
2ba66f
+	size_t amount = ((sz + align - 1) / align) * align;
2ba66f
+
2ba66f
+	/* XXX double casts */
2ba66f
+	uintptr_t sp = (uintptr_t) context->nsaa;
2ba66f
+	sp = ((sp + align - 1) / align) * align;
2ba66f
+
2ba66f
+	value_in_inferior(value, (arch_addr_t) sp);
2ba66f
+
2ba66f
+	sp += amount;
2ba66f
+	context->nsaa = (arch_addr_t) sp;
2ba66f
+
2ba66f
+	return 0;
2ba66f
+}
2ba66f
+
2ba66f
+enum convert_method {
2ba66f
+	CVT_ERR = -1,
2ba66f
+	CVT_NOP = 0,
2ba66f
+	CVT_BYREF,
2ba66f
+};
2ba66f
+
2ba66f
+enum fetch_method {
2ba66f
+	FETCH_NOP,
2ba66f
+	FETCH_STACK,
2ba66f
+	FETCH_GPR,
2ba66f
+	FETCH_SSE,
2ba66f
+	FETCH_HFA,
2ba66f
+};
2ba66f
+
2ba66f
+struct fetch_script {
2ba66f
+	enum convert_method c;
2ba66f
+	enum fetch_method f;
2ba66f
+	size_t sz;
2ba66f
+	struct arg_type_info *hfa_t;
2ba66f
+	size_t count;
2ba66f
+};
2ba66f
+
2ba66f
+static struct fetch_script
2ba66f
+pass_arg(struct fetch_context const *context,
2ba66f
+	 struct process *proc, struct arg_type_info *info)
2ba66f
+{
2ba66f
+	enum fetch_method cvt = CVT_NOP;
2ba66f
+
2ba66f
+	size_t sz = type_sizeof(proc, info);
2ba66f
+	if (sz == (size_t) -1)
2ba66f
+		return (struct fetch_script) { CVT_ERR, FETCH_NOP, sz };
2ba66f
+
2ba66f
+	switch (info->type) {
2ba66f
+	case ARGTYPE_VOID:
2ba66f
+		return (struct fetch_script) { cvt, FETCH_NOP, sz };
2ba66f
+
2ba66f
+	case ARGTYPE_STRUCT:
2ba66f
+	case ARGTYPE_ARRAY:;
2ba66f
+		size_t count;
2ba66f
+		struct arg_type_info *hfa_t = type_get_hfa_type(info, &count);
2ba66f
+		if (hfa_t != NULL && count <= 4) {
2ba66f
+			if (context->nsrn + count <= 8)
2ba66f
+				return (struct fetch_script)
2ba66f
+					{ cvt, FETCH_HFA, sz, hfa_t, count };
2ba66f
+			return (struct fetch_script)
2ba66f
+				{ cvt, FETCH_STACK, sz, hfa_t, count };
2ba66f
+		}
2ba66f
+
2ba66f
+		if (sz <= 16) {
2ba66f
+			size_t count = sz / 8;
2ba66f
+			if (context->ngrn + count <= 8)
2ba66f
+				return (struct fetch_script)
2ba66f
+					{ cvt, FETCH_GPR, sz };
2ba66f
+		}
2ba66f
+
2ba66f
+		cvt = CVT_BYREF;
2ba66f
+		sz = 8;
2ba66f
+		/* Fall through.  */
2ba66f
+
2ba66f
+	case ARGTYPE_POINTER:
2ba66f
+	case ARGTYPE_INT:
2ba66f
+	case ARGTYPE_UINT:
2ba66f
+	case ARGTYPE_LONG:
2ba66f
+	case ARGTYPE_ULONG:
2ba66f
+	case ARGTYPE_CHAR:
2ba66f
+	case ARGTYPE_SHORT:
2ba66f
+	case ARGTYPE_USHORT:
2ba66f
+		if (context->ngrn < 8 && sz <= 8)
2ba66f
+			return (struct fetch_script) { cvt, FETCH_GPR, sz };
2ba66f
+		/* We don't support types wider than 8 bytes as of
2ba66f
+		 * now.  */
2ba66f
+		assert(sz <= 8);
2ba66f
+
2ba66f
+		return (struct fetch_script) { cvt, FETCH_STACK, sz };
2ba66f
+
2ba66f
+	case ARGTYPE_FLOAT:
2ba66f
+	case ARGTYPE_DOUBLE:
2ba66f
+		if (context->nsrn < 8) {
2ba66f
+			/* ltrace doesn't support float128.  */
2ba66f
+			assert(sz <= 8);
2ba66f
+			return (struct fetch_script) { cvt, FETCH_SSE, sz };
2ba66f
+		}
2ba66f
+
2ba66f
+		return (struct fetch_script) { cvt, FETCH_STACK, sz };
2ba66f
+	}
2ba66f
+
2ba66f
+	assert(! "Failed to allocate argument.");
2ba66f
+	abort();
2ba66f
+}
2ba66f
+
2ba66f
+static int
2ba66f
+convert_arg(struct value *value, struct fetch_script how)
2ba66f
+{
2ba66f
+	switch (how.c) {
2ba66f
+	case CVT_NOP:
2ba66f
+		return 0;
2ba66f
+	case CVT_BYREF:
2ba66f
+		return value_pass_by_reference(value);
2ba66f
+	case CVT_ERR:
2ba66f
+		return -1;
2ba66f
+	}
2ba66f
+
2ba66f
+	assert(! "Don't know how to convert argument.");
2ba66f
+	abort();
2ba66f
+}
2ba66f
+
2ba66f
+static int
2ba66f
+fetch_arg(struct fetch_context *context,
2ba66f
+	  struct process *proc, struct arg_type_info *info,
2ba66f
+	  struct value *value, struct fetch_script how)
2ba66f
+{
2ba66f
+	if (convert_arg(value, how) < 0)
2ba66f
+		return -1;
2ba66f
+
2ba66f
+	switch (how.f) {
2ba66f
+	case FETCH_NOP:
2ba66f
+		return 0;
2ba66f
+
2ba66f
+	case FETCH_STACK:
2ba66f
+		if (how.hfa_t != NULL && how.count != 0 && how.count <= 8)
2ba66f
+			context->nsrn = 8;
2ba66f
+		return fetch_stack(context, value,
2ba66f
+				   type_alignof(proc, info), how.sz);
2ba66f
+
2ba66f
+	case FETCH_GPR:
2ba66f
+		return fetch_gpr(context, value, how.sz);
2ba66f
+
2ba66f
+	case FETCH_SSE:
2ba66f
+		return fetch_sse(context, value, how.sz);
2ba66f
+
2ba66f
+	case FETCH_HFA:
2ba66f
+		return fetch_hfa(context, value, how.hfa_t, how.count);
2ba66f
+	}
2ba66f
+
2ba66f
+	assert(! "Don't know how to fetch argument.");
2ba66f
+	abort();
2ba66f
+}
2ba66f
+
2ba66f
+struct fetch_context *
2ba66f
+arch_fetch_arg_init(enum tof type, struct process *proc,
2ba66f
+		    struct arg_type_info *ret_info)
2ba66f
+{
2ba66f
+	struct fetch_context *context = malloc(sizeof *context);
2ba66f
+	if (context == NULL || context_init(context, proc) < 0) {
2ba66f
+	fail:
2ba66f
+		free(context);
2ba66f
+		return NULL;
2ba66f
+	}
2ba66f
+
2ba66f
+	/* There's a provision in ARMv8 parameter passing convention
2ba66f
+	 * for returning types that, if passed as first argument to a
2ba66f
+	 * function, would be passed on stack.  For those types, x8
2ba66f
+	 * contains an address where the return argument should be
2ba66f
+	 * placed.  The callee doesn't need to preserve the value of
2ba66f
+	 * x8, so we need to fetch it now.
2ba66f
+	 *
2ba66f
+	 * To my knowledge, there are currently no types where this
2ba66f
+	 * holds, but the code is here, utterly untested.  */
2ba66f
+
2ba66f
+	struct fetch_script how = pass_arg(context, proc, ret_info);
2ba66f
+	if (how.c == CVT_ERR)
2ba66f
+		goto fail;
2ba66f
+	if (how.c == CVT_NOP && how.f == FETCH_STACK) {
2ba66f
+		/* XXX double cast.  */
2ba66f
+		context->x8 = (arch_addr_t) (uintptr_t) context->gregs.regs[8];
2ba66f
+		/* See the comment above about the assert.  */
2ba66f
+		assert(! "Unexpected: first argument passed on stack.");
2ba66f
+		abort();
2ba66f
+	}
2ba66f
+
2ba66f
+	return context;
2ba66f
+}
2ba66f
+
2ba66f
+int
2ba66f
+arch_fetch_arg_next(struct fetch_context *context, enum tof type,
2ba66f
+		    struct process *proc, struct arg_type_info *info,
2ba66f
+		    struct value *value)
2ba66f
+{
2ba66f
+	return fetch_arg(context, proc, info, value,
2ba66f
+			 pass_arg(context, proc, info));
2ba66f
+}
2ba66f
+
2ba66f
+int
2ba66f
+arch_fetch_retval(struct fetch_context *context, enum tof type,
2ba66f
+		  struct process *proc, struct arg_type_info *info,
2ba66f
+		  struct value *value)
2ba66f
+{
2ba66f
+	if (context->x8 != 0) {
2ba66f
+		value_in_inferior(value, context->x8);
2ba66f
+		return 0;
2ba66f
+	}
2ba66f
+
2ba66f
+	if (context_init(context, proc) < 0)
2ba66f
+		return -1;
2ba66f
+
2ba66f
+	return fetch_arg(context, proc, info, value,
2ba66f
+			 pass_arg(context, proc, info));
2ba66f
+}
2ba66f
+
2ba66f
+void
2ba66f
+arch_fetch_arg_done(struct fetch_context *context)
2ba66f
+{
2ba66f
+	if (context != NULL)
2ba66f
+		free(context);
2ba66f
+}
2ba66f
+
2ba66f
+size_t
2ba66f
+arch_type_sizeof(struct process *proc, struct arg_type_info *arg)
2ba66f
+{
2ba66f
+	return (size_t) -2;
2ba66f
+}
2ba66f
+
2ba66f
+size_t
2ba66f
+arch_type_alignof(struct process *proc, struct arg_type_info *arg)
2ba66f
+{
2ba66f
+	return (size_t) -2;
2ba66f
+}
2ba66f
diff --git a/sysdeps/linux-gnu/aarch64/plt.c b/sysdeps/linux-gnu/aarch64/plt.c
2ba66f
new file mode 100644
2ba66f
index 0000000..29dc4c9
2ba66f
--- /dev/null
2ba66f
+++ b/sysdeps/linux-gnu/aarch64/plt.c
2ba66f
@@ -0,0 +1,38 @@
2ba66f
+/*
2ba66f
+ * This file is part of ltrace.
2ba66f
+ * Copyright (C) 2014 Petr Machata, Red Hat, Inc.
2ba66f
+ *
2ba66f
+ * This program is free software; you can redistribute it and/or
2ba66f
+ * modify it under the terms of the GNU General Public License as
2ba66f
+ * published by the Free Software Foundation; either version 2 of the
2ba66f
+ * License, or (at your option) any later version.
2ba66f
+ *
2ba66f
+ * This program is distributed in the hope that it will be useful, but
2ba66f
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
2ba66f
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
2ba66f
+ * General Public License for more details.
2ba66f
+ *
2ba66f
+ * You should have received a copy of the GNU General Public License
2ba66f
+ * along with this program; if not, write to the Free Software
2ba66f
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
2ba66f
+ * 02110-1301 USA
2ba66f
+ */
2ba66f
+
2ba66f
+#include <gelf.h>
2ba66f
+
2ba66f
+#include "backend.h"
2ba66f
+#include "proc.h"
2ba66f
+#include "library.h"
2ba66f
+#include "ltrace-elf.h"
2ba66f
+
2ba66f
+arch_addr_t
2ba66f
+sym2addr(struct process *proc, struct library_symbol *sym)
2ba66f
+{
2ba66f
+	return sym->enter_addr;
2ba66f
+}
2ba66f
+
2ba66f
+GElf_Addr
2ba66f
+arch_plt_sym_val(struct ltelf *lte, size_t ndx, GElf_Rela *rela)
2ba66f
+{
2ba66f
+	return lte->plt_addr + 32 + ndx * 16;
2ba66f
+}
2ba66f
diff --git a/sysdeps/linux-gnu/aarch64/ptrace.h b/sysdeps/linux-gnu/aarch64/ptrace.h
2ba66f
new file mode 100644
2ba66f
index 0000000..283c314
2ba66f
--- /dev/null
2ba66f
+++ b/sysdeps/linux-gnu/aarch64/ptrace.h
2ba66f
@@ -0,0 +1,22 @@
2ba66f
+/*
2ba66f
+ * This file is part of ltrace.
2ba66f
+ * Copyright (C) 2014 Petr Machata, Red Hat, Inc.
2ba66f
+ *
2ba66f
+ * This program is free software; you can redistribute it and/or
2ba66f
+ * modify it under the terms of the GNU General Public License as
2ba66f
+ * published by the Free Software Foundation; either version 2 of the
2ba66f
+ * License, or (at your option) any later version.
2ba66f
+ *
2ba66f
+ * This program is distributed in the hope that it will be useful, but
2ba66f
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
2ba66f
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
2ba66f
+ * General Public License for more details.
2ba66f
+ *
2ba66f
+ * You should have received a copy of the GNU General Public License
2ba66f
+ * along with this program; if not, write to the Free Software
2ba66f
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
2ba66f
+ * 02110-1301 USA
2ba66f
+ */
2ba66f
+
2ba66f
+#include <sys/ptrace.h>
2ba66f
+#include <asm/ptrace.h>
2ba66f
diff --git a/sysdeps/linux-gnu/aarch64/regs.c b/sysdeps/linux-gnu/aarch64/regs.c
2ba66f
new file mode 100644
2ba66f
index 0000000..06eb72b
2ba66f
--- /dev/null
2ba66f
+++ b/sysdeps/linux-gnu/aarch64/regs.c
2ba66f
@@ -0,0 +1,130 @@
2ba66f
+/*
2ba66f
+ * This file is part of ltrace.
2ba66f
+ * Copyright (C) 2014 Petr Machata, Red Hat, Inc.
2ba66f
+ *
2ba66f
+ * This program is free software; you can redistribute it and/or
2ba66f
+ * modify it under the terms of the GNU General Public License as
2ba66f
+ * published by the Free Software Foundation; either version 2 of the
2ba66f
+ * License, or (at your option) any later version.
2ba66f
+ *
2ba66f
+ * This program is distributed in the hope that it will be useful, but
2ba66f
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
2ba66f
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
2ba66f
+ * General Public License for more details.
2ba66f
+ *
2ba66f
+ * You should have received a copy of the GNU General Public License
2ba66f
+ * along with this program; if not, write to the Free Software
2ba66f
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
2ba66f
+ * 02110-1301 USA
2ba66f
+ */
2ba66f
+
2ba66f
+#include <sys/ptrace.h>
2ba66f
+#include <asm/ptrace.h>
2ba66f
+#include <linux/uio.h>
2ba66f
+#include <assert.h>
2ba66f
+#include <stdlib.h>
2ba66f
+
2ba66f
+#include "backend.h"
2ba66f
+#include "proc.h"
2ba66f
+
2ba66f
+#define PC_OFF (32 * 4)
2ba66f
+
2ba66f
+int
2ba66f
+aarch64_read_gregs(struct process *proc, struct user_pt_regs *regs)
2ba66f
+{
2ba66f
+	*regs = (struct user_pt_regs) {};
2ba66f
+	struct iovec iovec;
2ba66f
+	iovec.iov_base = regs;
2ba66f
+	iovec.iov_len = sizeof *regs;
2ba66f
+	return ptrace(PTRACE_GETREGSET, proc->pid, NT_PRSTATUS, &iovec) < 0
2ba66f
+		? -1 : 0;
2ba66f
+}
2ba66f
+
2ba66f
+int
2ba66f
+aarch64_write_gregs(struct process *proc, struct user_pt_regs *regs)
2ba66f
+{
2ba66f
+	struct iovec iovec;
2ba66f
+	iovec.iov_base = regs;
2ba66f
+	iovec.iov_len = sizeof *regs;
2ba66f
+	return ptrace(PTRACE_SETREGSET, proc->pid, NT_PRSTATUS, &iovec) < 0
2ba66f
+		? -1 : 0;
2ba66f
+}
2ba66f
+
2ba66f
+int
2ba66f
+aarch64_read_fregs(struct process *proc, struct user_fpsimd_state *regs)
2ba66f
+{
2ba66f
+	*regs = (struct user_fpsimd_state) {};
2ba66f
+	struct iovec iovec;
2ba66f
+	iovec.iov_base = regs;
2ba66f
+	iovec.iov_len = sizeof *regs;
2ba66f
+	return ptrace(PTRACE_GETREGSET, proc->pid, NT_FPREGSET, &iovec) < 0
2ba66f
+		? -1 : 0;
2ba66f
+}
2ba66f
+
2ba66f
+arch_addr_t
2ba66f
+get_instruction_pointer(struct process *proc)
2ba66f
+{
2ba66f
+	struct user_pt_regs regs;
2ba66f
+	if (aarch64_read_gregs(proc, &regs) < 0) {
2ba66f
+		fprintf(stderr, "get_instruction_pointer: "
2ba66f
+			"Couldn't read registers of %d.\n", proc->pid);
2ba66f
+		return 0;
2ba66f
+	}
2ba66f
+
2ba66f
+	/* 
2ba66f
+	char buf[128];
2ba66f
+	sprintf(buf, "cat /proc/%d/maps", proc->pid);
2ba66f
+	system(buf);
2ba66f
+	*/
2ba66f
+
2ba66f
+	/* XXX double cast */
2ba66f
+	return (arch_addr_t) (uintptr_t) regs.pc;
2ba66f
+}
2ba66f
+
2ba66f
+void
2ba66f
+set_instruction_pointer(struct process *proc, arch_addr_t addr)
2ba66f
+{
2ba66f
+	struct user_pt_regs regs;
2ba66f
+	if (aarch64_read_gregs(proc, &regs) < 0) {
2ba66f
+		fprintf(stderr, "get_instruction_pointer: "
2ba66f
+			"Couldn't read registers of %d.\n", proc->pid);
2ba66f
+		return;
2ba66f
+	}
2ba66f
+
2ba66f
+	/* XXX double cast */
2ba66f
+	regs.pc = (uint64_t) (uintptr_t) addr;
2ba66f
+
2ba66f
+	if (aarch64_write_gregs(proc, &regs) < 0) {
2ba66f
+		fprintf(stderr, "get_instruction_pointer: "
2ba66f
+			"Couldn't write registers of %d.\n", proc->pid);
2ba66f
+		return;
2ba66f
+	}
2ba66f
+}
2ba66f
+
2ba66f
+arch_addr_t
2ba66f
+get_stack_pointer(struct process *proc)
2ba66f
+{
2ba66f
+	struct user_pt_regs regs;
2ba66f
+	if (aarch64_read_gregs(proc, &regs) < 0) {
2ba66f
+		fprintf(stderr, "get_stack_pointer: "
2ba66f
+			"Couldn't read registers of %d.\n", proc->pid);
2ba66f
+		return 0;
2ba66f
+	}
2ba66f
+
2ba66f
+	/* XXX double cast */
2ba66f
+	return (arch_addr_t) (uintptr_t) regs.sp;
2ba66f
+}
2ba66f
+
2ba66f
+arch_addr_t
2ba66f
+get_return_addr(struct process *proc, arch_addr_t stack_pointer)
2ba66f
+{
2ba66f
+	struct user_pt_regs regs;
2ba66f
+	if (aarch64_read_gregs(proc, &regs) < 0) {
2ba66f
+		fprintf(stderr, "get_return_addr: "
2ba66f
+			"Couldn't read registers of %d.\n", proc->pid);
2ba66f
+		return 0;
2ba66f
+	}
2ba66f
+
2ba66f
+	/* XXX double cast */
2ba66f
+	return (arch_addr_t) (uintptr_t) regs.regs[30];
2ba66f
+}
2ba66f
diff --git a/sysdeps/linux-gnu/aarch64/signalent.h b/sysdeps/linux-gnu/aarch64/signalent.h
2ba66f
new file mode 100644
2ba66f
index 0000000..bf56ebc
2ba66f
--- /dev/null
2ba66f
+++ b/sysdeps/linux-gnu/aarch64/signalent.h
2ba66f
@@ -0,0 +1,52 @@
2ba66f
+/*
2ba66f
+ * This file is part of ltrace.
2ba66f
+ * Copyright (C) 2006 Ian Wienand
2ba66f
+ *
2ba66f
+ * This program is free software; you can redistribute it and/or
2ba66f
+ * modify it under the terms of the GNU General Public License as
2ba66f
+ * published by the Free Software Foundation; either version 2 of the
2ba66f
+ * License, or (at your option) any later version.
2ba66f
+ *
2ba66f
+ * This program is distributed in the hope that it will be useful, but
2ba66f
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
2ba66f
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
2ba66f
+ * General Public License for more details.
2ba66f
+ *
2ba66f
+ * You should have received a copy of the GNU General Public License
2ba66f
+ * along with this program; if not, write to the Free Software
2ba66f
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
2ba66f
+ * 02110-1301 USA
2ba66f
+ */
2ba66f
+
2ba66f
+	"SIG_0",			/* 0 */
2ba66f
+	"SIGHUP",			/* 1 */
2ba66f
+	"SIGINT",			/* 2 */
2ba66f
+	"SIGQUIT",			/* 3 */
2ba66f
+	"SIGILL",			/* 4 */
2ba66f
+	"SIGTRAP",			/* 5 */
2ba66f
+	"SIGABRT",			/* 6 */
2ba66f
+	"SIGBUS",			/* 7 */
2ba66f
+	"SIGFPE",			/* 8 */
2ba66f
+	"SIGKILL",			/* 9 */
2ba66f
+	"SIGUSR1",			/* 10 */
2ba66f
+	"SIGSEGV",			/* 11 */
2ba66f
+	"SIGUSR2",			/* 12 */
2ba66f
+	"SIGPIPE",			/* 13 */
2ba66f
+	"SIGALRM",			/* 14 */
2ba66f
+	"SIGTERM",			/* 15 */
2ba66f
+	"SIGSTKFLT",			/* 16 */
2ba66f
+	"SIGCHLD",			/* 17 */
2ba66f
+	"SIGCONT",			/* 18 */
2ba66f
+	"SIGSTOP",			/* 19 */
2ba66f
+	"SIGTSTP",			/* 20 */
2ba66f
+	"SIGTTIN",			/* 21 */
2ba66f
+	"SIGTTOU",			/* 22 */
2ba66f
+	"SIGURG",			/* 23 */
2ba66f
+	"SIGXCPU",			/* 24 */
2ba66f
+	"SIGXFSZ",			/* 25 */
2ba66f
+	"SIGVTALRM",			/* 26 */
2ba66f
+	"SIGPROF",			/* 27 */
2ba66f
+	"SIGWINCH",			/* 28 */
2ba66f
+	"SIGIO",			/* 29 */
2ba66f
+	"SIGPWR",			/* 30 */
2ba66f
+	"SIGSYS",			/* 31 */
2ba66f
diff --git a/sysdeps/linux-gnu/aarch64/syscallent.h b/sysdeps/linux-gnu/aarch64/syscallent.h
2ba66f
new file mode 100644
2ba66f
index 0000000..aca8191
2ba66f
--- /dev/null
2ba66f
+++ b/sysdeps/linux-gnu/aarch64/syscallent.h
2ba66f
@@ -0,0 +1,1100 @@
2ba66f
+/*
2ba66f
+ * This file is part of ltrace.
2ba66f
+ * Copyright (C) 2014 Petr Machata, Red Hat, Inc.
2ba66f
+ *
2ba66f
+ * This program is free software; you can redistribute it and/or
2ba66f
+ * modify it under the terms of the GNU General Public License as
2ba66f
+ * published by the Free Software Foundation; either version 2 of the
2ba66f
+ * License, or (at your option) any later version.
2ba66f
+ *
2ba66f
+ * This program is distributed in the hope that it will be useful, but
2ba66f
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
2ba66f
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
2ba66f
+ * General Public License for more details.
2ba66f
+ *
2ba66f
+ * You should have received a copy of the GNU General Public License
2ba66f
+ * along with this program; if not, write to the Free Software
2ba66f
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
2ba66f
+ * 02110-1301 USA
2ba66f
+ */
2ba66f
+
2ba66f
+	"io_setup",                        /* 0 */
2ba66f
+	"io_destroy",                      /* 1 */
2ba66f
+	"io_submit",                       /* 2 */
2ba66f
+	"io_cancel",                       /* 3 */
2ba66f
+	"io_getevents",                    /* 4 */
2ba66f
+	"setxattr",                        /* 5 */
2ba66f
+	"lsetxattr",                       /* 6 */
2ba66f
+	"fsetxattr",                       /* 7 */
2ba66f
+	"getxattr",                        /* 8 */
2ba66f
+	"lgetxattr",                       /* 9 */
2ba66f
+	"fgetxattr",                       /* 10 */
2ba66f
+	"listxattr",                       /* 11 */
2ba66f
+	"llistxattr",                      /* 12 */
2ba66f
+	"flistxattr",                      /* 13 */
2ba66f
+	"removexattr",                     /* 14 */
2ba66f
+	"lremovexattr",                    /* 15 */
2ba66f
+	"fremovexattr",                    /* 16 */
2ba66f
+	"getcwd",                          /* 17 */
2ba66f
+	"lookup_dcookie",                  /* 18 */
2ba66f
+	"eventfd2",                        /* 19 */
2ba66f
+	"epoll_create1",                   /* 20 */
2ba66f
+	"epoll_ctl",                       /* 21 */
2ba66f
+	"epoll_pwait",                     /* 22 */
2ba66f
+	"dup",                             /* 23 */
2ba66f
+	"dup3",                            /* 24 */
2ba66f
+	"fcntl",                           /* 25 */
2ba66f
+	"inotify_init1",                   /* 26 */
2ba66f
+	"inotify_add_watch",               /* 27 */
2ba66f
+	"inotify_rm_watch",                /* 28 */
2ba66f
+	"ioctl",                           /* 29 */
2ba66f
+	"ioprio_set",                      /* 30 */
2ba66f
+	"ioprio_get",                      /* 31 */
2ba66f
+	"flock",                           /* 32 */
2ba66f
+	"mknodat",                         /* 33 */
2ba66f
+	"mkdirat",                         /* 34 */
2ba66f
+	"unlinkat",                        /* 35 */
2ba66f
+	"symlinkat",                       /* 36 */
2ba66f
+	"linkat",                          /* 37 */
2ba66f
+	"renameat",                        /* 38 */
2ba66f
+	"umount2",                         /* 39 */
2ba66f
+	"mount",                           /* 40 */
2ba66f
+	"pivot_root",                      /* 41 */
2ba66f
+	"nfsservctl",                      /* 42 */
2ba66f
+	"statfs",                          /* 43 */
2ba66f
+	"fstatfs",                         /* 44 */
2ba66f
+	"truncate",                        /* 45 */
2ba66f
+	"ftruncate",                       /* 46 */
2ba66f
+	"fallocate",                       /* 47 */
2ba66f
+	"faccessat",                       /* 48 */
2ba66f
+	"chdir",                           /* 49 */
2ba66f
+	"fchdir",                          /* 50 */
2ba66f
+	"chroot",                          /* 51 */
2ba66f
+	"fchmod",                          /* 52 */
2ba66f
+	"fchmodat",                        /* 53 */
2ba66f
+	"fchownat",                        /* 54 */
2ba66f
+	"fchown",                          /* 55 */
2ba66f
+	"openat",                          /* 56 */
2ba66f
+	"close",                           /* 57 */
2ba66f
+	"vhangup",                         /* 58 */
2ba66f
+	"pipe2",                           /* 59 */
2ba66f
+	"quotactl",                        /* 60 */
2ba66f
+	"getdents64",                      /* 61 */
2ba66f
+	"lseek",                           /* 62 */
2ba66f
+	"read",                            /* 63 */
2ba66f
+	"write",                           /* 64 */
2ba66f
+	"readv",                           /* 65 */
2ba66f
+	"writev",                          /* 66 */
2ba66f
+	"pread64",                         /* 67 */
2ba66f
+	"pwrite64",                        /* 68 */
2ba66f
+	"preadv",                          /* 69 */
2ba66f
+	"pwritev",                         /* 70 */
2ba66f
+	"sendfile",                        /* 71 */
2ba66f
+	"pselect6",                        /* 72 */
2ba66f
+	"ppoll",                           /* 73 */
2ba66f
+	"signalfd4",                       /* 74 */
2ba66f
+	"vmsplice",                        /* 75 */
2ba66f
+	"splice",                          /* 76 */
2ba66f
+	"tee",                             /* 77 */
2ba66f
+	"readlinkat",                      /* 78 */
2ba66f
+	"fstatat",                         /* 79 */
2ba66f
+	"fstat",                           /* 80 */
2ba66f
+	"sync",                            /* 81 */
2ba66f
+	"fsync",                           /* 82 */
2ba66f
+	"fdatasync",                       /* 83 */
2ba66f
+	"sync_file_range",                 /* 84 */
2ba66f
+	"timerfd_create",                  /* 85 */
2ba66f
+	"timerfd_settime",                 /* 86 */
2ba66f
+	"timerfd_gettime",                 /* 87 */
2ba66f
+	"utimensat",                       /* 88 */
2ba66f
+	"acct",                            /* 89 */
2ba66f
+	"capget",                          /* 90 */
2ba66f
+	"capset",                          /* 91 */
2ba66f
+	"personality",                     /* 92 */
2ba66f
+	"exit",                            /* 93 */
2ba66f
+	"exit_group",                      /* 94 */
2ba66f
+	"waitid",                          /* 95 */
2ba66f
+	"set_tid_address",                 /* 96 */
2ba66f
+	"unshare",                         /* 97 */
2ba66f
+	"futex",                           /* 98 */
2ba66f
+	"set_robust_list",                 /* 99 */
2ba66f
+	"get_robust_list",                 /* 100 */
2ba66f
+	"nanosleep",                       /* 101 */
2ba66f
+	"getitimer",                       /* 102 */
2ba66f
+	"setitimer",                       /* 103 */
2ba66f
+	"kexec_load",                      /* 104 */
2ba66f
+	"init_module",                     /* 105 */
2ba66f
+	"delete_module",                   /* 106 */
2ba66f
+	"timer_create",                    /* 107 */
2ba66f
+	"timer_gettime",                   /* 108 */
2ba66f
+	"timer_getoverrun",                /* 109 */
2ba66f
+	"timer_settime",                   /* 110 */
2ba66f
+	"timer_delete",                    /* 111 */
2ba66f
+	"clock_settime",                   /* 112 */
2ba66f
+	"clock_gettime",                   /* 113 */
2ba66f
+	"clock_getres",                    /* 114 */
2ba66f
+	"clock_nanosleep",                 /* 115 */
2ba66f
+	"syslog",                          /* 116 */
2ba66f
+	"ptrace",                          /* 117 */
2ba66f
+	"sched_setparam",                  /* 118 */
2ba66f
+	"sched_setscheduler",              /* 119 */
2ba66f
+	"sched_getscheduler",              /* 120 */
2ba66f
+	"sched_getparam",                  /* 121 */
2ba66f
+	"sched_setaffinity",               /* 122 */
2ba66f
+	"sched_getaffinity",               /* 123 */
2ba66f
+	"sched_yield",                     /* 124 */
2ba66f
+	"sched_get_priority_max",          /* 125 */
2ba66f
+	"sched_get_priority_min",          /* 126 */
2ba66f
+	"sched_rr_get_interval",           /* 127 */
2ba66f
+	"restart_syscall",                 /* 128 */
2ba66f
+	"kill",                            /* 129 */
2ba66f
+	"tkill",                           /* 130 */
2ba66f
+	"tgkill",                          /* 131 */
2ba66f
+	"sigaltstack",                     /* 132 */
2ba66f
+	"rt_sigsuspend",                   /* 133 */
2ba66f
+	"rt_sigaction",                    /* 134 */
2ba66f
+	"rt_sigprocmask",                  /* 135 */
2ba66f
+	"rt_sigpending",                   /* 136 */
2ba66f
+	"rt_sigtimedwait",                 /* 137 */
2ba66f
+	"rt_sigqueueinfo",                 /* 138 */
2ba66f
+	"rt_sigreturn",                    /* 139 */
2ba66f
+	"setpriority",                     /* 140 */
2ba66f
+	"getpriority",                     /* 141 */
2ba66f
+	"reboot",                          /* 142 */
2ba66f
+	"setregid",                        /* 143 */
2ba66f
+	"setgid",                          /* 144 */
2ba66f
+	"setreuid",                        /* 145 */
2ba66f
+	"setuid",                          /* 146 */
2ba66f
+	"setresuid",                       /* 147 */
2ba66f
+	"getresuid",                       /* 148 */
2ba66f
+	"setresgid",                       /* 149 */
2ba66f
+	"getresgid",                       /* 150 */
2ba66f
+	"setfsuid",                        /* 151 */
2ba66f
+	"setfsgid",                        /* 152 */
2ba66f
+	"times",                           /* 153 */
2ba66f
+	"setpgid",                         /* 154 */
2ba66f
+	"getpgid",                         /* 155 */
2ba66f
+	"getsid",                          /* 156 */
2ba66f
+	"setsid",                          /* 157 */
2ba66f
+	"getgroups",                       /* 158 */
2ba66f
+	"setgroups",                       /* 159 */
2ba66f
+	"uname",                           /* 160 */
2ba66f
+	"sethostname",                     /* 161 */
2ba66f
+	"setdomainname",                   /* 162 */
2ba66f
+	"getrlimit",                       /* 163 */
2ba66f
+	"setrlimit",                       /* 164 */
2ba66f
+	"getrusage",                       /* 165 */
2ba66f
+	"umask",                           /* 166 */
2ba66f
+	"prctl",                           /* 167 */
2ba66f
+	"getcpu",                          /* 168 */
2ba66f
+	"gettimeofday",                    /* 169 */
2ba66f
+	"settimeofday",                    /* 170 */
2ba66f
+	"adjtimex",                        /* 171 */
2ba66f
+	"getpid",                          /* 172 */
2ba66f
+	"getppid",                         /* 173 */
2ba66f
+	"getuid",                          /* 174 */
2ba66f
+	"geteuid",                         /* 175 */
2ba66f
+	"getgid",                          /* 176 */
2ba66f
+	"getegid",                         /* 177 */
2ba66f
+	"gettid",                          /* 178 */
2ba66f
+	"sysinfo",                         /* 179 */
2ba66f
+	"mq_open",                         /* 180 */
2ba66f
+	"mq_unlink",                       /* 181 */
2ba66f
+	"mq_timedsend",                    /* 182 */
2ba66f
+	"mq_timedreceive",                 /* 183 */
2ba66f
+	"mq_notify",                       /* 184 */
2ba66f
+	"mq_getsetattr",                   /* 185 */
2ba66f
+	"msgget",                          /* 186 */
2ba66f
+	"msgctl",                          /* 187 */
2ba66f
+	"msgrcv",                          /* 188 */
2ba66f
+	"msgsnd",                          /* 189 */
2ba66f
+	"semget",                          /* 190 */
2ba66f
+	"semctl",                          /* 191 */
2ba66f
+	"semtimedop",                      /* 192 */
2ba66f
+	"semop",                           /* 193 */
2ba66f
+	"shmget",                          /* 194 */
2ba66f
+	"shmctl",                          /* 195 */
2ba66f
+	"shmat",                           /* 196 */
2ba66f
+	"shmdt",                           /* 197 */
2ba66f
+	"socket",                          /* 198 */
2ba66f
+	"socketpair",                      /* 199 */
2ba66f
+	"bind",                            /* 200 */
2ba66f
+	"listen",                          /* 201 */
2ba66f
+	"accept",                          /* 202 */
2ba66f
+	"connect",                         /* 203 */
2ba66f
+	"getsockname",                     /* 204 */
2ba66f
+	"getpeername",                     /* 205 */
2ba66f
+	"sendto",                          /* 206 */
2ba66f
+	"recvfrom",                        /* 207 */
2ba66f
+	"setsockopt",                      /* 208 */
2ba66f
+	"getsockopt",                      /* 209 */
2ba66f
+	"shutdown",                        /* 210 */
2ba66f
+	"sendmsg",                         /* 211 */
2ba66f
+	"recvmsg",                         /* 212 */
2ba66f
+	"readahead",                       /* 213 */
2ba66f
+	"brk",                             /* 214 */
2ba66f
+	"munmap",                          /* 215 */
2ba66f
+	"mremap",                          /* 216 */
2ba66f
+	"add_key",                         /* 217 */
2ba66f
+	"request_key",                     /* 218 */
2ba66f
+	"keyctl",                          /* 219 */
2ba66f
+	"clone",                           /* 220 */
2ba66f
+	"execve",                          /* 221 */
2ba66f
+	"mmap",                            /* 222 */
2ba66f
+	"fadvise64",                       /* 223 */
2ba66f
+	"swapon",                          /* 224 */
2ba66f
+	"swapoff",                         /* 225 */
2ba66f
+	"mprotect",                        /* 226 */
2ba66f
+	"msync",                           /* 227 */
2ba66f
+	"mlock",                           /* 228 */
2ba66f
+	"munlock",                         /* 229 */
2ba66f
+	"mlockall",                        /* 230 */
2ba66f
+	"munlockall",                      /* 231 */
2ba66f
+	"mincore",                         /* 232 */
2ba66f
+	"madvise",                         /* 233 */
2ba66f
+	"remap_file_pages",                /* 234 */
2ba66f
+	"mbind",                           /* 235 */
2ba66f
+	"get_mempolicy",                   /* 236 */
2ba66f
+	"set_mempolicy",                   /* 237 */
2ba66f
+	"migrate_pages",                   /* 238 */
2ba66f
+	"move_pages",                      /* 239 */
2ba66f
+	"rt_tgsigqueueinfo",               /* 240 */
2ba66f
+	"perf_event_open",                 /* 241 */
2ba66f
+	"accept4",                         /* 242 */
2ba66f
+	"recvmmsg",                        /* 243 */
2ba66f
+	"arch_specific_syscall",           /* 244 */
2ba66f
+	"245",                             /* 245 */
2ba66f
+	"246",                             /* 246 */
2ba66f
+	"247",                             /* 247 */
2ba66f
+	"248",                             /* 248 */
2ba66f
+	"249",                             /* 249 */
2ba66f
+	"250",                             /* 250 */
2ba66f
+	"251",                             /* 251 */
2ba66f
+	"252",                             /* 252 */
2ba66f
+	"253",                             /* 253 */
2ba66f
+	"254",                             /* 254 */
2ba66f
+	"255",                             /* 255 */
2ba66f
+	"256",                             /* 256 */
2ba66f
+	"257",                             /* 257 */
2ba66f
+	"258",                             /* 258 */
2ba66f
+	"259",                             /* 259 */
2ba66f
+	"wait4",                           /* 260 */
2ba66f
+	"prlimit64",                       /* 261 */
2ba66f
+	"fanotify_init",                   /* 262 */
2ba66f
+	"fanotify_mark",                   /* 263 */
2ba66f
+	"name_to_handle_at",               /* 264 */
2ba66f
+	"open_by_handle_at",               /* 265 */
2ba66f
+	"clock_adjtime",                   /* 266 */
2ba66f
+	"syncfs",                          /* 267 */
2ba66f
+	"setns",                           /* 268 */
2ba66f
+	"sendmmsg",                        /* 269 */
2ba66f
+	"process_vm_readv",                /* 270 */
2ba66f
+	"process_vm_writev",               /* 271 */
2ba66f
+	"kcmp",                            /* 272 */
2ba66f
+	"finit_module",                    /* 273 */
2ba66f
+	"syscalls",                        /* 274 */
2ba66f
+	"275",                             /* 275 */
2ba66f
+	"276",                             /* 276 */
2ba66f
+	"277",                             /* 277 */
2ba66f
+	"278",                             /* 278 */
2ba66f
+	"279",                             /* 279 */
2ba66f
+	"280",                             /* 280 */
2ba66f
+	"281",                             /* 281 */
2ba66f
+	"282",                             /* 282 */
2ba66f
+	"283",                             /* 283 */
2ba66f
+	"284",                             /* 284 */
2ba66f
+	"285",                             /* 285 */
2ba66f
+	"286",                             /* 286 */
2ba66f
+	"287",                             /* 287 */
2ba66f
+	"288",                             /* 288 */
2ba66f
+	"289",                             /* 289 */
2ba66f
+	"290",                             /* 290 */
2ba66f
+	"291",                             /* 291 */
2ba66f
+	"292",                             /* 292 */
2ba66f
+	"293",                             /* 293 */
2ba66f
+	"294",                             /* 294 */
2ba66f
+	"295",                             /* 295 */
2ba66f
+	"296",                             /* 296 */
2ba66f
+	"297",                             /* 297 */
2ba66f
+	"298",                             /* 298 */
2ba66f
+	"299",                             /* 299 */
2ba66f
+	"300",                             /* 300 */
2ba66f
+	"301",                             /* 301 */
2ba66f
+	"302",                             /* 302 */
2ba66f
+	"303",                             /* 303 */
2ba66f
+	"304",                             /* 304 */
2ba66f
+	"305",                             /* 305 */
2ba66f
+	"306",                             /* 306 */
2ba66f
+	"307",                             /* 307 */
2ba66f
+	"308",                             /* 308 */
2ba66f
+	"309",                             /* 309 */
2ba66f
+	"310",                             /* 310 */
2ba66f
+	"311",                             /* 311 */
2ba66f
+	"312",                             /* 312 */
2ba66f
+	"313",                             /* 313 */
2ba66f
+	"314",                             /* 314 */
2ba66f
+	"315",                             /* 315 */
2ba66f
+	"316",                             /* 316 */
2ba66f
+	"317",                             /* 317 */
2ba66f
+	"318",                             /* 318 */
2ba66f
+	"319",                             /* 319 */
2ba66f
+	"320",                             /* 320 */
2ba66f
+	"321",                             /* 321 */
2ba66f
+	"322",                             /* 322 */
2ba66f
+	"323",                             /* 323 */
2ba66f
+	"324",                             /* 324 */
2ba66f
+	"325",                             /* 325 */
2ba66f
+	"326",                             /* 326 */
2ba66f
+	"327",                             /* 327 */
2ba66f
+	"328",                             /* 328 */
2ba66f
+	"329",                             /* 329 */
2ba66f
+	"330",                             /* 330 */
2ba66f
+	"331",                             /* 331 */
2ba66f
+	"332",                             /* 332 */
2ba66f
+	"333",                             /* 333 */
2ba66f
+	"334",                             /* 334 */
2ba66f
+	"335",                             /* 335 */
2ba66f
+	"336",                             /* 336 */
2ba66f
+	"337",                             /* 337 */
2ba66f
+	"338",                             /* 338 */
2ba66f
+	"339",                             /* 339 */
2ba66f
+	"340",                             /* 340 */
2ba66f
+	"341",                             /* 341 */
2ba66f
+	"342",                             /* 342 */
2ba66f
+	"343",                             /* 343 */
2ba66f
+	"344",                             /* 344 */
2ba66f
+	"345",                             /* 345 */
2ba66f
+	"346",                             /* 346 */
2ba66f
+	"347",                             /* 347 */
2ba66f
+	"348",                             /* 348 */
2ba66f
+	"349",                             /* 349 */
2ba66f
+	"350",                             /* 350 */
2ba66f
+	"351",                             /* 351 */
2ba66f
+	"352",                             /* 352 */
2ba66f
+	"353",                             /* 353 */
2ba66f
+	"354",                             /* 354 */
2ba66f
+	"355",                             /* 355 */
2ba66f
+	"356",                             /* 356 */
2ba66f
+	"357",                             /* 357 */
2ba66f
+	"358",                             /* 358 */
2ba66f
+	"359",                             /* 359 */
2ba66f
+	"360",                             /* 360 */
2ba66f
+	"361",                             /* 361 */
2ba66f
+	"362",                             /* 362 */
2ba66f
+	"363",                             /* 363 */
2ba66f
+	"364",                             /* 364 */
2ba66f
+	"365",                             /* 365 */
2ba66f
+	"366",                             /* 366 */
2ba66f
+	"367",                             /* 367 */
2ba66f
+	"368",                             /* 368 */
2ba66f
+	"369",                             /* 369 */
2ba66f
+	"370",                             /* 370 */
2ba66f
+	"371",                             /* 371 */
2ba66f
+	"372",                             /* 372 */
2ba66f
+	"373",                             /* 373 */
2ba66f
+	"374",                             /* 374 */
2ba66f
+	"375",                             /* 375 */
2ba66f
+	"376",                             /* 376 */
2ba66f
+	"377",                             /* 377 */
2ba66f
+	"378",                             /* 378 */
2ba66f
+	"379",                             /* 379 */
2ba66f
+	"380",                             /* 380 */
2ba66f
+	"381",                             /* 381 */
2ba66f
+	"382",                             /* 382 */
2ba66f
+	"383",                             /* 383 */
2ba66f
+	"384",                             /* 384 */
2ba66f
+	"385",                             /* 385 */
2ba66f
+	"386",                             /* 386 */
2ba66f
+	"387",                             /* 387 */
2ba66f
+	"388",                             /* 388 */
2ba66f
+	"389",                             /* 389 */
2ba66f
+	"390",                             /* 390 */
2ba66f
+	"391",                             /* 391 */
2ba66f
+	"392",                             /* 392 */
2ba66f
+	"393",                             /* 393 */
2ba66f
+	"394",                             /* 394 */
2ba66f
+	"395",                             /* 395 */
2ba66f
+	"396",                             /* 396 */
2ba66f
+	"397",                             /* 397 */
2ba66f
+	"398",                             /* 398 */
2ba66f
+	"399",                             /* 399 */
2ba66f
+	"400",                             /* 400 */
2ba66f
+	"401",                             /* 401 */
2ba66f
+	"402",                             /* 402 */
2ba66f
+	"403",                             /* 403 */
2ba66f
+	"404",                             /* 404 */
2ba66f
+	"405",                             /* 405 */
2ba66f
+	"406",                             /* 406 */
2ba66f
+	"407",                             /* 407 */
2ba66f
+	"408",                             /* 408 */
2ba66f
+	"409",                             /* 409 */
2ba66f
+	"410",                             /* 410 */
2ba66f
+	"411",                             /* 411 */
2ba66f
+	"412",                             /* 412 */
2ba66f
+	"413",                             /* 413 */
2ba66f
+	"414",                             /* 414 */
2ba66f
+	"415",                             /* 415 */
2ba66f
+	"416",                             /* 416 */
2ba66f
+	"417",                             /* 417 */
2ba66f
+	"418",                             /* 418 */
2ba66f
+	"419",                             /* 419 */
2ba66f
+	"420",                             /* 420 */
2ba66f
+	"421",                             /* 421 */
2ba66f
+	"422",                             /* 422 */
2ba66f
+	"423",                             /* 423 */
2ba66f
+	"424",                             /* 424 */
2ba66f
+	"425",                             /* 425 */
2ba66f
+	"426",                             /* 426 */
2ba66f
+	"427",                             /* 427 */
2ba66f
+	"428",                             /* 428 */
2ba66f
+	"429",                             /* 429 */
2ba66f
+	"430",                             /* 430 */
2ba66f
+	"431",                             /* 431 */
2ba66f
+	"432",                             /* 432 */
2ba66f
+	"433",                             /* 433 */
2ba66f
+	"434",                             /* 434 */
2ba66f
+	"435",                             /* 435 */
2ba66f
+	"436",                             /* 436 */
2ba66f
+	"437",                             /* 437 */
2ba66f
+	"438",                             /* 438 */
2ba66f
+	"439",                             /* 439 */
2ba66f
+	"440",                             /* 440 */
2ba66f
+	"441",                             /* 441 */
2ba66f
+	"442",                             /* 442 */
2ba66f
+	"443",                             /* 443 */
2ba66f
+	"444",                             /* 444 */
2ba66f
+	"445",                             /* 445 */
2ba66f
+	"446",                             /* 446 */
2ba66f
+	"447",                             /* 447 */
2ba66f
+	"448",                             /* 448 */
2ba66f
+	"449",                             /* 449 */
2ba66f
+	"450",                             /* 450 */
2ba66f
+	"451",                             /* 451 */
2ba66f
+	"452",                             /* 452 */
2ba66f
+	"453",                             /* 453 */
2ba66f
+	"454",                             /* 454 */
2ba66f
+	"455",                             /* 455 */
2ba66f
+	"456",                             /* 456 */
2ba66f
+	"457",                             /* 457 */
2ba66f
+	"458",                             /* 458 */
2ba66f
+	"459",                             /* 459 */
2ba66f
+	"460",                             /* 460 */
2ba66f
+	"461",                             /* 461 */
2ba66f
+	"462",                             /* 462 */
2ba66f
+	"463",                             /* 463 */
2ba66f
+	"464",                             /* 464 */
2ba66f
+	"465",                             /* 465 */
2ba66f
+	"466",                             /* 466 */
2ba66f
+	"467",                             /* 467 */
2ba66f
+	"468",                             /* 468 */
2ba66f
+	"469",                             /* 469 */
2ba66f
+	"470",                             /* 470 */
2ba66f
+	"471",                             /* 471 */
2ba66f
+	"472",                             /* 472 */
2ba66f
+	"473",                             /* 473 */
2ba66f
+	"474",                             /* 474 */
2ba66f
+	"475",                             /* 475 */
2ba66f
+	"476",                             /* 476 */
2ba66f
+	"477",                             /* 477 */
2ba66f
+	"478",                             /* 478 */
2ba66f
+	"479",                             /* 479 */
2ba66f
+	"480",                             /* 480 */
2ba66f
+	"481",                             /* 481 */
2ba66f
+	"482",                             /* 482 */
2ba66f
+	"483",                             /* 483 */
2ba66f
+	"484",                             /* 484 */
2ba66f
+	"485",                             /* 485 */
2ba66f
+	"486",                             /* 486 */
2ba66f
+	"487",                             /* 487 */
2ba66f
+	"488",                             /* 488 */
2ba66f
+	"489",                             /* 489 */
2ba66f
+	"490",                             /* 490 */
2ba66f
+	"491",                             /* 491 */
2ba66f
+	"492",                             /* 492 */
2ba66f
+	"493",                             /* 493 */
2ba66f
+	"494",                             /* 494 */
2ba66f
+	"495",                             /* 495 */
2ba66f
+	"496",                             /* 496 */
2ba66f
+	"497",                             /* 497 */
2ba66f
+	"498",                             /* 498 */
2ba66f
+	"499",                             /* 499 */
2ba66f
+	"500",                             /* 500 */
2ba66f
+	"501",                             /* 501 */
2ba66f
+	"502",                             /* 502 */
2ba66f
+	"503",                             /* 503 */
2ba66f
+	"504",                             /* 504 */
2ba66f
+	"505",                             /* 505 */
2ba66f
+	"506",                             /* 506 */
2ba66f
+	"507",                             /* 507 */
2ba66f
+	"508",                             /* 508 */
2ba66f
+	"509",                             /* 509 */
2ba66f
+	"510",                             /* 510 */
2ba66f
+	"511",                             /* 511 */
2ba66f
+	"512",                             /* 512 */
2ba66f
+	"513",                             /* 513 */
2ba66f
+	"514",                             /* 514 */
2ba66f
+	"515",                             /* 515 */
2ba66f
+	"516",                             /* 516 */
2ba66f
+	"517",                             /* 517 */
2ba66f
+	"518",                             /* 518 */
2ba66f
+	"519",                             /* 519 */
2ba66f
+	"520",                             /* 520 */
2ba66f
+	"521",                             /* 521 */
2ba66f
+	"522",                             /* 522 */
2ba66f
+	"523",                             /* 523 */
2ba66f
+	"524",                             /* 524 */
2ba66f
+	"525",                             /* 525 */
2ba66f
+	"526",                             /* 526 */
2ba66f
+	"527",                             /* 527 */
2ba66f
+	"528",                             /* 528 */
2ba66f
+	"529",                             /* 529 */
2ba66f
+	"530",                             /* 530 */
2ba66f
+	"531",                             /* 531 */
2ba66f
+	"532",                             /* 532 */
2ba66f
+	"533",                             /* 533 */
2ba66f
+	"534",                             /* 534 */
2ba66f
+	"535",                             /* 535 */
2ba66f
+	"536",                             /* 536 */
2ba66f
+	"537",                             /* 537 */
2ba66f
+	"538",                             /* 538 */
2ba66f
+	"539",                             /* 539 */
2ba66f
+	"540",                             /* 540 */
2ba66f
+	"541",                             /* 541 */
2ba66f
+	"542",                             /* 542 */
2ba66f
+	"543",                             /* 543 */
2ba66f
+	"544",                             /* 544 */
2ba66f
+	"545",                             /* 545 */
2ba66f
+	"546",                             /* 546 */
2ba66f
+	"547",                             /* 547 */
2ba66f
+	"548",                             /* 548 */
2ba66f
+	"549",                             /* 549 */
2ba66f
+	"550",                             /* 550 */
2ba66f
+	"551",                             /* 551 */
2ba66f
+	"552",                             /* 552 */
2ba66f
+	"553",                             /* 553 */
2ba66f
+	"554",                             /* 554 */
2ba66f
+	"555",                             /* 555 */
2ba66f
+	"556",                             /* 556 */
2ba66f
+	"557",                             /* 557 */
2ba66f
+	"558",                             /* 558 */
2ba66f
+	"559",                             /* 559 */
2ba66f
+	"560",                             /* 560 */
2ba66f
+	"561",                             /* 561 */
2ba66f
+	"562",                             /* 562 */
2ba66f
+	"563",                             /* 563 */
2ba66f
+	"564",                             /* 564 */
2ba66f
+	"565",                             /* 565 */
2ba66f
+	"566",                             /* 566 */
2ba66f
+	"567",                             /* 567 */
2ba66f
+	"568",                             /* 568 */
2ba66f
+	"569",                             /* 569 */
2ba66f
+	"570",                             /* 570 */
2ba66f
+	"571",                             /* 571 */
2ba66f
+	"572",                             /* 572 */
2ba66f
+	"573",                             /* 573 */
2ba66f
+	"574",                             /* 574 */
2ba66f
+	"575",                             /* 575 */
2ba66f
+	"576",                             /* 576 */
2ba66f
+	"577",                             /* 577 */
2ba66f
+	"578",                             /* 578 */
2ba66f
+	"579",                             /* 579 */
2ba66f
+	"580",                             /* 580 */
2ba66f
+	"581",                             /* 581 */
2ba66f
+	"582",                             /* 582 */
2ba66f
+	"583",                             /* 583 */
2ba66f
+	"584",                             /* 584 */
2ba66f
+	"585",                             /* 585 */
2ba66f
+	"586",                             /* 586 */
2ba66f
+	"587",                             /* 587 */
2ba66f
+	"588",                             /* 588 */
2ba66f
+	"589",                             /* 589 */
2ba66f
+	"590",                             /* 590 */
2ba66f
+	"591",                             /* 591 */
2ba66f
+	"592",                             /* 592 */
2ba66f
+	"593",                             /* 593 */
2ba66f
+	"594",                             /* 594 */
2ba66f
+	"595",                             /* 595 */
2ba66f
+	"596",                             /* 596 */
2ba66f
+	"597",                             /* 597 */
2ba66f
+	"598",                             /* 598 */
2ba66f
+	"599",                             /* 599 */
2ba66f
+	"600",                             /* 600 */
2ba66f
+	"601",                             /* 601 */
2ba66f
+	"602",                             /* 602 */
2ba66f
+	"603",                             /* 603 */
2ba66f
+	"604",                             /* 604 */
2ba66f
+	"605",                             /* 605 */
2ba66f
+	"606",                             /* 606 */
2ba66f
+	"607",                             /* 607 */
2ba66f
+	"608",                             /* 608 */
2ba66f
+	"609",                             /* 609 */
2ba66f
+	"610",                             /* 610 */
2ba66f
+	"611",                             /* 611 */
2ba66f
+	"612",                             /* 612 */
2ba66f
+	"613",                             /* 613 */
2ba66f
+	"614",                             /* 614 */
2ba66f
+	"615",                             /* 615 */
2ba66f
+	"616",                             /* 616 */
2ba66f
+	"617",                             /* 617 */
2ba66f
+	"618",                             /* 618 */
2ba66f
+	"619",                             /* 619 */
2ba66f
+	"620",                             /* 620 */
2ba66f
+	"621",                             /* 621 */
2ba66f
+	"622",                             /* 622 */
2ba66f
+	"623",                             /* 623 */
2ba66f
+	"624",                             /* 624 */
2ba66f
+	"625",                             /* 625 */
2ba66f
+	"626",                             /* 626 */
2ba66f
+	"627",                             /* 627 */
2ba66f
+	"628",                             /* 628 */
2ba66f
+	"629",                             /* 629 */
2ba66f
+	"630",                             /* 630 */
2ba66f
+	"631",                             /* 631 */
2ba66f
+	"632",                             /* 632 */
2ba66f
+	"633",                             /* 633 */
2ba66f
+	"634",                             /* 634 */
2ba66f
+	"635",                             /* 635 */
2ba66f
+	"636",                             /* 636 */
2ba66f
+	"637",                             /* 637 */
2ba66f
+	"638",                             /* 638 */
2ba66f
+	"639",                             /* 639 */
2ba66f
+	"640",                             /* 640 */
2ba66f
+	"641",                             /* 641 */
2ba66f
+	"642",                             /* 642 */
2ba66f
+	"643",                             /* 643 */
2ba66f
+	"644",                             /* 644 */
2ba66f
+	"645",                             /* 645 */
2ba66f
+	"646",                             /* 646 */
2ba66f
+	"647",                             /* 647 */
2ba66f
+	"648",                             /* 648 */
2ba66f
+	"649",                             /* 649 */
2ba66f
+	"650",                             /* 650 */
2ba66f
+	"651",                             /* 651 */
2ba66f
+	"652",                             /* 652 */
2ba66f
+	"653",                             /* 653 */
2ba66f
+	"654",                             /* 654 */
2ba66f
+	"655",                             /* 655 */
2ba66f
+	"656",                             /* 656 */
2ba66f
+	"657",                             /* 657 */
2ba66f
+	"658",                             /* 658 */
2ba66f
+	"659",                             /* 659 */
2ba66f
+	"660",                             /* 660 */
2ba66f
+	"661",                             /* 661 */
2ba66f
+	"662",                             /* 662 */
2ba66f
+	"663",                             /* 663 */
2ba66f
+	"664",                             /* 664 */
2ba66f
+	"665",                             /* 665 */
2ba66f
+	"666",                             /* 666 */
2ba66f
+	"667",                             /* 667 */
2ba66f
+	"668",                             /* 668 */
2ba66f
+	"669",                             /* 669 */
2ba66f
+	"670",                             /* 670 */
2ba66f
+	"671",                             /* 671 */
2ba66f
+	"672",                             /* 672 */
2ba66f
+	"673",                             /* 673 */
2ba66f
+	"674",                             /* 674 */
2ba66f
+	"675",                             /* 675 */
2ba66f
+	"676",                             /* 676 */
2ba66f
+	"677",                             /* 677 */
2ba66f
+	"678",                             /* 678 */
2ba66f
+	"679",                             /* 679 */
2ba66f
+	"680",                             /* 680 */
2ba66f
+	"681",                             /* 681 */
2ba66f
+	"682",                             /* 682 */
2ba66f
+	"683",                             /* 683 */
2ba66f
+	"684",                             /* 684 */
2ba66f
+	"685",                             /* 685 */
2ba66f
+	"686",                             /* 686 */
2ba66f
+	"687",                             /* 687 */
2ba66f
+	"688",                             /* 688 */
2ba66f
+	"689",                             /* 689 */
2ba66f
+	"690",                             /* 690 */
2ba66f
+	"691",                             /* 691 */
2ba66f
+	"692",                             /* 692 */
2ba66f
+	"693",                             /* 693 */
2ba66f
+	"694",                             /* 694 */
2ba66f
+	"695",                             /* 695 */
2ba66f
+	"696",                             /* 696 */
2ba66f
+	"697",                             /* 697 */
2ba66f
+	"698",                             /* 698 */
2ba66f
+	"699",                             /* 699 */
2ba66f
+	"700",                             /* 700 */
2ba66f
+	"701",                             /* 701 */
2ba66f
+	"702",                             /* 702 */
2ba66f
+	"703",                             /* 703 */
2ba66f
+	"704",                             /* 704 */
2ba66f
+	"705",                             /* 705 */
2ba66f
+	"706",                             /* 706 */
2ba66f
+	"707",                             /* 707 */
2ba66f
+	"708",                             /* 708 */
2ba66f
+	"709",                             /* 709 */
2ba66f
+	"710",                             /* 710 */
2ba66f
+	"711",                             /* 711 */
2ba66f
+	"712",                             /* 712 */
2ba66f
+	"713",                             /* 713 */
2ba66f
+	"714",                             /* 714 */
2ba66f
+	"715",                             /* 715 */
2ba66f
+	"716",                             /* 716 */
2ba66f
+	"717",                             /* 717 */
2ba66f
+	"718",                             /* 718 */
2ba66f
+	"719",                             /* 719 */
2ba66f
+	"720",                             /* 720 */
2ba66f
+	"721",                             /* 721 */
2ba66f
+	"722",                             /* 722 */
2ba66f
+	"723",                             /* 723 */
2ba66f
+	"724",                             /* 724 */
2ba66f
+	"725",                             /* 725 */
2ba66f
+	"726",                             /* 726 */
2ba66f
+	"727",                             /* 727 */
2ba66f
+	"728",                             /* 728 */
2ba66f
+	"729",                             /* 729 */
2ba66f
+	"730",                             /* 730 */
2ba66f
+	"731",                             /* 731 */
2ba66f
+	"732",                             /* 732 */
2ba66f
+	"733",                             /* 733 */
2ba66f
+	"734",                             /* 734 */
2ba66f
+	"735",                             /* 735 */
2ba66f
+	"736",                             /* 736 */
2ba66f
+	"737",                             /* 737 */
2ba66f
+	"738",                             /* 738 */
2ba66f
+	"739",                             /* 739 */
2ba66f
+	"740",                             /* 740 */
2ba66f
+	"741",                             /* 741 */
2ba66f
+	"742",                             /* 742 */
2ba66f
+	"743",                             /* 743 */
2ba66f
+	"744",                             /* 744 */
2ba66f
+	"745",                             /* 745 */
2ba66f
+	"746",                             /* 746 */
2ba66f
+	"747",                             /* 747 */
2ba66f
+	"748",                             /* 748 */
2ba66f
+	"749",                             /* 749 */
2ba66f
+	"750",                             /* 750 */
2ba66f
+	"751",                             /* 751 */
2ba66f
+	"752",                             /* 752 */
2ba66f
+	"753",                             /* 753 */
2ba66f
+	"754",                             /* 754 */
2ba66f
+	"755",                             /* 755 */
2ba66f
+	"756",                             /* 756 */
2ba66f
+	"757",                             /* 757 */
2ba66f
+	"758",                             /* 758 */
2ba66f
+	"759",                             /* 759 */
2ba66f
+	"760",                             /* 760 */
2ba66f
+	"761",                             /* 761 */
2ba66f
+	"762",                             /* 762 */
2ba66f
+	"763",                             /* 763 */
2ba66f
+	"764",                             /* 764 */
2ba66f
+	"765",                             /* 765 */
2ba66f
+	"766",                             /* 766 */
2ba66f
+	"767",                             /* 767 */
2ba66f
+	"768",                             /* 768 */
2ba66f
+	"769",                             /* 769 */
2ba66f
+	"770",                             /* 770 */
2ba66f
+	"771",                             /* 771 */
2ba66f
+	"772",                             /* 772 */
2ba66f
+	"773",                             /* 773 */
2ba66f
+	"774",                             /* 774 */
2ba66f
+	"775",                             /* 775 */
2ba66f
+	"776",                             /* 776 */
2ba66f
+	"777",                             /* 777 */
2ba66f
+	"778",                             /* 778 */
2ba66f
+	"779",                             /* 779 */
2ba66f
+	"780",                             /* 780 */
2ba66f
+	"781",                             /* 781 */
2ba66f
+	"782",                             /* 782 */
2ba66f
+	"783",                             /* 783 */
2ba66f
+	"784",                             /* 784 */
2ba66f
+	"785",                             /* 785 */
2ba66f
+	"786",                             /* 786 */
2ba66f
+	"787",                             /* 787 */
2ba66f
+	"788",                             /* 788 */
2ba66f
+	"789",                             /* 789 */
2ba66f
+	"790",                             /* 790 */
2ba66f
+	"791",                             /* 791 */
2ba66f
+	"792",                             /* 792 */
2ba66f
+	"793",                             /* 793 */
2ba66f
+	"794",                             /* 794 */
2ba66f
+	"795",                             /* 795 */
2ba66f
+	"796",                             /* 796 */
2ba66f
+	"797",                             /* 797 */
2ba66f
+	"798",                             /* 798 */
2ba66f
+	"799",                             /* 799 */
2ba66f
+	"800",                             /* 800 */
2ba66f
+	"801",                             /* 801 */
2ba66f
+	"802",                             /* 802 */
2ba66f
+	"803",                             /* 803 */
2ba66f
+	"804",                             /* 804 */
2ba66f
+	"805",                             /* 805 */
2ba66f
+	"806",                             /* 806 */
2ba66f
+	"807",                             /* 807 */
2ba66f
+	"808",                             /* 808 */
2ba66f
+	"809",                             /* 809 */
2ba66f
+	"810",                             /* 810 */
2ba66f
+	"811",                             /* 811 */
2ba66f
+	"812",                             /* 812 */
2ba66f
+	"813",                             /* 813 */
2ba66f
+	"814",                             /* 814 */
2ba66f
+	"815",                             /* 815 */
2ba66f
+	"816",                             /* 816 */
2ba66f
+	"817",                             /* 817 */
2ba66f
+	"818",                             /* 818 */
2ba66f
+	"819",                             /* 819 */
2ba66f
+	"820",                             /* 820 */
2ba66f
+	"821",                             /* 821 */
2ba66f
+	"822",                             /* 822 */
2ba66f
+	"823",                             /* 823 */
2ba66f
+	"824",                             /* 824 */
2ba66f
+	"825",                             /* 825 */
2ba66f
+	"826",                             /* 826 */
2ba66f
+	"827",                             /* 827 */
2ba66f
+	"828",                             /* 828 */
2ba66f
+	"829",                             /* 829 */
2ba66f
+	"830",                             /* 830 */
2ba66f
+	"831",                             /* 831 */
2ba66f
+	"832",                             /* 832 */
2ba66f
+	"833",                             /* 833 */
2ba66f
+	"834",                             /* 834 */
2ba66f
+	"835",                             /* 835 */
2ba66f
+	"836",                             /* 836 */
2ba66f
+	"837",                             /* 837 */
2ba66f
+	"838",                             /* 838 */
2ba66f
+	"839",                             /* 839 */
2ba66f
+	"840",                             /* 840 */
2ba66f
+	"841",                             /* 841 */
2ba66f
+	"842",                             /* 842 */
2ba66f
+	"843",                             /* 843 */
2ba66f
+	"844",                             /* 844 */
2ba66f
+	"845",                             /* 845 */
2ba66f
+	"846",                             /* 846 */
2ba66f
+	"847",                             /* 847 */
2ba66f
+	"848",                             /* 848 */
2ba66f
+	"849",                             /* 849 */
2ba66f
+	"850",                             /* 850 */
2ba66f
+	"851",                             /* 851 */
2ba66f
+	"852",                             /* 852 */
2ba66f
+	"853",                             /* 853 */
2ba66f
+	"854",                             /* 854 */
2ba66f
+	"855",                             /* 855 */
2ba66f
+	"856",                             /* 856 */
2ba66f
+	"857",                             /* 857 */
2ba66f
+	"858",                             /* 858 */
2ba66f
+	"859",                             /* 859 */
2ba66f
+	"860",                             /* 860 */
2ba66f
+	"861",                             /* 861 */
2ba66f
+	"862",                             /* 862 */
2ba66f
+	"863",                             /* 863 */
2ba66f
+	"864",                             /* 864 */
2ba66f
+	"865",                             /* 865 */
2ba66f
+	"866",                             /* 866 */
2ba66f
+	"867",                             /* 867 */
2ba66f
+	"868",                             /* 868 */
2ba66f
+	"869",                             /* 869 */
2ba66f
+	"870",                             /* 870 */
2ba66f
+	"871",                             /* 871 */
2ba66f
+	"872",                             /* 872 */
2ba66f
+	"873",                             /* 873 */
2ba66f
+	"874",                             /* 874 */
2ba66f
+	"875",                             /* 875 */
2ba66f
+	"876",                             /* 876 */
2ba66f
+	"877",                             /* 877 */
2ba66f
+	"878",                             /* 878 */
2ba66f
+	"879",                             /* 879 */
2ba66f
+	"880",                             /* 880 */
2ba66f
+	"881",                             /* 881 */
2ba66f
+	"882",                             /* 882 */
2ba66f
+	"883",                             /* 883 */
2ba66f
+	"884",                             /* 884 */
2ba66f
+	"885",                             /* 885 */
2ba66f
+	"886",                             /* 886 */
2ba66f
+	"887",                             /* 887 */
2ba66f
+	"888",                             /* 888 */
2ba66f
+	"889",                             /* 889 */
2ba66f
+	"890",                             /* 890 */
2ba66f
+	"891",                             /* 891 */
2ba66f
+	"892",                             /* 892 */
2ba66f
+	"893",                             /* 893 */
2ba66f
+	"894",                             /* 894 */
2ba66f
+	"895",                             /* 895 */
2ba66f
+	"896",                             /* 896 */
2ba66f
+	"897",                             /* 897 */
2ba66f
+	"898",                             /* 898 */
2ba66f
+	"899",                             /* 899 */
2ba66f
+	"900",                             /* 900 */
2ba66f
+	"901",                             /* 901 */
2ba66f
+	"902",                             /* 902 */
2ba66f
+	"903",                             /* 903 */
2ba66f
+	"904",                             /* 904 */
2ba66f
+	"905",                             /* 905 */
2ba66f
+	"906",                             /* 906 */
2ba66f
+	"907",                             /* 907 */
2ba66f
+	"908",                             /* 908 */
2ba66f
+	"909",                             /* 909 */
2ba66f
+	"910",                             /* 910 */
2ba66f
+	"911",                             /* 911 */
2ba66f
+	"912",                             /* 912 */
2ba66f
+	"913",                             /* 913 */
2ba66f
+	"914",                             /* 914 */
2ba66f
+	"915",                             /* 915 */
2ba66f
+	"916",                             /* 916 */
2ba66f
+	"917",                             /* 917 */
2ba66f
+	"918",                             /* 918 */
2ba66f
+	"919",                             /* 919 */
2ba66f
+	"920",                             /* 920 */
2ba66f
+	"921",                             /* 921 */
2ba66f
+	"922",                             /* 922 */
2ba66f
+	"923",                             /* 923 */
2ba66f
+	"924",                             /* 924 */
2ba66f
+	"925",                             /* 925 */
2ba66f
+	"926",                             /* 926 */
2ba66f
+	"927",                             /* 927 */
2ba66f
+	"928",                             /* 928 */
2ba66f
+	"929",                             /* 929 */
2ba66f
+	"930",                             /* 930 */
2ba66f
+	"931",                             /* 931 */
2ba66f
+	"932",                             /* 932 */
2ba66f
+	"933",                             /* 933 */
2ba66f
+	"934",                             /* 934 */
2ba66f
+	"935",                             /* 935 */
2ba66f
+	"936",                             /* 936 */
2ba66f
+	"937",                             /* 937 */
2ba66f
+	"938",                             /* 938 */
2ba66f
+	"939",                             /* 939 */
2ba66f
+	"940",                             /* 940 */
2ba66f
+	"941",                             /* 941 */
2ba66f
+	"942",                             /* 942 */
2ba66f
+	"943",                             /* 943 */
2ba66f
+	"944",                             /* 944 */
2ba66f
+	"945",                             /* 945 */
2ba66f
+	"946",                             /* 946 */
2ba66f
+	"947",                             /* 947 */
2ba66f
+	"948",                             /* 948 */
2ba66f
+	"949",                             /* 949 */
2ba66f
+	"950",                             /* 950 */
2ba66f
+	"951",                             /* 951 */
2ba66f
+	"952",                             /* 952 */
2ba66f
+	"953",                             /* 953 */
2ba66f
+	"954",                             /* 954 */
2ba66f
+	"955",                             /* 955 */
2ba66f
+	"956",                             /* 956 */
2ba66f
+	"957",                             /* 957 */
2ba66f
+	"958",                             /* 958 */
2ba66f
+	"959",                             /* 959 */
2ba66f
+	"960",                             /* 960 */
2ba66f
+	"961",                             /* 961 */
2ba66f
+	"962",                             /* 962 */
2ba66f
+	"963",                             /* 963 */
2ba66f
+	"964",                             /* 964 */
2ba66f
+	"965",                             /* 965 */
2ba66f
+	"966",                             /* 966 */
2ba66f
+	"967",                             /* 967 */
2ba66f
+	"968",                             /* 968 */
2ba66f
+	"969",                             /* 969 */
2ba66f
+	"970",                             /* 970 */
2ba66f
+	"971",                             /* 971 */
2ba66f
+	"972",                             /* 972 */
2ba66f
+	"973",                             /* 973 */
2ba66f
+	"974",                             /* 974 */
2ba66f
+	"975",                             /* 975 */
2ba66f
+	"976",                             /* 976 */
2ba66f
+	"977",                             /* 977 */
2ba66f
+	"978",                             /* 978 */
2ba66f
+	"979",                             /* 979 */
2ba66f
+	"980",                             /* 980 */
2ba66f
+	"981",                             /* 981 */
2ba66f
+	"982",                             /* 982 */
2ba66f
+	"983",                             /* 983 */
2ba66f
+	"984",                             /* 984 */
2ba66f
+	"985",                             /* 985 */
2ba66f
+	"986",                             /* 986 */
2ba66f
+	"987",                             /* 987 */
2ba66f
+	"988",                             /* 988 */
2ba66f
+	"989",                             /* 989 */
2ba66f
+	"990",                             /* 990 */
2ba66f
+	"991",                             /* 991 */
2ba66f
+	"992",                             /* 992 */
2ba66f
+	"993",                             /* 993 */
2ba66f
+	"994",                             /* 994 */
2ba66f
+	"995",                             /* 995 */
2ba66f
+	"996",                             /* 996 */
2ba66f
+	"997",                             /* 997 */
2ba66f
+	"998",                             /* 998 */
2ba66f
+	"999",                             /* 999 */
2ba66f
+	"1000",                            /* 1000 */
2ba66f
+	"1001",                            /* 1001 */
2ba66f
+	"1002",                            /* 1002 */
2ba66f
+	"1003",                            /* 1003 */
2ba66f
+	"1004",                            /* 1004 */
2ba66f
+	"1005",                            /* 1005 */
2ba66f
+	"1006",                            /* 1006 */
2ba66f
+	"1007",                            /* 1007 */
2ba66f
+	"1008",                            /* 1008 */
2ba66f
+	"1009",                            /* 1009 */
2ba66f
+	"1010",                            /* 1010 */
2ba66f
+	"1011",                            /* 1011 */
2ba66f
+	"1012",                            /* 1012 */
2ba66f
+	"1013",                            /* 1013 */
2ba66f
+	"1014",                            /* 1014 */
2ba66f
+	"1015",                            /* 1015 */
2ba66f
+	"1016",                            /* 1016 */
2ba66f
+	"1017",                            /* 1017 */
2ba66f
+	"1018",                            /* 1018 */
2ba66f
+	"1019",                            /* 1019 */
2ba66f
+	"1020",                            /* 1020 */
2ba66f
+	"1021",                            /* 1021 */
2ba66f
+	"1022",                            /* 1022 */
2ba66f
+	"1023",                            /* 1023 */
2ba66f
+	"open",                            /* 1024 */
2ba66f
+	"link",                            /* 1025 */
2ba66f
+	"unlink",                          /* 1026 */
2ba66f
+	"mknod",                           /* 1027 */
2ba66f
+	"chmod",                           /* 1028 */
2ba66f
+	"chown",                           /* 1029 */
2ba66f
+	"mkdir",                           /* 1030 */
2ba66f
+	"rmdir",                           /* 1031 */
2ba66f
+	"lchown",                          /* 1032 */
2ba66f
+	"access",                          /* 1033 */
2ba66f
+	"rename",                          /* 1034 */
2ba66f
+	"readlink",                        /* 1035 */
2ba66f
+	"symlink",                         /* 1036 */
2ba66f
+	"utimes",                          /* 1037 */
2ba66f
+	"stat",                            /* 1038 */
2ba66f
+	"lstat",                           /* 1039 */
2ba66f
+	"pipe",                            /* 1040 */
2ba66f
+	"dup2",                            /* 1041 */
2ba66f
+	"epoll_create",                    /* 1042 */
2ba66f
+	"inotify_init",                    /* 1043 */
2ba66f
+	"eventfd",                         /* 1044 */
2ba66f
+	"signalfd",                        /* 1045 */
2ba66f
+	"sendfile",                        /* 1046 */
2ba66f
+	"ftruncate",                       /* 1047 */
2ba66f
+	"truncate",                        /* 1048 */
2ba66f
+	"stat",                            /* 1049 */
2ba66f
+	"lstat",                           /* 1050 */
2ba66f
+	"fstat",                           /* 1051 */
2ba66f
+	"fcntl",                           /* 1052 */
2ba66f
+	"fadvise64",                       /* 1053 */
2ba66f
+	"newfstatat",                      /* 1054 */
2ba66f
+	"fstatfs",                         /* 1055 */
2ba66f
+	"statfs",                          /* 1056 */
2ba66f
+	"lseek",                           /* 1057 */
2ba66f
+	"mmap",                            /* 1058 */
2ba66f
+	"alarm",                           /* 1059 */
2ba66f
+	"getpgrp",                         /* 1060 */
2ba66f
+	"pause",                           /* 1061 */
2ba66f
+	"time",                            /* 1062 */
2ba66f
+	"utime",                           /* 1063 */
2ba66f
+	"creat",                           /* 1064 */
2ba66f
+	"getdents",                        /* 1065 */
2ba66f
+	"futimesat",                       /* 1066 */
2ba66f
+	"select",                          /* 1067 */
2ba66f
+	"poll",                            /* 1068 */
2ba66f
+	"epoll_wait",                      /* 1069 */
2ba66f
+	"ustat",                           /* 1070 */
2ba66f
+	"vfork",                           /* 1071 */
2ba66f
+	"oldwait4",                        /* 1072 */
2ba66f
+	"recv",                            /* 1073 */
2ba66f
+	"send",                            /* 1074 */
2ba66f
+	"bdflush",                         /* 1075 */
2ba66f
+	"umount",                          /* 1076 */
2ba66f
+	"uselib",                          /* 1077 */
2ba66f
+	"_sysctl",                         /* 1078 */
2ba66f
+	"fork",                            /* 1079 */
2ba66f
diff --git a/sysdeps/linux-gnu/aarch64/trace.c b/sysdeps/linux-gnu/aarch64/trace.c
2ba66f
new file mode 100644
2ba66f
index 0000000..5544b51
2ba66f
--- /dev/null
2ba66f
+++ b/sysdeps/linux-gnu/aarch64/trace.c
2ba66f
@@ -0,0 +1,83 @@
2ba66f
+/*
2ba66f
+ * This file is part of ltrace.
2ba66f
+ * Copyright (C) 2014 Petr Machata, Red Hat, Inc.
2ba66f
+ *
2ba66f
+ * This program is free software; you can redistribute it and/or
2ba66f
+ * modify it under the terms of the GNU General Public License as
2ba66f
+ * published by the Free Software Foundation; either version 2 of the
2ba66f
+ * License, or (at your option) any later version.
2ba66f
+ *
2ba66f
+ * This program is distributed in the hope that it will be useful, but
2ba66f
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
2ba66f
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
2ba66f
+ * General Public License for more details.
2ba66f
+ *
2ba66f
+ * You should have received a copy of the GNU General Public License
2ba66f
+ * along with this program; if not, write to the Free Software
2ba66f
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
2ba66f
+ * 02110-1301 USA
2ba66f
+ */
2ba66f
+
2ba66f
+#include <sys/ptrace.h>
2ba66f
+#include <sys/types.h>
2ba66f
+#include <sys/wait.h>
2ba66f
+#include <asm/ptrace.h>
2ba66f
+#include <string.h>
2ba66f
+#include <errno.h>
2ba66f
+
2ba66f
+#include "backend.h"
2ba66f
+#include "proc.h"
2ba66f
+
2ba66f
+void
2ba66f
+get_arch_dep(struct process *proc)
2ba66f
+{
2ba66f
+}
2ba66f
+
2ba66f
+int aarch64_read_gregs(struct process *proc, struct user_pt_regs *regs);
2ba66f
+
2ba66f
+/* The syscall instruction is:
2ba66f
+ * | 31                   21 | 20    5 | 4       0 |
2ba66f
+ * | 1 1 0 1 0 1 0 0 | 0 0 0 |  imm16  | 0 0 0 0 1 | */
2ba66f
+#define SVC_MASK  0xffe0001f
2ba66f
+#define SVC_VALUE 0xd4000001
2ba66f
+
2ba66f
+int
2ba66f
+syscall_p(struct process *proc, int status, int *sysnum)
2ba66f
+{
2ba66f
+	if (WIFSTOPPED(status)
2ba66f
+	    && WSTOPSIG(status) == (SIGTRAP | proc->tracesysgood)) {
2ba66f
+
2ba66f
+		struct user_pt_regs regs;
2ba66f
+		if (aarch64_read_gregs(proc, &regs) < 0) {
2ba66f
+			fprintf(stderr, "syscall_p: "
2ba66f
+				"Couldn't read registers of %d.\n", proc->pid);
2ba66f
+			return -1;
2ba66f
+		}
2ba66f
+
2ba66f
+		errno = 0;
2ba66f
+		unsigned long insn = (unsigned long) ptrace(PTRACE_PEEKTEXT,
2ba66f
+							    proc->pid,
2ba66f
+							    regs.pc - 4, 0);
2ba66f
+		if (insn == -1UL && errno != 0) {
2ba66f
+			fprintf(stderr, "syscall_p: "
2ba66f
+				"Couldn't peek into %d: %s\n", proc->pid,
2ba66f
+				strerror(errno));
2ba66f
+			return -1;
2ba66f
+		}
2ba66f
+
2ba66f
+		insn &= 0xffffffffUL;
2ba66f
+		if ((insn & SVC_MASK) == SVC_VALUE) {
2ba66f
+			*sysnum = regs.regs[8];
2ba66f
+
2ba66f
+			size_t d1 = proc->callstack_depth - 1;
2ba66f
+			if (proc->callstack_depth > 0
2ba66f
+			    && proc->callstack[d1].is_syscall
2ba66f
+			    && proc->callstack[d1].c_un.syscall == *sysnum)
2ba66f
+				return 2;
2ba66f
+
2ba66f
+			return 1;
2ba66f
+		}
2ba66f
+	}
2ba66f
+
2ba66f
+	return 0;
2ba66f
+}
2ba66f
diff --git a/testsuite/ltrace.main/system_call_params.exp b/testsuite/ltrace.main/system_call_params.exp
2ba66f
index 787e342..2ccf840 100644
2ba66f
--- a/testsuite/ltrace.main/system_call_params.exp
2ba66f
+++ b/testsuite/ltrace.main/system_call_params.exp
2ba66f
@@ -1,5 +1,5 @@
2ba66f
 # This file is part of ltrace.
2ba66f
-# Copyright (C) 2013 Petr Machata, Red Hat Inc.
2ba66f
+# Copyright (C) 2013, 2014 Petr Machata, Red Hat Inc.
2ba66f
 #
2ba66f
 # This program is free software; you can redistribute it and/or
2ba66f
 # modify it under the terms of the GNU General Public License as
2ba66f
@@ -17,11 +17,25 @@
2ba66f
 # 02110-1301 USA
2ba66f
 
2ba66f
 set bin [ltraceCompile {} [ltraceSource c {
2ba66f
+    #define _GNU_SOURCE
2ba66f
     #include <sys/types.h>
2ba66f
     #include <sys/stat.h>
2ba66f
     #include <fcntl.h>
2ba66f
+    #include <unistd.h>
2ba66f
+    #include <sys/syscall.h>   /* For SYS_xxx definitions */
2ba66f
+
2ba66f
+    #ifndef SYS_open
2ba66f
+    # if defined(__aarch64__)
2ba66f
+    #  /* Linux doesn't actually implement SYS_open on AArch64, but for merely
2ba66f
+    #   * recording the syscall, it's fine.  */
2ba66f
+    #  define SYS_open 1024
2ba66f
+    # else
2ba66f
+    #  error SYS_open not available.
2ba66f
+    # endif
2ba66f
+    #endif
2ba66f
+
2ba66f
     int main(void) {
2ba66f
-	open("/some/path", O_RDONLY);
2ba66f
+	syscall(SYS_open, "/some/path", O_RDONLY);
2ba66f
 	write(1, "something", 10);
2ba66f
 	mount("source", "target", "filesystemtype", 0, 0);
2ba66f
     }
2ba66f
diff --git a/testsuite/ltrace.main/system_calls.c b/testsuite/ltrace.main/system_calls.c
2ba66f
deleted file mode 100644
2ba66f
index 7be3d04..0000000
2ba66f
--- a/testsuite/ltrace.main/system_calls.c
2ba66f
+++ /dev/null
2ba66f
@@ -1,68 +0,0 @@
2ba66f
-/* Ltrace Test : system_calls.c.
2ba66f
-   Objectives  : Verify that Ltrace can trace all the system calls in
2ba66f
-   execution.
2ba66f
-
2ba66f
-   You can add new system calls in it and add its verification in 
2ba66f
-   system_calls correspondingly.
2ba66f
-
2ba66f
-   This file was written by Yao Qi <qiyao@cn.ibm.com>. */
2ba66f
-
2ba66f
-#include <stdio.h>
2ba66f
-#include <unistd.h>
2ba66f
-#include <sys/syscall.h>
2ba66f
-#include <sys/stat.h>
2ba66f
-#include <errno.h>
2ba66f
-
2ba66f
-void exit (int);
2ba66f
-
2ba66f
-#define	BUF_SIZE	100
2ba66f
-
2ba66f
-int 
2ba66f
-main ()
2ba66f
-{
2ba66f
-  FILE* fp;
2ba66f
-  char s[]="system_calls";
2ba66f
-  char buffer[BUF_SIZE];
2ba66f
-  struct stat state;
2ba66f
-  
2ba66f
-  /*  SYS_open.  */
2ba66f
-  fp = fopen ("system_calls.tmp", "w");
2ba66f
-  if (fp == NULL)
2ba66f
-    {
2ba66f
-      printf("Can not create system_calls.tmp\n");
2ba66f
-      exit (0);
2ba66f
-    }
2ba66f
-  /*  SYS_write.  */
2ba66f
-  fwrite(s, sizeof(s), 1, fp);
2ba66f
-  /*  SYS_lseek.  */
2ba66f
-  fseek (fp, 0, SEEK_CUR);
2ba66f
-  /*  SYS_read.  */
2ba66f
-  fread(buffer, sizeof(s), 1, fp);
2ba66f
-  /*  SYS_close.  */
2ba66f
-  fclose(fp);
2ba66f
-
2ba66f
-  /*  SYS_getcwd.  */
2ba66f
-  getcwd (buffer, BUF_SIZE);
2ba66f
-  /*  SYS_chdir.  */
2ba66f
-  chdir (".");
2ba66f
-  /*  SYS_symlink.  */
2ba66f
-  symlink ("system_calls.tmp", "system_calls.link");
2ba66f
-  /*  SYS_unlink.  */
2ba66f
-  remove("system_calls.link");
2ba66f
-  /*  SYS_rename.  */
2ba66f
-  rename ("system_calls.tmp", "system_calls.tmp1");
2ba66f
-  /*  SYS_stat.  */
2ba66f
-  stat ("system_calls.tmp", &state);
2ba66f
-  /*  SYS_access.  */
2ba66f
-  access ("system_calls.tmp", R_OK);
2ba66f
-  remove("system_calls.tmp1");
2ba66f
-  
2ba66f
-  /*  SYS_mkdir.  */
2ba66f
-  mkdir ("system_call_mkdir", 0777);
2ba66f
-  /*  SYS_rmdir.  */
2ba66f
-  rmdir ("system_call_mkdir");
2ba66f
-  
2ba66f
-  return 0;
2ba66f
-}
2ba66f
-
2ba66f
-
2ba66f
diff --git a/testsuite/ltrace.main/system_calls.exp b/testsuite/ltrace.main/system_calls.exp
2ba66f
index a74fa04..f60e319 100644
2ba66f
--- a/testsuite/ltrace.main/system_calls.exp
2ba66f
+++ b/testsuite/ltrace.main/system_calls.exp
2ba66f
@@ -1,67 +1,146 @@
2ba66f
-# This file was written by Yao Qi <qiyao@cn.ibm.com>.
2ba66f
+# This file is part of ltrace.
2ba66f
+# Copyright (C) 2014 Petr Machata, Red Hat Inc.
2ba66f
+# Copyright (C) 2006 Yao Qi <qiyao@cn.ibm.com>, IBM Corporation
2ba66f
+#
2ba66f
+# This program is free software; you can redistribute it and/or
2ba66f
+# modify it under the terms of the GNU General Public License as
2ba66f
+# published by the Free Software Foundation; either version 2 of the
2ba66f
+# License, or (at your option) any later version.
2ba66f
+#
2ba66f
+# This program is distributed in the hope that it will be useful, but
2ba66f
+# WITHOUT ANY WARRANTY; without even the implied warranty of
2ba66f
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
2ba66f
+# General Public License for more details.
2ba66f
+#
2ba66f
+# You should have received a copy of the GNU General Public License
2ba66f
+# along with this program; if not, write to the Free Software
2ba66f
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
2ba66f
+# 02110-1301 USA
2ba66f
 
2ba66f
-set testfile "system_calls"
2ba66f
-set srcfile ${testfile}.c
2ba66f
-set binfile ${testfile}
2ba66f
+# Objectives: Verify that Ltrace can trace all the system calls in
2ba66f
+# execution.  Note that this test is necessarily noisy.  Dynamic
2ba66f
+# linker adds a bunch of system calls of its own.
2ba66f
 
2ba66f
+set empty [ltraceCompile {} [ltraceSource c {
2ba66f
+    int main (void) { return 0; }
2ba66f
+}]]
2ba66f
 
2ba66f
-verbose "compiling source file now....."
2ba66f
-# Build the shared libraries this test case needs.
2ba66f
-if  { [ ltrace_compile "${srcdir}/${subdir}/${testfile}.c" "${objdir}/${subdir}/${binfile}" executable {debug} ] != "" } {
2ba66f
-     send_user "Testcase compile failed, so all tests in this file will automatically fail.\n"
2ba66f
+set bin [ltraceCompile {} [ltraceSource c {
2ba66f
+    #include <stdio.h>
2ba66f
+    #include <unistd.h>
2ba66f
+    #include <sys/syscall.h>
2ba66f
+    #include <sys/stat.h>
2ba66f
+    #include <errno.h>
2ba66f
+    #include <stdlib.h>
2ba66f
+
2ba66f
+    int
2ba66f
+    main ()
2ba66f
+    {
2ba66f
+      FILE* fp;
2ba66f
+      char s[]="system_calls";
2ba66f
+      char buffer[1024];
2ba66f
+      struct stat state;
2ba66f
+
2ba66f
+      fp = fopen ("system_calls.tmp", "w");
2ba66f
+      if (fp == NULL)
2ba66f
+	{
2ba66f
+	  printf("Can not create system_calls.tmp\n");
2ba66f
+	  exit (0);
2ba66f
+	}
2ba66f
+      fwrite(s, sizeof(s), 1, fp);
2ba66f
+      fseek (fp, 0, SEEK_CUR);
2ba66f
+      fread(buffer, sizeof(s), 1, fp);
2ba66f
+      fclose(fp);
2ba66f
+
2ba66f
+      getcwd (buffer, sizeof buffer);
2ba66f
+      chdir (".");
2ba66f
+      symlink ("system_calls.tmp", "system_calls.link");
2ba66f
+      remove("system_calls.link");
2ba66f
+      rename ("system_calls.tmp", "system_calls.tmp1");
2ba66f
+      stat ("system_calls.tmp", &state);
2ba66f
+      access ("system_calls.tmp", R_OK);
2ba66f
+      remove("system_calls.tmp1");
2ba66f
+
2ba66f
+      mkdir ("system_call_mkdir", 0777);
2ba66f
+      rmdir ("system_call_mkdir");
2ba66f
+
2ba66f
+      return 0;
2ba66f
+    }
2ba66f
+}]]
2ba66f
+
2ba66f
+proc Calls {logfile} {
2ba66f
+    set fp [open $logfile]
2ba66f
+    set ret {}
2ba66f
+
2ba66f
+    while {[gets $fp line] >= 0} {
2ba66f
+	if [regexp -- {^[a-zA-Z0-9]*@SYS} $line] {
2ba66f
+	    set call [lindex [split $line @] 0]
2ba66f
+	    dict incr ret $call
2ba66f
+	}
2ba66f
+    }
2ba66f
+
2ba66f
+    close $fp
2ba66f
+    return $ret
2ba66f
+}
2ba66f
+
2ba66f
+proc GetDefault {d key def} {
2ba66f
+    if {[dict exists $d $key]} {
2ba66f
+	return [dict get $d $key]
2ba66f
+    } else {
2ba66f
+	return $def
2ba66f
+    }
2ba66f
 }
2ba66f
 
2ba66f
-# set options for ltrace.
2ba66f
-ltrace_options "-S"
2ba66f
+proc Diff {d1 d2} {
2ba66f
+    set keys [lsort -unique [concat [dict keys $d1] [dict keys $d2]]]
2ba66f
+    set ret {}
2ba66f
+    foreach key $keys {
2ba66f
+	set n1 [GetDefault $d1 $key 0]
2ba66f
+	set n2 [GetDefault $d2 $key 0]
2ba66f
+	set sum [expr $n1 - $n2]
2ba66f
+	if {[expr $sum != 0]} {
2ba66f
+		dict set ret $key $sum
2ba66f
+	}
2ba66f
+    }
2ba66f
+    return $ret
2ba66f
+}
2ba66f
+
2ba66f
+proc Match {d patterns} {
2ba66f
+    foreach line $patterns {
2ba66f
+	set pattern [lindex $line 0]
2ba66f
+	set op [lindex $line 1]
2ba66f
+	set expect [lindex $line 2]
2ba66f
 
2ba66f
-#Run PUT for ltarce.
2ba66f
-set exec_output [ltrace_runtest $objdir/$subdir $objdir/$subdir/$binfile]
2ba66f
+	set count 0
2ba66f
+	foreach key [dict keys $d] {
2ba66f
+	    if [regexp -- $pattern $key] {
2ba66f
+		incr count [dict get $d $key]
2ba66f
+	    }
2ba66f
+	}
2ba66f
 
2ba66f
-#check the output of this program.
2ba66f
-verbose "ltrace runtest output: $exec_output\n"
2ba66f
+	set msgMain "$pattern was recorded $count times"
2ba66f
 
2ba66f
-if [regexp {ELF from incompatible architecture} $exec_output] {
2ba66f
-	fail "32-bit ltrace can not perform on 64-bit PUTs and rebuild ltrace in 64 bit mode!"
2ba66f
-        return
2ba66f
-} elseif [ regexp {Couldn't get .hash data} $exec_output ] {
2ba66f
-	fail "Couldn't get .hash data!"
2ba66f
-	return
2ba66f
+	if {[eval expr $count $op $expect]} {
2ba66f
+	    pass $msgMain
2ba66f
+	} else {
2ba66f
+	    fail "$msgMain, expected $op $expect"
2ba66f
+	}
2ba66f
+    }
2ba66f
 }
2ba66f
 
2ba66f
+Match [Diff [Calls [ltraceRun -L -S -- $bin]] \
2ba66f
+	   [Calls [ltraceRun -L -S -- $empty]]] {
2ba66f
+    { {^write$} == 1 }
2ba66f
+    { {^unlink(at)?$} >= 2 }
2ba66f
+    { {^open(at)?$} == 1 }
2ba66f
+    { {^(new|f)?stat(64)?$} == 1 }
2ba66f
+    { {^close$} == 1 }
2ba66f
+    { {^getcwd$} == 1 }
2ba66f
+    { {^chdir$} == 1 }
2ba66f
+    { {^symlink(at)?$} == 1 }
2ba66f
+    { {^f?access(at)?$} == 1 }
2ba66f
+    { {^rename(at)?$} == 1 }
2ba66f
+    { {^mkdir(at)?$} == 1 }
2ba66f
+}
2ba66f
 
2ba66f
-set pattern "^munmap@SYS"
2ba66f
-ltrace_verify_output ${objdir}/${subdir}/${testfile}.ltrace $pattern 2
2ba66f
-set pattern "^write@SYS"
2ba66f
-ltrace_verify_output ${objdir}/${subdir}/${testfile}.ltrace $pattern 1
2ba66f
-set pattern "^unlink@SYS"
2ba66f
-ltrace_verify_output ${objdir}/${subdir}/${testfile}.ltrace $pattern 1
2ba66f
-
2ba66f
-set pattern "^brk@SYS"
2ba66f
-ltrace_verify_output ${objdir}/${subdir}/${testfile}.ltrace $pattern 1
2ba66f
-set pattern "^open@SYS"
2ba66f
-ltrace_verify_output ${objdir}/${subdir}/${testfile}.ltrace $pattern 1
2ba66f
-set pattern "^(new)?fstat(64)?@SYS"
2ba66f
-ltrace_verify_output ${objdir}/${subdir}/${testfile}.ltrace $pattern 1 egrep
2ba66f
-set pattern "^(old_)?mmap2?@SYS"
2ba66f
-ltrace_verify_output ${objdir}/${subdir}/${testfile}.ltrace $pattern 1 egrep
2ba66f
-set pattern "^close@SYS"
2ba66f
-ltrace_verify_output ${objdir}/${subdir}/${testfile}.ltrace $pattern 1
2ba66f
-
2ba66f
-set pattern "^getcwd@SYS"
2ba66f
-ltrace_verify_output ${objdir}/${subdir}/${testfile}.ltrace $pattern 1
2ba66f
-set pattern "^chdir@SYS"
2ba66f
-ltrace_verify_output ${objdir}/${subdir}/${testfile}.ltrace $pattern 1
2ba66f
-set pattern "^symlink@SYS"
2ba66f
-ltrace_verify_output ${objdir}/${subdir}/${testfile}.ltrace $pattern 1
2ba66f
-set pattern "^unlink@SYS"
2ba66f
-ltrace_verify_output ${objdir}/${subdir}/${testfile}.ltrace $pattern 1
2ba66f
-set pattern "^(new)?stat(64)?@SYS"
2ba66f
-ltrace_verify_output ${objdir}/${subdir}/${testfile}.ltrace $pattern 1 egrep
2ba66f
-set pattern "^access@SYS"
2ba66f
-ltrace_verify_output ${objdir}/${subdir}/${testfile}.ltrace $pattern 1
2ba66f
-set pattern "^rename@SYS"
2ba66f
-ltrace_verify_output ${objdir}/${subdir}/${testfile}.ltrace $pattern 1
2ba66f
-set pattern "^mkdir@SYS"
2ba66f
-ltrace_verify_output ${objdir}/${subdir}/${testfile}.ltrace $pattern 1
2ba66f
-set pattern "^rmdir@SYS"
2ba66f
-ltrace_verify_output ${objdir}/${subdir}/${testfile}.ltrace $pattern 1
2ba66f
+ltraceDone
2ba66f
diff --git a/testsuite/ltrace.minor/trace-clone.c b/testsuite/ltrace.minor/trace-clone.c
2ba66f
index db1936d..ded930c 100644
2ba66f
--- a/testsuite/ltrace.minor/trace-clone.c
2ba66f
+++ b/testsuite/ltrace.minor/trace-clone.c
2ba66f
@@ -8,6 +8,7 @@
2ba66f
 #include <sys/types.h>
2ba66f
 #include <stdlib.h>
2ba66f
 #include <sched.h>
2ba66f
+#include <unistd.h>
2ba66f
 
2ba66f
 int child ()
2ba66f
 {
2ba66f
@@ -22,7 +23,8 @@ typedef int (* myfunc)();
2ba66f
 int main ()
2ba66f
 {
2ba66f
   pid_t pid;
2ba66f
-  static char stack[STACK_SIZE];
2ba66f
+  static __attribute__ ((aligned (16))) char stack[STACK_SIZE];
2ba66f
+
2ba66f
 #ifdef __ia64__
2ba66f
   pid = __clone2((myfunc)&child, stack, STACK_SIZE, CLONE_FS, NULL);
2ba66f
 #else