aarch64: fix errno address calculation in SYSCALL_ERROR_HANDLER
commit42de7e20299e0bab8b8b761b34ebcd4b60c68132
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 8 Feb 2017 18:30:43 +0000 (8 16:30 -0200)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 8 Feb 2017 18:30:43 +0000 (8 16:30 -0200)
treef66af59db4fc36c046ed1b8f01b44543bb864ec8
parentef8659eab64fc24979afa2bd5a272dacf662a7d2
aarch64: fix errno address calculation in SYSCALL_ERROR_HANDLER

This patch fixes the last regression in LTP lite scenario (mmap16) comparing
to lp64 in my source trees [1, 2]. The fix has been suggested back in 2015 [3]
but was never applied.

Checked on aarch64-linux-gnu.

* sysdeps/unix/sysv/linux/aarch64/sysdep.h: use PTR_REG() for offset
calculation in SYSCALL_ERROR_HANDLER().

[1] https://github.com/norov/glibc/tree/dev9
[2] https://github.com/norov/linux/tree/ilp32-20170203
[3] https://sourceware.org/ml/libc-alpha/2015-03/msg00587.html
ChangeLog
sysdeps/unix/sysv/linux/aarch64/sysdep.h