aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorPetr Machata <pmachata@redhat.com>2013-02-06 19:45:27 +0100
committerPetr Machata <pmachata@redhat.com>2013-03-12 00:08:53 +0100
commit8a7a9f59e75c8605ca8206294b7729d0fd70f11f (patch)
tree3ca66dc33cb7ef8be9383a48054842dd141df9d5 /sysdeps
parent88a0fe50a3fad351cf28ef3902dbd0dd3540735c (diff)
downloadltrace-8a7a9f59e75c8605ca8206294b7729d0fd70f11f.tar.gz
ARM: Stack slot is always aligned to at least 4 bytes
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/linux-gnu/arm/fetch.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdeps/linux-gnu/arm/fetch.c b/sysdeps/linux-gnu/arm/fetch.c
index 0e85e3f..0064d91 100644
--- a/sysdeps/linux-gnu/arm/fetch.c
+++ b/sysdeps/linux-gnu/arm/fetch.c
@@ -438,6 +438,8 @@ arch_fetch_arg_next(struct fetch_context *ctx, enum tof type,
if (al == 8)
/* XXX double cast. */
ctx->nsaa = (arch_addr_t)((((uintptr_t)ctx->nsaa + 7) / 8) * 8);
+ else
+ ctx->nsaa = (arch_addr_t)((((uintptr_t)ctx->nsaa + 3) / 4) * 4);
value_in_inferior(valuep, ctx->nsaa);
ctx->nsaa += sz;