[PATCH] aarch64 sigreturn.c
Dmitry V. Levin
ldv at altlinux.org
Tue Mar 17 21:51:47 UTC 2015
On Tue, Mar 17, 2015 at 02:37:30PM -0700, enh wrote:
> i'm not sure whether you intended these to go in a header file,
In linux/aarch64/arch_regs.h, to be specific.
> but
> sys_sigreturn doesn't compile for me because of missing declarations
> for globals from syscall.c. (Android builds with more warnings as
> errors.)
>
> diff --git a/sigreturn.c b/sigreturn.c
> index 365ef1a..0dc2005 100644
> --- a/sigreturn.c
> +++ b/sigreturn.c
> @@ -17,6 +17,9 @@ int
> sys_sigreturn(struct tcb *tcp)
> {
> #if defined AARCH64 || defined ARM
> + extern uint64_t *const aarch64_sp_ptr;
> + extern uint32_t *const arm_sp_ptr;
> +
These are already declared in linux/aarch64/arch_regs.h
--
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20150318/fe752bf8/attachment.bin>
More information about the Strace-devel
mailing list