nios2: Remove _dl_skip_args usage (BZ# 29187)
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 26 May 2022 16:12:21 +0000 (13:12 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 30 May 2022 19:33:20 +0000 (16:33 -0300)
commit4868ba5d257a7fb415674e79c4ae5a3af2827f55
tree0c57ec7c92b7d44089666364e3f1285d650a4c39
parent44fc092c0d86e5ff44c5eeff20934dd8c0b645fa
nios2: Remove _dl_skip_args usage (BZ# 29187)

Since ad43cac44a the generic code already shuffles the argv/envp/auxv
on the stack to remove the ld.so own arguments and thus _dl_skip_args
is always 0.   So there is no need to adjust the argc or argv.

Checked with qemu-user that arguments are correctly passed on both
constructors and main program.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
sysdeps/nios2/dl-machine.h