aboutsummaryrefslogtreecommitdiff
path: root/meta-bigendian/recipes-devtools/strace
diff options
context:
space:
mode:
authorRiku Voipio <riku.voipio@linaro.org>2013-08-20 16:44:04 +0300
committerRiku Voipio <riku.voipio@linaro.org>2013-08-20 16:44:04 +0300
commitda4378681cac2876f9a21b912c242baefc355e92 (patch)
treee1b42c0b75a0e1c8ec8aab5bb0e43a5b03551287 /meta-bigendian/recipes-devtools/strace
parent287759ed7af0d2b2d3dadc5ed87d6b4c72f215ff (diff)
downloadmeta-linaro-da4378681cac2876f9a21b912c242baefc355e92.tar.gz
meta-bigendian: fix strace patch
Diffstat (limited to 'meta-bigendian/recipes-devtools/strace')
-rw-r--r--meta-bigendian/recipes-devtools/strace/strace/strace-4.8-arm-be8.patch22
1 files changed, 11 insertions, 11 deletions
diff --git a/meta-bigendian/recipes-devtools/strace/strace/strace-4.8-arm-be8.patch b/meta-bigendian/recipes-devtools/strace/strace/strace-4.8-arm-be8.patch
index c0d4043d..d9cce72b 100644
--- a/meta-bigendian/recipes-devtools/strace/strace/strace-4.8-arm-be8.patch
+++ b/meta-bigendian/recipes-devtools/strace/strace/strace-4.8-arm-be8.patch
@@ -3,17 +3,17 @@ Index: strace-4.8/syscall.c
--- strace-4.8.orig/syscall.c
+++ strace-4.8/syscall.c
@@ -1355,6 +1355,14 @@ get_scno(struct tcb *tcp)
- if (errno)
- return -1;
+ if (errno)
+ return -1;
+#if defined(__ARMEB__) && defined(__ARM_ARCH_7A__)
-+ /* We running big endian arm on ARMv7: instructions are
-+ * in little endian form so we need to byteswap it. Note
-+ * on older ARM like V5 Xscale code is in big endian form
-+ * byte swap is not needed in this case. I.e be8 vs be32.
-+ */
-+ scno = __builtin_bswap32(scno);
++ /* We running big endian arm on ARMv7: instructions are
++ * in little endian form so we need to byteswap it. Note
++ * on older ARM like V5 Xscale code is in big endian form
++ * byte swap is not needed in this case. I.e be8 vs be32.
++ */
++ scno = __builtin_bswap32(scno);
+#endif /* __ARMEB__ && __ARM_ARCH_7A__ */
- /* EABI syscall convention? */
- if (scno == 0xef000000) {
- scno = arm_regs.ARM_r7; /* yes */
+ /* EABI syscall convention? */
+ if (scno == 0xef000000) {
+ scno = arm_regs.ARM_r7; /* yes */