Bad LOADARGS_N on PPC

H.J. Lu hjl.tools@gmail.com
Thu Apr 30 22:57:32 GMT 2020


On Thu, Apr 30, 2020 at 2:07 PM H.J. Lu <hjl.tools@gmail.com> wrote:
>
> On Thu, Apr 30, 2020 at 1:29 PM Matheus Castanho <msc@linux.ibm.com> wrote:
> >
> > I see failures on all builds for all ppc* targets after this commit:
> >
> > ../sysdeps/unix/sysv/linux/prctl.c: In function ‘__prctl’:
> > ../sysdeps/unix/sysv/linux/prctl.c:36:21: error: unused variable ‘arg5’
> > [-Werror=unused-variable]
> >    36 |   unsigned long int arg5 = va_arg (arg, unsigned long int);
> >       |                     ^~~~
> > ../sysdeps/unix/sysv/linux/prctl.c:35:21: error: unused variable ‘arg4’
> > [-Werror=unused-variable]
> >    35 |   unsigned long int arg4 = va_arg (arg, unsigned long int);
> >       |                     ^~~~
> > ../sysdeps/unix/sysv/linux/prctl.c:34:21: error: unused variable ‘arg3’
> > [-Werror=unused-variable]
> >    34 |   unsigned long int arg3 = va_arg (arg, unsigned long int);
> >       |                     ^~~~
> > ../sysdeps/unix/sysv/linux/prctl.c:33:21: error: unused variable ‘arg2’
> > [-Werror=unused-variable]
> >    33 |   unsigned long int arg2 = va_arg (arg, unsigned long int);
> >       |
>
> II am not familiar with ppc. There are:
>
> return INLINE_SYSCALL_CALL (prctl, option, arg2, arg3, arg4, arg5);
>
> Why are arg2, arg3, arg4, arg5 unused?  What are passed to kernel
> on ppc?
>

See:

https://sourceware.org/bugzilla/show_bug.cgi?id=25902

with a patch.   But I can't test it natively.

-- 
H.J.


More information about the Libc-alpha mailing list