riscv: Remove _dl_skip_args usage
commitd62123c1ed2506f85a2f17aa195eb682796fd7ed
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 26 May 2022 16:12:44 +0000 (26 13:12 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 30 May 2022 19:33:22 +0000 (30 16:33 -0300)
tree0504bd6e2659f3b80de273220052033687ce886d
parent4868ba5d257a7fb415674e79c4ae5a3af2827f55
riscv: Remove _dl_skip_args usage

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/riscv/dl-machine.h