glibc/sysdeps
John David Anglin 57256971b0 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>
2024-12-19 11:30:09 -05:00
..
aarch64 math: Use tanhf from CORE-MATH 2024-12-18 17:24:43 -03:00
alpha math: Use tanhf from CORE-MATH 2024-12-18 17:24:43 -03:00
arc math: Use tanhf from CORE-MATH 2024-12-18 17:24:43 -03:00
arm math: Use tanhf from CORE-MATH 2024-12-18 17:24:43 -03:00
csky math: Use tanhf from CORE-MATH 2024-12-18 17:24:43 -03:00
generic malloc: Optimize small memory clearing for calloc 2024-12-04 04:28:15 +08:00
gnu sysdeps: Re-flow and sort multiline gnu/Makefile definitions 2024-08-07 11:02:03 -03:00
hppa math: Use tanhf from CORE-MATH 2024-12-18 17:24:43 -03:00
htl htl: move pthread_sigmask into libc. 2024-12-14 23:13:14 +01:00
hurd hurd: Move internal functions to internal header 2024-03-23 22:43:07 +01:00
i386 math: Use tanhf from CORE-MATH 2024-12-18 17:24:43 -03:00
ieee754 math: Use tanhf from CORE-MATH 2024-12-18 17:24:43 -03:00
loongarch math: Use tanhf from CORE-MATH 2024-12-18 17:24:43 -03:00
m68k math: Use tanhf from CORE-MATH 2024-12-18 17:24:43 -03:00
mach htl: move pthread_sigmask into libc. 2024-12-14 23:13:14 +01:00
microblaze math: Use tanhf from CORE-MATH 2024-12-18 17:24:43 -03:00
mips math: Use tanhf from CORE-MATH 2024-12-18 17:24:43 -03:00
nptl linux: Add support for getrandom vDSO 2024-11-12 14:42:12 -03:00
or1k math: Use tanhf from CORE-MATH 2024-12-18 17:24:43 -03:00
posix Silence most -Wzero-as-null-pointer-constant diagnostics 2024-11-25 16:45:59 -03:00
powerpc math: Use tanhf from CORE-MATH 2024-12-18 17:24:43 -03:00
pthread Use empty initializer to silence GCC 4.9 or older 2024-12-16 04:06:30 +08:00
riscv math: Use tanhf from CORE-MATH 2024-12-18 17:24:43 -03:00
s390 math: Use tanhf from CORE-MATH 2024-12-18 17:24:43 -03:00
sh math: Use tanhf from CORE-MATH 2024-12-18 17:24:43 -03:00
sparc math: Use tanhf from CORE-MATH 2024-12-18 17:24:43 -03:00
unix hppa: Fix strace detach-vfork test 2024-12-19 11:30:09 -05:00
wordsize-32 Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
wordsize-64 Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
x86 sys/platform/x86.h: Do not depend on _Bool definition in C++ mode 2024-12-18 02:32:27 +08:00
x86_64 math: Use tanhf from CORE-MATH 2024-12-18 17:24:43 -03:00