syscall: ensure openat uses variadic libc wrapper
authorPaul E. Murphy <murp@ibm.com>
Fri, 8 Jan 2021 21:43:54 +0000 (15:43 -0600)
committerIan Lance Taylor <iant@golang.org>
Tue, 12 Jan 2021 21:21:09 +0000 (13:21 -0800)
commitcfaaa6a1ca744c1a93fa08a3e7ab2a821383cac1
treeeabaaf501b9f494398078a5ea85c880de86cffd5
parent5a9cfad2de92f2d65585774acb524b3fa17621b5
syscall: ensure openat uses variadic libc wrapper

On powerpc64le, this caused a failure in TestUnshareUidGidMapping
due to stack corruption which resulted in a bogus execve syscall.

Use the existing c wrapper to ensure we respect the ppc abi for
variadic functions.

Fixes PR go/98610

Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/282717
gcc/go/gofrontend/MERGE
libgo/go/syscall/exec_linux.go