elf: Refactor process_envvars
commit4369019520a3396304f5382f29da667cebb98695
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 22 Nov 2023 20:43:25 +0000 (22 17:43 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 5 Dec 2023 16:21:36 +0000 (5 13:21 -0300)
tree3e08c1f104e2c637a98f49d70235e6abbf796e32
parent61d848b554c8dd1f017b9d187b2a2f6675dbdbe4
elf: Refactor process_envvars

It splits between process_envvars_secure and process_envvars_default,
with the former used to process arguments for __libc_enable_secure.
It does not have any semantic change, just simplify the code so there
is no need to handle __libc_enable_secure on each len switch.

Checked on x86_64-linux-gnu and aarch64-linux-gnu.
Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
elf/rtld.c