From 5bf86e2be0693c579a43759fd1da1651344d401e Mon Sep 17 00:00:00 2001 From: Po Lu Date: Tue, 15 Apr 2025 16:14:14 +0800 Subject: Port recent Android changes to mips64el * exec/config-mips.m4.in (DADDI2, DADDI3): Disable at-clobbering by assembler macros expressly. * exec/loader-mips64el.s: Adapt from loader-mipsel.s. * exec/configure.ac (exec_cv_as_daddi): Properly escape reg names. * exec/exec.c (struct exec_jump_command, exec_0): Don't define or set `fpu_mode' if __LP64__. * exec/exec.h (struct exec_tracee): New field `callno'. * exec/trace.c (process_system_call): Always record the current system call number in TRACEE lest it should be required once it has been overwritten upon the syscall's completion. (seccomp_system_call): Likewise. (after_fork): Clear `tracee->callno'. --- exec/exec.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'exec/exec.h') diff --git a/exec/exec.h b/exec/exec.h index eee48dfe2ed..d420061ff87 100644 --- a/exec/exec.h +++ b/exec/exec.h @@ -152,6 +152,10 @@ struct exec_tracee completion. */ USER_WORD sp; + /* ID of the system call that is pending completion. This value is + not available as the call number is overwritten on success. */ + USER_WORD callno; + /* Name of the executable being run. */ char *exec_file; -- cgit v1.2.1