patches/strace/4.5.17/170-arm-syscalls.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Mon Jan 05 23:02:43 2009 +0000 (2009-01-05)
changeset 1126 1ab3d2e08c8b
permissions -rw-r--r--
Split CT_ExtractAndPatch in two: CT_Extract and CT_Patch:
- it is unworkable to have CT_ExtactAndPAtch cope with all those silly glibc addons:
- they can have 'short' (as 'ports') or 'long' (as glibc-ports-2.7) names
- patches are against eithe the short or long name, but non-uniformly use one or the other
- it is the reposibility of the component (glibc in this case) to handle corner cases such as those
- update all components to use the new functions

/trunk/scripts/build/tools/000-template.sh | 3 2 1 0 +-
/trunk/scripts/build/tools/100-libelf.sh | 3 2 1 0 +-
/trunk/scripts/build/tools/200-sstrip.sh | 3 2 1 0 +-
/trunk/scripts/build/kernel/linux.sh | 3 2 1 0 +-
/trunk/scripts/build/binutils.sh | 3 2 1 0 +-
/trunk/scripts/build/cc/gcc.sh | 3 2 1 0 +-
/trunk/scripts/build/debug/000-template.sh | 3 2 1 0 +-
/trunk/scripts/build/debug/100-dmalloc.sh | 3 2 1 0 +-
/trunk/scripts/build/debug/400-ltrace.sh | 3 2 1 0 +-
/trunk/scripts/build/debug/300-gdb.sh | 9 6 3 0 +++--
/trunk/scripts/build/debug/500-strace.sh | 7 3 4 0 ++--
/trunk/scripts/build/debug/200-duma.sh | 19 8 11 0 ++++------
/trunk/scripts/build/libc/glibc.sh | 14 12 2 0 ++++++-
/trunk/scripts/build/libc/uClibc.sh | 13 9 4 0 +++++--
/trunk/scripts/build/libc/eglibc.sh | 14 12 2 0 ++++++-
/trunk/scripts/build/gmp.sh | 3 2 1 0 +-
/trunk/scripts/build/mpfr.sh | 3 2 1 0 +-
/trunk/scripts/functions | 68 36 32 0 +++++++++++++++++++-----------------
18 files changed, 108 insertions(+), 69 deletions(-)
yann@974
     1
Original patch from gentoo: ../../dev/crosstool-NG/ct-ng.trunk/patches/strace/4.5.17/170-arm-syscalls.patch
yann@974
     2
-= BEGIN original header =-
yann@974
     3
Author: Michael Abbott <michael.abbott@diamond.ac.uk>
yann@974
     4
Date:   Wed Oct 22 08:53:42 2008 +0100
yann@974
     5
yann@974
     6
    Syscall patch for ARM
yann@974
     7
    Patch mailed to strace mailing list by Anderson Lizardo, work by
yann@974
     8
    Bruna Moreira, dated 2008-01-25.  Patch cleaned up against 4.5.17 release.
yann@974
     9
yann@974
    10
diff --git a/linux/arm/errnoent1.h b/linux/arm/errnoent1.h
yann@974
    11
new file mode 100644
yann@974
    12
index 0000000..a894827
yann@974
    13
-= END original header =-
yann@974
    14
diff -durN b/linux/arm/errnoent1.h b/linux/arm/errnoent1.h
yann@974
    15
--- b/linux/arm/errnoent1.h	1970-01-01 01:00:00.000000000 +0100
yann@974
    16
+++ b/linux/arm/errnoent1.h	2008-10-24 21:30:13.000000000 +0200
yann@974
    17
@@ -0,0 +1,2 @@
yann@974
    18
+/* Our second set comes from the i386 files.  */
yann@974
    19
+#include "../errnoent.h"
yann@974
    20
diff -durN b/linux/arm/ioctlent1.h b/linux/arm/ioctlent1.h
yann@974
    21
--- b/linux/arm/ioctlent1.h	1970-01-01 01:00:00.000000000 +0100
yann@974
    22
+++ b/linux/arm/ioctlent1.h	2008-10-24 21:30:13.000000000 +0200
yann@974
    23
@@ -0,0 +1,2 @@
yann@974
    24
+/* Our second set comes from the i386 files.  */
yann@974
    25
+#include "../ioctlent.h"
yann@974
    26
diff -durN b/linux/arm/signalent1.h b/linux/arm/signalent1.h
yann@974
    27
--- b/linux/arm/signalent1.h	1970-01-01 01:00:00.000000000 +0100
yann@974
    28
+++ b/linux/arm/signalent1.h	2008-10-24 21:30:13.000000000 +0200
yann@974
    29
@@ -0,0 +1,2 @@
yann@974
    30
+/* Our second set comes from the i386 files.  */
yann@974
    31
+#include "../signalent.h"
yann@974
    32
diff -durN b/linux/arm/syscallent1.h b/linux/arm/syscallent1.h
yann@974
    33
--- b/linux/arm/syscallent1.h	1970-01-01 01:00:00.000000000 +0100
yann@974
    34
+++ b/linux/arm/syscallent1.h	2008-10-24 21:30:13.000000000 +0200
yann@974
    35
@@ -0,0 +1,7 @@
yann@974
    36
+/* ARM specific syscalls */
yann@974
    37
+	{ 5,	0,	printargs,		"SYS_0"			}, /* 0 */
yann@974
    38
+	{ 5,	0,	printargs,		"breakpoint"		}, /* 1 */
yann@974
    39
+	{ 5,	0,	printargs,		"cacheflush"		}, /* 2 */
yann@974
    40
+	{ 5,	0,	printargs,		"usr26"			}, /* 3 */
yann@974
    41
+	{ 5,	0,	printargs,		"usr32"			}, /* 4 */
yann@974
    42
+	{ 5,	0,	printargs,		"set_tls"		}, /* 5 */