mbox series

[0/2] x86_64: aarch64: Set call number just before syscall

Message ID 20230411133004.2268170-1-josimmon@redhat.com
Headers show
Series x86_64: aarch64: Set call number just before syscall | expand

Message

Joe Simmons-Talbott April 11, 2023, 1:30 p.m. UTC
To make binary call tree analysis easier place the syscall number into
the register just before the syscall is made.  Only do this if the
syscall number is a constant integer.

Tested on x86_64 and aarch64.

Joe Simmons-Talbott (2):
  x86_64: Set the syscall register right before doing the syscall.
  aarch64: Set the syscall register right before doing the syscall.

 sysdeps/unix/sysv/linux/aarch64/sysdep.h |  6 +++++
 sysdeps/unix/sysv/linux/x86_64/sysdep.h  | 33 ++++++++++++++++++++++++
 2 files changed, 39 insertions(+)