]> git.ipfire.org Git - thirdparty/glibc.git/commit - elf/rtld.c
elf: Extract command-line/environment variables state from rtld.c
authorFlorian Weimer <fweimer@redhat.com>
Thu, 8 Oct 2020 08:57:09 +0000 (10:57 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Thu, 8 Oct 2020 10:05:47 +0000 (12:05 +0200)
commit2bf9e641fd50ec34b04b70829679abf64fc0ed78
tree9eaebbb027ecf478a6bb62ac54309ed3166cf529
parent72d36ffd7db55ae599f4c77feb0eae25a0f3714e
elf: Extract command-line/environment variables state from rtld.c

Introduce struct dl_main_state and move it to <dl-main.h>.  Rename
enum mode to enum rtld_mode and add the rtld_mode_ prefix to the enum
constants.

This avoids the need for putting state that is only needed during
startup into the ld.so data segment.
elf/dl-main.h [new file with mode: 0644]
elf/rtld.c