]> granicus.if.org Git - strace/commit
aarch64: swap 64-bit and 32-bit personalities
authorDmitry V. Levin <ldv@altlinux.org>
Wed, 9 Dec 2015 00:43:39 +0000 (00:43 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 9 Dec 2015 01:09:11 +0000 (01:09 +0000)
commitc37173f76de6163d746266f78a8485f576ddb6a8
treeb2fea80219d6b9f7bea0157e63d8c06a55458c3e
parente3a2fe007b8b6f29c4c3c46d540a483406eb43be
aarch64: swap 64-bit and 32-bit personalities

Let native 64-bit personality be personality 0, and 32-bit personality
be personality 1, to follow the traditional layout used for other
architectures.

* defs.h [AARCH64]: Swap PERSONALITY0_WORDSIZE and
PERSONALITY1_WORDSIZE, remove DEFAULT_PERSONALITY.
[AARCH64 && HAVE_M32_MPERS]: Rename PERSONALITY1_* to PERSONALITY0_*.
* file.c [AARCH64 || defined X86_64 || defined X32]: Define
STAT32_PERSONALITY for AARCH64 as well.
* syscall.c (update_personality) [AARCH64]: Adjust PERSONALITY_NAMES.
* linux/aarch64/errnoent1.h: Adjust comment.
* linux/aarch64/get_error.c (get_error): Adjust tcp->currpers check.
* linux/aarch64/get_syscall_args.c (get_syscall_args): Likewise.
* linux/arm/arch_sigreturn.c (arch_sigreturn) [AARCH64]: Likewise.
* linux/aarch64/get_scno.c (arch_get_scno): Adjust update_personality
invocations.
* linux/aarch64/ioctls_arch0.h: Swap with ...
* linux/aarch64/ioctls_arch1.h: ... this file.
* linux/aarch64/ioctls_inc0.h: Swap with ...
* linux/aarch64/ioctls_inc1.h: ... this file.
* linux/aarch64/syscallent.h: Swap with ...
* linux/aarch64/syscallent1.h: ... this file.
14 files changed:
defs.h
file.c
linux/aarch64/errnoent1.h
linux/aarch64/get_error.c
linux/aarch64/get_scno.c
linux/aarch64/get_syscall_args.c
linux/aarch64/ioctls_arch0.h
linux/aarch64/ioctls_arch1.h
linux/aarch64/ioctls_inc0.h
linux/aarch64/ioctls_inc1.h
linux/aarch64/syscallent.h
linux/aarch64/syscallent1.h
linux/arm/arch_sigreturn.c
syscall.c