]> granicus.if.org Git - strace/commit
test/threaded_execve: fix on metag
authorJames Hogan <james.hogan@imgtec.com>
Wed, 1 May 2013 12:16:50 +0000 (13:16 +0100)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 1 May 2013 14:55:54 +0000 (14:55 +0000)
commit554e6f3240bcd6110214685371745278b43a8ab7
treea08e9aa790dc448315552b6dfee5e5f4a7dad090
parent5cf23c53b8a96269ef72b6d675c811c8132ae5ec
test/threaded_execve: fix on metag

The metag ABI has stacks growing upwards so clone expects the stack
argument to point at the bottom of the stack instead of the top.

* test/threaded_execve.c [__metag__]: Define clone2 differently
to avoid a segfault at runtime.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
test/threaded_execve.c