aboutsummaryrefslogtreecommitdiff
path: root/scripts/cpp
diff options
context:
space:
mode:
authorJohn David Anglin <danglin@gcc.gnu.org>2024-12-19 11:30:09 -0500
committerJohn David Anglin <danglin@gcc.gnu.org>2024-12-19 11:32:13 -0500
commit9fbfbd924f718663d5303858f34d1f857c375093 (patch)
tree71a192b492adf8e5cbb5042c3b2e8037d6acc48d /scripts/cpp
parent94e4a8c7d68129075f1b494a0b26151a4f989b36 (diff)
downloadglibc-9fbfbd924f718663d5303858f34d1f857c375093.tar.xz
glibc-9fbfbd924f718663d5303858f34d1f857c375093.zip
hppa: Fix strace detach-vfork test
This change implements vfork.S for direct support of the vfork syscall. clone.S is revised to correct child support for the vfork case. The main bug was creating a frame prior to the clone syscall. This was done to allow the rp and r4 registers to be saved and restored from the stack frame. r4 was used to save and restore the PIC register, r19, across the system call and the call to set errno. But in the vfork case, it is undefined behavior for the child to return from the function in which vfork was called. It is surprising that this usually worked. Syscalls on hppa save and restore rp and r19, so we don't need to create a frame prior to the clone syscall. We only need a frame when __syscall_error is called. We also don't need to save and restore r19 around the call to $$dyncall as r19 is not used in the code after $$dyncall. This considerably simplifies clone.S. Signed-off-by: John David Anglin <dave.anglin@bell.net>
Diffstat (limited to 'scripts/cpp')
0 files changed, 0 insertions, 0 deletions