]> granicus.if.org Git - strace/commit
x32: add ia32 support
authorH.J. Lu <hongjiu.lu@intel.com>
Tue, 17 Apr 2012 18:05:04 +0000 (11:05 -0700)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 18 Apr 2012 15:02:40 +0000 (15:02 +0000)
commit085e42886052190d3e515ca865546b527f59cdd1
treef09fae3b106d16477db384dccf3b0e430e7dd52e
parent2bb4581ee501f6803df258ebb74c63a18a48422b
x32: add ia32 support

* Makefile.am (EXTRA_DIST): Add linux/x32/errnoent1.h,
linux/x32/ioctlent1.h, linux/x32/signalent1.h and
linux/x32/syscallent1.h.
* configure.ac: Remove AC_GNU_SOURCE, obsoleted by
AC_USE_SYSTEM_EXTENSIONS.
* defs.h (SUPPORTED_PERSONALITIES): Set to 2 for X32.
(PERSONALITY1_WORDSIZE): Set to 4 for X32.
* file.c (stat64): New struct for X32.
(sys_lseek32): New function for X32.
(stat64): Undef.
(sys_fstat64): Likewise.
(sys_stat64): Likewise.
(realprintstat64): New function for X32.
(sys_fstat64): Likewise.
(sys_stat64): Likewise.
* mem.c (sys_old_mmap): New function for X32.
* pathtrace.c (pathtrace_match): Also check sys_old_mmap for X32.
* syscall.c (update_personality): Add X32 support.
(get_scno): Support currpers == 1 for X32.
* linux/syscall.h (sys_lseek32): New function prototype for X32.
* linux/x32/errnoent1.h: New file.
* linux/x32/ioctlent1.h: Likewise.
* linux/x32/signalent1.h: Likewise.
* linux/x32/syscallent1.h: Likewise.
12 files changed:
Makefile.am
configure.ac
defs.h
file.c
linux/syscall.h
linux/x32/errnoent1.h [new file with mode: 0644]
linux/x32/ioctlent1.h [new file with mode: 0644]
linux/x32/signalent1.h [new file with mode: 0644]
linux/x32/syscallent1.h [new file with mode: 0644]
mem.c
pathtrace.c
syscall.c