Blame SOURCES/ltrace-0.7.91-aarch64.patch

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