ia64: Remove _dl_skip_args usage
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 26 May 2022 16:08:01 +0000 (13:08 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 30 May 2022 19:33:08 +0000 (16:33 -0300)
commit57bb1e5b9fce7f3797bdb3005065187ba9d66c59
treef6b75ab54886dee467c286f6a4fd178cbc0b9ca9
parent1b7f05d11e75594c06f0a8d193c80c7f74857d5f
ia64: 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.

The startup code is changed to read the _dl_argc and _dl_argv values,
and envp is calculated from argc and argv.

Checked on ia64-linux-gnu.

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