hppa: Remove _dl_skip_args usage (BZ# 29165)
commit6242602273feb8d68cd51cff0ad21b3c8ee11fc6
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 25 May 2022 11:58:38 +0000 (25 08:58 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 30 May 2022 19:32:35 +0000 (30 16:32 -0300)
tree95c7cfb845ae2dd5d3bc04eba885b276d260cd01
parent00477963c6a5abd3075044f180d4d0d122a77de0
hppa: Remove _dl_skip_args usage (BZ# 29165)

Different than other architectures, hppa creates an unrelated stack
frame where ld.so argc/argv adjustments done by ad43cac44a6860eaefc
is not done on the argc/argv saved/restore by _dl_start_user.

Instead load _dl_argc and _dl_argv directlty instead of adjust them
using _dl_skip_args value.

Checked on hppa-linux-gnu.

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