[PATCH] hppa: Avoid manipulating function pointers from a traced process.

Carlos O'Donell 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.

Please apply.

Cheers,
Carlos.
~~~
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...
Name: 2009-09-09-strace.diff
Type: text/x-diff
Size: 1968 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20090909/9670e658/attachment.bin>


More information about the Strace-devel mailing list