changeset 797:bb8333b7a553

In case anybody wants to build strace for arm eabi, you need these patches.
author Rob Landley <rob@landley.net>
date Sat, 08 Aug 2009 17:11:35 -0500
parents 5f793a1ca658
children 2c9f22daa8fe
files sources/patches/strace-arm-eabi.patch sources/patches/strace-arm-no-cachectl.patch
diffstat 2 files changed, 39 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sources/patches/strace-arm-eabi.patch	Sat Aug 08 17:11:35 2009 -0500
@@ -0,0 +1,20 @@
+--- a/linux/arm/syscallent.h
++++ b/linux/arm/syscallent.h
+@@ -431,7 +431,7 @@
+ 	{ 5,	0,	printargs,		"SYS_398"	}, /* 398 */
+ 	{ 5,	0,	printargs,		"SYS_399"	}, /* 399 */
+ 
+-#if SYS_socket_subcall != 400
++#if defined(SYS_socket_subcall) && (SYS_socket_subcall != 400)
+  #error fix me
+ #endif
+ 	{ 8,	0,	printargs,		"socket_subcall"}, /* 400 */
+@@ -453,7 +453,7 @@
+ 	{ 5,	TN,	sys_sendmsg,		"sendmsg"	}, /* 416 */
+ 	{ 5,	TN,	sys_recvmsg,		"recvmsg"	}, /* 417 */
+ 
+-#if SYS_ipc_subcall != 418
++#if defined(SYS_ipc_subcall) && (SYS_ipc_subcall != 418)
+  #error fix me
+ #endif
+ 	{ 4,	0,	printargs,		"ipc_subcall"	}, /* 418 */
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sources/patches/strace-arm-no-cachectl.patch	Sat Aug 08 17:11:35 2009 -0500
@@ -0,0 +1,19 @@
+ARM defines SYS_cacheflush, but doesn't have <asm/cachectl.h>
+---
+ system.c |    2 ++
+ 1 file changed, 2 insertions(+)
+
+--- a/system.c
++++ b/system.c
+@@ -70,9 +70,11 @@
+ #include <linux/capability.h>
+ #endif
+ 
++#ifndef ARM
+ #ifdef SYS_cacheflush
+ #include <asm/cachectl.h>
+ #endif
++#endif
+ 
+ #ifdef HAVE_LINUX_USTNAME_H
+ #include <linux/utsname.h>