]> git.proxmox.com Git - mirror_qemu.git/commit
linux-user/arm: Implement setup_sigtramp
authorRichard Henderson <richard.henderson@linaro.org>
Wed, 29 Sep 2021 13:05:32 +0000 (09:05 -0400)
committerLaurent Vivier <laurent@vivier.eu>
Fri, 1 Oct 2021 10:03:48 +0000 (12:03 +0200)
commitb5d66e0dd8dda3d58e58dafa425372d158bed3e8
tree98df834fcf15df7a09636614545cc19dc215049d
parentb807a1087ed864f6c37ccbf6ea416387f00a8b3c
linux-user/arm: Implement setup_sigtramp

Mirror what the kernel does in arch/arm/kernel/signal.h,
using the old sigframe struct in the rt sigframe struct.

Update the trampoline code to match the kernel: this uses
sp-relative accesses rather than pc-relative.

Copy the code into frame->retcode from the trampoline page.
This minimises the different cases wrt arm vs thumb vs fdpic.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <20210929130553.121567-6-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
linux-user/arm/signal.c
linux-user/arm/target_signal.h