rtld: Remove DL_ARGV_NOT_RELRO and make _dl_skip_args const
commit86147bbeec25624cb26bb7646cdbc3a49bc56bf5
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Tue, 3 May 2022 16:01:44 +0000 (3 17:01 +0100)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Tue, 17 May 2022 09:14:03 +0000 (17 10:14 +0100)
tree5d8052a0813836943eafd49956304bf98288e1d2
parentad43cac44a6860eaefcadadfb2acb349921e96bf
rtld: Remove DL_ARGV_NOT_RELRO and make _dl_skip_args const

_dl_skip_args is always 0, so the target specific code that modifies
argv after relro protection is applied is no longer used.

After the patch relro protection is applied to _dl_argv consistently
on all targets.

Reviewed-by: Florian Weimer <fweimer@redhat.com>
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
12 files changed:
elf/rtld.c
sysdeps/aarch64/dl-sysdep.h
sysdeps/alpha/dl-sysdep.h [deleted file]
sysdeps/arc/dl-sysdep.h
sysdeps/arm/dl-sysdep.h
sysdeps/csky/dl-sysdep.h [deleted file]
sysdeps/generic/ldsodefs.h
sysdeps/ia64/dl-sysdep.h [deleted file]
sysdeps/nios2/dl-sysdep.h
sysdeps/s390/s390-32/dl-sysdep.h [deleted file]
sysdeps/sparc/dl-sysdep.h [deleted file]
sysdeps/unix/sysv/linux/ia64/dl-sysdep.h