gcc/libgo/runtime
Paul E. Murphy c560591408 libgo: fix ptrace syscall hooks into glibc
ptrace is actually declared as a variadic function.  On ppc64le
the ABI requires to the caller to allocate space for the parameters
and allows the caller to modify them.

On ppc64le, depending on how and what version of GCC is used,
it will save to parameter save area.  This happened to clobber
a saved LR, and caused syscall.TestExecPtrace to fail with a timeout
when the tracee segfaults, and waits for the parent process to inspect.

Wrap this function to avoid directly calling glibc's ptrace from go.

Fixes golang/go#36698
Fixes go/92567

Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/254755
2020-09-17 12:14:09 -07:00
..
aeshash.c runtime: use 64 bits of hash seed on arm64 2020-04-15 14:24:33 -07:00
arch.h
array.h
defs.h
env_posix.c
go-assert.c
go-assert.h
go-caller.c libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
go-callers.c libgo: update to almost the 1.14.2 release 2020-04-06 16:37:24 -07:00
go-cdiv.c
go-cgo.c
go-construct-map.c
go-context.S
go-ffi.c
go-fieldtrack.c
go-libmain.c
go-main.c
go-matherr.c
go-memclr.c
go-memequal.c
go-nanotime.c libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
go-nosys.c
go-now.c libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
go-reflect-call.c
go-setenv.c
go-signal.c gccgo: fix runtime compilation on NetBSD 2020-04-20 21:20:53 -07:00
go-string.h
go-unsafe-pointer.c
go-unsetenv.c
go-unwind.c
go-varargs.c libgo: fix ptrace syscall hooks into glibc 2020-09-17 12:14:09 -07:00
panic.c
print.c
proc.c
rtems-task-variable-add.c
runtime_c.c runtime: call runtime_nanotime1, not runtime_nanotime 2020-01-22 11:14:52 -08:00
runtime.h libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
stack.c
yield.c