or1k: Add prctl wrapper to unwrap variadic args
commitad05a42370fa09062ff2b450fb69905d9f407643
authorStafford Horne <shorne@gmail.com>
Tue, 19 Mar 2024 21:01:24 +0000 (19 21:01 +0000)
committerStafford Horne <shorne@gmail.com>
Fri, 22 Mar 2024 15:43:34 +0000 (22 15:43 +0000)
tree6a3866c962b5891590a4ebf4dda825a2755bea70
parentdf7e29e2a4aadc7e19669eaf953cee1bcf8b156f
or1k: Add prctl wrapper to unwrap variadic args

On OpenRISC variadic functions and regular functions have different
calling conventions so this wrapper is needed to translate.  This
wrapper is copied from x86_64/x32.  I don't know the build system enough
to find a cleaner way to share the code between x86_64/x32 and or1k
(maybe Implies?), so I went with the straight copy.

This fixes test failures:

  misc/tst-prctl
  nptl/tst-setgetname
sysdeps/unix/sysv/linux/or1k/prctl.c [new file with mode: 0644]