[PATCH] hppa: Avoid manipulating function pointers from a traced process.
carlos at systemhalted.org
Wed Sep 9 18:13:19 UTC 2009
Architectures using function pointers, like hppa, may need to
manipulate the function pointer to compute the result of a comparison.
However, the SA_HANDLER function pointer exists only in the address
space of the traced process, and can't be manipulated by strace. In
order to prevent the compiler from generating code to manipulate
SA_HANDLER we cast the function pointers to long.
Fix function pointer comparison for hppa.
* signal.c (sys_sigaction): Cast function pointers to long.
(sys_rt_sigaction): Cast function pointers to long.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1968 bytes
Desc: not available
More information about the Strace-devel