]> granicus.if.org Git - strace/commit
Treat PowerPC 64 LE as a separate architecture
authorEugene Syromyatnikov <evgsyr@gmail.com>
Wed, 24 Jul 2019 14:57:34 +0000 (16:57 +0200)
committerDmitry V. Levin <ldv@altlinux.org>
Sun, 4 Aug 2019 22:33:09 +0000 (22:33 +0000)
commit10771e02fad7904b0861e6864c9fdb6a6a3ce31c
treee43bcf24400daef1ce811715c2ac2ac6ba0efad4
parent7df9a0049e31fdbe3fb14cf5d52a445c7ec2769d
Treat PowerPC 64 LE as a separate architecture

That seems to be the easiest way to properly handle the fact that
PPC64LE does not have a meaningful m32 personality.

* configure.ac: Move AC_C_BIGENDIAN before arch detection; determine
powerpc64/powerpc64le arch based on $ac_cv_c_bigendian value.
* linux/dummy.h [POWERPC64LE] (sys_oldselect): Redirect to printargs.
* linux/powerpc64le/arch_defs_.h: New file.
* linux/powerpc64le/arch_regs.c: Likewise.
* linux/powerpc64le/arch_rt_sigframe.c: Likewise.
* linux/powerpc64le/errnoent.h: Likewise.
* linux/powerpc64le/get_error.c: Likewise.
* linux/powerpc64le/get_scno.c: Likewise.
* linux/powerpc64le/get_syscall_args.c: Likewise.
* linux/powerpc64le/ioctls_arch0.h: Likewise.
* linux/powerpc64le/ioctls_inc0.h: Likewise.
* linux/powerpc64le/raw_syscall.h: Likewise.
* linux/powerpc64le/rt_sigframe.h: Likewise.
* linux/powerpc64le/set_error.c: Likewise.
* linux/powerpc64le/set_scno.c: Likewise.
* linux/powerpc64le/syscallent.h: Likewise.
* linux/powerpc64le/userent.h: Likewise.
* Makefile.am (EXTRA_DIST): Add them.
* tests/ipc_msg.c: Check for POWERPC64LE definition in addition to
POWERPC64.
* util.c (getllval): Add check for POWERPC64LE definition in addition to
POWERPC64.
* strace.1.in (.SH MULTIPLE PERSONALITY SUPPORT): Mention that only big
endian PowerPC 64 has mpers support.

Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
20 files changed:
Makefile.am
configure.ac
linux/powerpc64le/arch_defs_.h [new file with mode: 0644]
linux/powerpc64le/arch_regs.c [new file with mode: 0644]
linux/powerpc64le/arch_rt_sigframe.c [new file with mode: 0644]
linux/powerpc64le/errnoent.h [new file with mode: 0644]
linux/powerpc64le/get_error.c [new file with mode: 0644]
linux/powerpc64le/get_scno.c [new file with mode: 0644]
linux/powerpc64le/get_syscall_args.c [new file with mode: 0644]
linux/powerpc64le/ioctls_arch0.h [new file with mode: 0644]
linux/powerpc64le/ioctls_inc0.h [new file with mode: 0644]
linux/powerpc64le/raw_syscall.h [new file with mode: 0644]
linux/powerpc64le/rt_sigframe.h [new file with mode: 0644]
linux/powerpc64le/set_error.c [new file with mode: 0644]
linux/powerpc64le/set_scno.c [new file with mode: 0644]
linux/powerpc64le/syscallent.h [new file with mode: 0644]
linux/powerpc64le/userent.h [new file with mode: 0644]
strace.1.in
tests/ipc_msg.c
util.c