linux-user: Handle PPC64 ELFv2 Function Pointers
commit145855801a002aaf1310630df41425a6bc39cf47
authorTom Musta <tommusta@gmail.com>
Mon, 30 Jun 2014 13:13:42 +0000 (30 08:13 -0500)
committerAlexander Graf <agraf@suse.de>
Mon, 8 Sep 2014 10:50:46 +0000 (8 12:50 +0200)
tree82eba71377542f9d136b6cd8bec281e1d96c59cb
parent19774ec5c4019d1802b497d702e1eefd3c193e84
linux-user: Handle PPC64 ELFv2 Function Pointers

Function pointers in the 64-bit ELFv2 PowerPC ABI are actual (internal)
entry point addresses.  However, when invoking a function via a function
pointer, GPR 12 must also be set to this address so that the TOC may be
handled properly.

Add this support to the invocation of a signal handler.

Signed-off-by: Tom Musta <tommusta@gmail.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
linux-user/signal.c